Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Date field doesn't trigger onChange event

Date field doesn't trigger onChange event 24 Sep 2013 00:20 #11172

  • dyoungers
  • dyoungers's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 16
  • Karma: 0
does anyone have an idea on how I can get date fields to trigger an event when the popup calendar changes the value of the form field holding the date?

I have an JavaScript event handler set up that works if I manually edit the date using the keyboard, but when I use the popup and select a new date with a mouse click the change event is not triggered.

If anyone can lead me in the right direction on how to solve this I'd really appreciate it!

Thanks!
Dave
The administrator has disabled public write access.

Date field doesn't trigger onChange event 10 Oct 2013 00:18 #11362

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I have fixed an issue here, because I got the contary : submitting the form when changing the month.
When the text in the input is changed it was submiting the form. Not good and fixed.

Now, you tell me when you click on a day, it is not submitting ?

To benefit this functionality, you must activate the 'submit on change' option on the filter.

What to say more ? I did not tested this issue on Internet Explorer.
Do you have JS errors ?
Coding is now a piece of cake
The administrator has disabled public write access.

Date field doesn't trigger onChange event 11 Oct 2013 11:07 #11371

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Fixed.

It was missing the dateFormat in the XML file.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.054 seconds

Get Started