Using Apex 4.2.1.00.08
I have a master detail page with a 2 column tabular form. When there is no data in the detail and I add a row and submit it will work in Firefox (v 24) and IE10 but not IE9.
It also works in IE9 if there is already at least one record in the detail.
Any ideas (other than stop using IE9)?
Running the developer tools in IE I set a watch on $('#fcud_0001').val().
* 0001 b/c I only have one row, the newly added one in my scenario.
In IE9 if I change one text item (in the tabular form) and then click the Submit button without moving the cursor out of the text box the value is not changed to C from D. If I tab out or use another browser it sets it to C.
It looks to me a difference in how the change event is triggered. If the click event is handled before the blur or something.
Then perhaps for IE9 you can add keypress event on input and set the fcud for the row manually.
The selector could be something like .ie9 #tabForm input[type!="hidden"] and perhaps one more for select lists (#tabForm would be the Static ID of the tabular form).
Then, from the triggering element ID you get the row and build your fcud record:
var row = this.triggeringElement.id.split("_");
var fcud = "fcud_" + row;
// set fcud
Of course this is all completely untested.
I am going to experiment with changing from template buttons to HTML buttons just to see if there is a difference between a link click and a button click.
If that works it will be one more reason for me to hate template buttons (links get and buttons post in my world view). If it doesn't work it will just be one more reason why I hate dealing with IE. Either way I get to be a hater