Forum Moderators: open
The following works perfectly in ff:
elem.setAttribute("onBlur","updateField('t_',this.value,'"+recordId+"','"+escape(data_nohead)+"')");
But I need to accomodate IE6 & 7. The following works in IE7 but in IE6 is doesn't include the 4th parameter 'escape(data_nohead)':
elem.onBlur = function elem(){ updateField('t_',this.value,recordId,escape(data_nohead));};
'data_nohead', is a string variable.
Can someone help me please?
Thanks
elem.onBlur = function(){ updateField('t_',this.value,recordId,escape(data_nohead));};
Regarding the two variables, 'data_nohead' and 'recordId', I just got them alerted back to me immediately before where I used them above, and they were both present.
I'm trying to understand why they need to be globals? Once data_nohead has deposited it's contents as a string in the parameters list, I should have no further need for the variable.
What I'm wondering is whether I need to put that parameter (the last one), in quotes and if so, what type?