<%=form_remote_tag ..%> doesnt work in IE.

26 views
Skip to first unread message

Carolene

unread,
Sep 12, 2006, 3:24:05 AM9/12/06
to Ruby on Rails: Spinoffs
The rails code

<%= form_remote_tag(:update => 'preview',
:complete =>"new Effect.Grow('preview'), new
Effect.Fold('Wrapper')",
:url => {:action => 'ack', :id =>
@params[:symbol].to_s+'|'+
@params[:qty]}) %>

<%= submit_tag 'SUBMIT', :onClick=>"this.disabled='true'"%>

<%=end_form_tag%>

The same code works very well in firefox. And also ther is no problem
with combination effects in IE. Effects works well.

The problem is submit tag doesnt perform the desired action in IE. It
doesnt call the controller.

Plsss help !

Thomas Fuchs

unread,
Sep 12, 2006, 4:12:28 AM9/12/06
to rubyonrail...@googlegroups.com
Form remote tag works fine for me in IE.

Note that you have a syntax error in your :complete callback,
as you must seperate statements by ";" instead of ",".

:complete => "new Effect.Grow('preview'); new Effect.Fold('Wrapper')"

If you still have problems, you should post a URL to a working demo
of this (will probably get you the fastest help).

Best,
-Thomas

--
Thomas Fuchs
wollzelle

http://www.wollzelle.com

questentier on AIM
madrobby on irc.freenode.net

http://www.fluxiom.com :: online digital asset management
http://script.aculo.us :: Web 2.0 JavaScript
http://mir.aculo.us :: Where no web developer has gone before


Carolene

unread,
Sep 12, 2006, 4:52:22 AM9/12/06
to Ruby on Rails: Spinoffs
Thanks a lot for the reply.

I have corrected my syntax error but still I face the same.

When i click on submit for the form, i checked my log file, it doesnt
even process or render the action.

But it works in IE in this way,

<%= link_to_remote((submit_tag 'SUBMIT',
:onClick=>"this.disabled='true'"),:update => 'preview', :complete
=>"new Effect.Grow('preview'); new Effect.Fold('Wrapper')",


:url => {:action => 'ack', :id =>@params[:symbol].to_s+'|'+
@params[:qty]}) %>

I still wonder, Y it doesnt work if i use form_remote_tag?

Reply all
Reply to author
Forward
0 new messages