• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug DatePicker didn't work with AJAX

Amaury

Well-known member
#2
What exactly is the problem, though? What happens?

The calendar is coming up fine for me on Mozilla Firefox 27.0.1.
 

Jeremy

Well-known member
#3
It is due to the fact that when JavaScript listeners are added, it doesn't add to items added to the DOM post load.
 

Milano

Well-known member
#4
What exactly is the problem, though? What happens?

The calendar is coming up fine for me on Mozilla Firefox 27.0.1.
Chrome 32.0.1700.107 m (support <input type="date" />): render its own UI chrome.png
Firefox 27.0.1 (doesn't support <input type="date" />): render normal textbox firefox.png

The date picker didn't show up when the textbox got focused on both browsers
 

Attachments

Mike

XenForo developer
Staff member
#5
I can't reproduce this. I put a date input into the thread_watch template as an easy test. When the overlay loaded, the date picker was usable.

If you're using custom loading schemes, it's your responsibility to initialize the XF JS framework on those elements.
 

Milano

Well-known member
#6
I can't reproduce this. I put a date input into the thread_watch template as an easy test. When the overlay loaded, the date picker was usable.

If you're using custom loading schemes, it's your responsibility to initialize the XF JS framework on those elements.
I'm using the same way the code event listener description was loaded, and yes initialize the js again made it works