I'm loading an edit form in a boostrap modal 
using  jQuery.web2py.component().
I'm using bootstrap-datepicker.js for my date fields.
The edit form works outside the modal.

When I load the edit form inside the modal, everything works fine except 
for the datepicker. When I click on the text field with the datepicker, the 
console shows the error below and then just replaces the entire page with 
just the year, e.g., "2016":
Synchronous XMLHttpRequest on the main thread is deprecated because of its 
detrimental effects to the end user's experience. For more help, check 
https://xhr.spec.whatwg.org/.

I'm loading the modal with (link contains the URL):
      jQuery.web2py.component(link,'modal-body');
      $('input.date').datepicker();

Has anybody encountered this?

I've seen some other mentions of similar problems related to calendar.js so 
I don't think this is specific to datepicker.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to