Sur Max wrote:
> You can see this being the error
>
> Modalbox.hide();();
>
> Use this way
>
> render :update do |page|
> page << 'Modalbox.hide();'
> end
>
> OR this..
>
> render :update do |page|
> page.call 'Modalbox.hide'
> end
>
>
> regards,
> Sur
> http://crimson9.com
Tried it both ways, I still get this:
this:
render :update do |page|
page << 'Modalbox.hide();'
end
gives this:
try {
Modalbox.hide();
} catch (e) { alert('RJS error:\n\n' + e.toString());
alert('Modalbox.hide();'); throw e }
and this
render :update do |page|
page.call 'Modalbox.hide'
end
gives this:
try {
Modalbox.hide();
} catch (e) { alert('RJS error:\n\n' + e.toString());
alert('Modalbox.hide();'); throw e }
Any ideas? Thanks for your help so far....
Thanks...Chris
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment