473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Response from Prototype AJAX containing JS not working in IE

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
1 1690
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mambenanje | last post by:
I am using the prototype ajax library but I realised that each time I am calling the server for xml the new records get appended to the old so when I display the xml data it shows the old ones and...
1
by: GSlusarek | last post by:
Hi all. I made AJAX call which return me a piece of javascript code. I trying to execute that code and I get that some global variables are not accesible. I mean i use prototype library and when i...
5
by: dougwig | last post by:
I'm trying to handle the scenario where a user's session times out and and their ajax request triggers a redirection by the webserver (302 error?). I'm using Prototype 1.4 and the my works great...
4
by: evgenyg | last post by:
Hello ! We have the following situation - when Ajax request is sent what's being returned by the server is usually an XML (which is used for DOM updates) but sometimes it's HTML which is a whole...
2
by: diverge | last post by:
Hi, i'm working on an ASP project with prototype.js but i just can't get special chars to work as they should. I'm using UTF-8 pages but as soon as i call a page containing for example å,ä,ö, < or...
4
by: ext237 | last post by:
Simple ajax call seems to have some issues in Firefox. The "onComplete:" is called BEFORE the response is returned by the call. Is there a coding issue or a work around? var ajax = new...
3
by: jacobstr | last post by:
I've noticed Object.extend used in a few different ways and I'm having trouble distinguishing why certain usages apply to a given situation. On line 804 Ajax.Base is defined as follows: ...
1
by: maildmz | last post by:
Goodafternoon, I have got a minimum Mongrel instance running (see ruby code) and i am hitting it with an Ajax request using Prototype. (see javascript code) I get the 'onLoading' event, but...
3
omerbutt
by: omerbutt | last post by:
hi there i have downloaded a prototype tooltip from http://www.nickstakenburg.com/projects/prototip/ the logic it uses is to call the script after creating the <div> for example i am using the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.