Connecting Tech Pros Worldwide Forums | Help | Site Map

Ajax problem in IE

Newbie
 
Join Date: Feb 2008
Posts: 3
#1: Feb 19 '08
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?

Expert
 
Join Date: May 2007
Posts: 213
#2: Feb 19 '08

re: Ajax problem in IE


How does the generated HTML look? Does IE give any message about restricting scripts on the page?
Newbie
 
Join Date: Feb 2008
Posts: 3
#3: Feb 19 '08

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.
Newbie
 
Join Date: Feb 2008
Posts: 3
#4: Feb 19 '08

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",
Expert
 
Join Date: May 2007
Posts: 213
#5: Feb 20 '08

re: Ajax problem in IE


What is the RJS code and Ajax form? Does all the HTML validate?
Reply