| JSCalendar in AJAX Page ¶ | |
| Hi, I have an AJAX page like this: Then I load addnewapp.php into "mainarea". The JSCalendar I want to display inside of addnewapp.php. The code in addnewapp.php is like this: <html> <script type="text/javascript"> But it nothing happen, what must I do to make JSCalendar show in my addnewapp.php? If just normal page call (not thorough AJAX call) it run smoothly. TIA | |
| Re: JSCalendar in AJAX Page ¶ | |
| I also hv the same problem, and i find a way to get around this. Simple trick... use onclick=" Calendar.setup(.." instead of using script tag at yr ajax response page <script type="text/javascript"> Calendar.setup(...</script> for example, do this on yr ajax response page <input type="text" name="date" id="f_date_b" /><button type="reset" id="f_trigger_b" | |
| last |
| Re[2]: JSCalendar in AJAX Page ¶ | |
| I got around the "side-effect" (having to click twice for the calendar to appear) by implementing this slightly differently, and adding a bit of code to dispatch a second click event to the element that triggers the pop-up calendar: <input type='text' id='date' name='date' style='text-align: center;' size='10' maxlength='10' value='$date' onClick='calSetup_date(this)' readonly> | |
| last |














