Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Apex 4.1: Using jQuery datepicker() with IE6

Andrew TulleyFeb 9 2012 — edited Feb 10 2012
Apex Version 4.1.0.00.32

I have a page with nothing on it but an HTML region with the following source:


<input type='text' id='mydate'>

<script>
$(document).ready(function(){
   alert('doc ready');
   $('#mydate').datepicker();
})
</script>
The trouble is that this doesn't work fully in IE6. When you give focus to the text field, the date picker appears and you can click a date which successfully populates the text field.

However, after the first time this always fails in that you give the text field focus, the date picker appears but when you click a date nothing happens (i.e. the text field is not populated with the date you clicked).

IE6 gives the unhelpful message: Line 1, Char 1, Error: Object required


Any ideas on how to get this to work? (I do need specifically to be able to call datepicker() so unfortunately using an Apex DatePicker item would not be an option for me).

Thanks,
Andy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2012
Added on Feb 9 2012
9 comments
755 views