Strange Happenings with IE
My web-app uses three buttons (Add/Edit/Delete) to control inputs and updates to my database. To determine which of the three submit buttons was selected I used the following code...
- var whichButton = event.originalEvent.explicitOriginalTarget.id
Worked fine in FF but then I discovered that it did not work in IE or Chrome. So I changed my concept to include an onclick in each of the buttons to change the form 'name' depending on the button. In the js I thus simply load the form 'name' to take the appropriate action.
- var updateType = $('#form_admin').attr('name');
This works great in FF, but I have encountered something really strange in IE. Testing without the IE debugger active does not work. It appears to work OK but any change is not made in the database. BUT if I activate the debugger and make a test the changes are made to the database.
Does anyone have a clue why this might be happening?
TIA for any assistance.
jdadwilson