Hi All,
I have a Rails app that is working fine on all browsers except IE 7
and 8, where I am getting unknown runtime exceptions.
stripScripts is throwing an unknown runtime exception:
stripScripts: function() {
return this.replace(new RegExp(Prototype.ScriptFragment, 'img'),
'');
},
When the following is called for the Complete state:
Ajax.Responders.dispatch('on' + state, this, response,
response.headerJSON);
For the following content (i.e. the this in the replace call) (and 4
similar calls):
"<h2>New type</h2>
<form action=\"/types\" class=\"new_type\" id=\"new_type_form\" method=
\"post\" onclick=\"console.log('hello from type form');\" onsubmit=
\"new Ajax.Request('/types', {asynchronous:true, evalScripts:true,
parameters:Form.serialize(this)}); return false;\"><div style=\"margin:
0;padding:0\"><input name=\"authenticity_token\" type=\"hidden\" value=
\"dCAJmVuMkAKPPnY+gqTnqYNV+E8lWyWzF8/DZsDPEWs=\" /></div>
<p>
<label for=\"type_name\">Name</label>
<br />
<input id=\"type_name\" name=\"type[name]\" size=\"30\" type=\"text
\" />
</p>
<p>
<label for=\"type_description\">Description</label>
<br />
<input id=\"type_description\" name=\"type[description]\" size=
\"30\" type=\"text\" />
</p>
<p>
<input id=\"type_submit\" name=\"commit\" type=\"submit\" value=
\"Create\" />
</p>
</form>
<a href=\"/types\">Back</a>
"
Running the command manually from the debugger console with the
whitespace stripped (i.e. on one line) it works.
Any thoughts?
Thanks,
Nick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---