By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,948 Members | 1,958 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,948 IT Pros & Developers. It's quick & easy.

Response from Prototype AJAX containing JS not working in IE

P: n/a
I have an AJAX.Request object that I am using to call a page that
renders a bunch of tables containing numerous input fields. This
works fine in FireFox, but gets an error warning in IE7. I have
determined what causes the problem and it is because the response
contains Javascript in the input fields. In IE7 the javascript on
these fields returned from the AJAX.Request continue to work, but I
get other errors later when I submit the form.

So, I figure my errors later are related to the error from the initial
response. Does anyone know a way to fix this? If more information,
or a more detailed explanation is needed please ask.

Thanks.
Jan 18 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Jan 18, 9:46 am, breal <hacker.steven...@gmail.comwrote:
I have an AJAX.Request object that I am using to call a page that
renders a bunch of tables containing numerous input fields. This
works fine in FireFox, but gets an error warning in IE7. I have
determined what causes the problem and it is because the response
contains Javascript in the input fields. In IE7 the javascript on
these fields returned from the AJAX.Request continue to work, but I
get other errors later when I submit the form.

So, I figure my errors later are related to the error from the initial
response. Does anyone know a way to fix this? If more information,
or a more detailed explanation is needed please ask.

Thanks.
To clarify... I have read lots of posts about people trying to return
javascript inside of <scripttags. That is not what I am doing. I
simple have form fields that look like the following:
<input name="range_to_0" id="range_to_0" onchange="updateRanges(0);" /
>
If I take out the onchange it works... but leaving it in brings the
error. However, when I make a change to this field, the
updateRanges(0) function does get called.

Jan 18 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.