Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Ajax problem in IE

Question posted by: mpact (Newbie) on February 19th, 2008 06:37 PM
Not sure if I should post it under Ajax or RoR - I am building an RoR application and used link_to_remote or remote_function to return a form in a span/div . It works well in FF but not in IE. Whenever there is "<form> tag" in the text returned it screws. Any suggestions?
improvcornartist's Avatar
improvcornartist
Expert
172 Posts
February 19th, 2008
07:32 PM
#2

Re: Ajax problem in IE
How does the generated HTML look? Does IE give any message about restricting scripts on the page?

Reply
mpact's Avatar
mpact
Newbie
3 Posts
February 19th, 2008
09:41 PM
#3

Re: Ajax problem in IE
Basically there are radio buttons for user to select Yes / No. The Yes / No will generate different content in span/div. The Yes radio buttons loads a HTML table with checkboxes (it works fine even with IE), The No Radio button loads an Ajax form.

When I click "No" in IE, it displays a "RJS error" and did not launch the Ajax form Whenever I removed the <form> </form> tag - the error disappears.

Thank you in advance.

Reply
mpact's Avatar
mpact
Newbie
3 Posts
February 19th, 2008
10:48 PM
#4

Re: Ajax problem in IE
I also tried to set showLoadingText=>"false" in the form (for radio button = No) but still doesn't work.

<%= form_remote_tag( :html => {:name => "entry_form", :id => "entry_form," showLoadingText=>"false" },
:update => "new_entry_list",

Reply
improvcornartist's Avatar
improvcornartist
Expert
172 Posts
February 20th, 2008
09:40 PM
#5

Re: Ajax problem in IE
What is the RJS code and Ajax form? Does all the HTML validate?

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,798 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Ruby / Rails Forum Contributors