perhaps error in <input> or <a href>
Von: Jivanmukta (jivanmukta@poczta.onet.pl) [Profil]
Datum: 19.10.2009 08:56
Message-ID: <c75488ff-502a-4d7d-9024-d20f03f91b0a@l13g2000yqb.googlegroups.com>
Newsgroup: alt.www.webmaster
Datum: 19.10.2009 08:56
Message-ID: <c75488ff-502a-4d7d-9024-d20f03f91b0a@l13g2000yqb.googlegroups.com>
Newsgroup: alt.www.webmaster
Hello,
I created a page with two fields for dates range (report parameters).
There's popup calendar near these fields.
<script type="text/javascript"
src="../include/ts_picker.js"></
script>
The calendar works fine for the second field ('date to') but it
doesn't work for the first field ('date from'). Although I see a
calendar and I can pick the date from it, the date is not copied to
the field.
I think there's an error in 'date from' field defintion but I don't
see it.
Here's HTML:
from <input type="text" id="date_submitted_from"
name="date_submitted_from" <?php
echo errorClass('date_submitted_from'); ?> maxlength="10"
style="width: 10ex"
value="<?php echo valueFromRequest('date_submitted_from'); ?>"
onblur="validateDate(this, 'date_submitted_from_error');">
<a href="javascript:show_calendar
('document.params.date_submitted_from',
document.params.date_submitted_from.value);"><img src="../images/
cal.gif"
width="16" height="16" style="border: 0"
alt="Calendar"></a>
- do <input type="text" id="date_submitted_to"
name="date_submitted_to" <?php
echo errorClass('date_submitted_to'); ?> maxlength="10" style="width:
10ex"
value="<?php echo valueFromRequest('date_submitted_to'); ?>"
onblur="validateDate(this, 'date_submitted_to_error');">
<a href="javascript:show_calendar('document.params.date_submitted_to',
document.params.date_submitted_to.value);"><img src="../images/
cal.gif"
width="16" height="16" style="border: 0"
alt="Calendar"></a>
<span class="tip">format: np. <i><?php echo
date('Y.m.d'); ?></
i></span>
<span id="date_submitted_from_error"
class="error_message"></span>
<span id="date_submitted_to_error"
class="error_message"></span>
<?php echo validationError('date_submitted_from'),
validationError('date_submitted_to'); ?>
Please help.
[ Auf dieses Posting antworten ]Antworten
- Jerry Stuckle (19.10.2009 12:41)
- Scott Bryce (19.10.2009 16:13)
- Jivanmukta (20.10.2009 08:10)
- Scott Bryce (20.10.2009 18:28)
