AJAX callback running twice with onchange
1009117May 28 2013 — edited May 30 2013Hey,
I have a tabular form in Apex 4.0 with 4 fields that can be updated by a user, when the user updates a field the value is automatically saved to the database and a Gritter notification is displayed informing the user that data is saved.
The issue I have is that when the value is changed it is submitted to the database twice.
Currently I use an element of 'onchange="Submit_Value(this);"' on the column that is being changed, which calls my javascript to submit the data to the database using PL/SQL in Ajax. I also used a Dynamic action for the region that displays the Gritter notification using the Change Event.
If I change the Gritter notification to fire on a different dynamic event than the data is correctly populated once into the database, however I want the notification to show when the field is changed.
I think there must be a way to tag the notification call onto into my current Javascript instead of having 2 on change events but am unsure how, or perhaps there is another solution.
Thanks for any help.
p.s. im using IE8.
Naill