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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to