Article View: pl.comp.lang.php
Article #230745kalendarz z jQuery
From: jivanmukta
Date: Thu, 13 Nov 2014 14:04
Date: Thu, 13 Nov 2014 14:04
37 lines
3083 bytes
3083 bytes
Zrobiłem z użyciem jQuery pola z kalendarzami na przyciski. Wszystko mi działało OK. Niestety teraz jak wchodzę na stronę to nie ma przycisków "Kalendarz". Nie wiem dlaczego bo nic nie zmieniałem.
W pliku strony mam:
od <input type="text" id="valid_from" name="valid_from" maxlength="10" style="width: 10ex" class="datePL" value="<?php echo myValue('valid_from', $field_values); ?>">
<?php echo myFormError('valid_from'); ?>
<br>
do <input type="text" id="valid_to" name="valid_to" maxlength="10" style="width: 10ex" class="datePL" value="<?php echo myValue('valid_to', $field_values); ?>">
<?php echo myFormError('valid_to'); ?>
oraz:
<link href="<?php rs('jquery-ui-1.7.3/themes/base/jquery-ui.css'); ?>" rel="stylesheet" type="text/css">
<link href="<?php rs('jquery-ui-1.7.3/themes/base/ui-datepicker.css'); ?>" rel="stylesheet" type="text/css">
<script src="<?php rs('jquery-2.1.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php rs('jquery-migrate-1.2.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php rs('jquery-ui-1.7.3/ui/minified/jquery-ui.min.js'); ?>" type="text/javascript"></script>
<script src="<?php rs('jquery-ui-1.7.3/ui/minified/ui.datepicker.min.js'); ?>" type="text/javascript"></script>
<script src="<?php rs('jquery-ui-1.7.3/ui/minified/i18n/ui.datepicker-pl.min.js'); ?>" type="text/javascript"></script>
<script src="<?php rs('functions_jquery.js'); ?>" type="text/javascript"></script>
a także:
$(document).ready(function () {
calendars(['valid_from', 'valid_to']);
});
function calendars(arrButtons) {
'use strict';
var b;
var p = {showOn: 'button', dateFormat: 'yy-mm-dd', buttonText: 'Kalendarz'};
for (b in arrButtons) {
$("#" + b).datepicker(p);
}
}
Jeszcze niedawno przy polach valid_to i valid_from pokazywały się przyciski z tekstem "Kalendarz". Teraz ich nie ma. Strona się waliduje poprawnie w FireFoxie.
Proszę o pomoc, bo mam nieduże doświadczenie.
Technical Details
Message-ID:
<d567d2d3-733a-4264-979e-49bcbc3d5774@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!news.glorb.com!u7no1352931qaz.1!news-out.google.com!u1ni10qah.0!nntp.google.com!i13no1353218qae.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Received: by 10.236.45.65 with SMTP id o41mr42672620yhb.48.1415887480527; Thu, 13 Nov 2014 06:04:40 -0800 (PST) X-Received: by 10.140.84.21 with SMTP id k21mr292876qgd.6.1415887480508; Thu, 13 Nov 2014 06:04:40 -0800 (PST) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!news.glorb.com!u7no1352931qaz.1!news-out.google.com!u1ni10qah.0!nntp.google.com!i13no1353218qae.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.php Date: Thu, 13 Nov 2014 06:04:40 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.31.0.6; posting-account=Fd8BNwoAAACl8PCi6-fI0bkHGOgt6LMa NNTP-Posting-Host: 83.31.0.6 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <d567d2d3-733a-4264-979e-49bcbc3d5774@googlegroups.com> Subject: kalendarz z jQuery From: jivanmukta@poczta.onet.pl Injection-Date: Thu, 13 Nov 2014 14:04:40 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit