Forum: Ruby js_eval vs execScript

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
47abf01477d955de97ae0545f940332d?d=identicon&s=25 John Gouda (john-gouda)
on 2009-05-01 08:57
He guys,

I have a problem making any of the following running:


I made the following script to write some string in tinymce editor

  if $BrowserName == "FF" then
'mceSetContent', false, 'Test Mail')");
'mceSetContent', false, 'Test Mail')")

The one for IE working great, but js_eval is not working, even if I use
simpler JS like alert('Hi');

Any advice please?

Really appreciate your help.
47abf01477d955de97ae0545f940332d?d=identicon&s=25 John Gouda (john-gouda)
on 2009-05-08 13:36
Hey guys,

Please any idea, how to make js_eval works?
I need to show a confirm dialog as a start.
Then I need to execute JS in FF, any replacement for js_eval

Many thanks.
This topic is locked and can not be replied to.