Firefox 3 + prototype 1.6.2 + shortcut = failed

Hi all,

On firefox 3, the following code always return an error:

var account_id = $(account_request_id).value;
—> account_request_id is not defined

But the DOM account_request_id is present in the page and this code is
working with IE and Safari.

Do I miss something ?

shouldn’t that be:

$(“account_request_id”).value;

Thorsten M. wrote:

shouldn’t that be:

$(“account_request_id”).value;

That’s it. Everywhere in Prototype and Scriptaculous book, they are
using ’ instead of "
-__-’

Hi, I’m using both FF 3.0.1 and the following works for me:
$( ‘element_name’ )

or

$( “element_name” )

However, the following doesn’t work in Prototype 1.6:

$( element_name )

This may have worked in Prototype 1.5.

Good luck,

-Conrad

On Thu, Jul 17, 2008 at 5:35 AM, MR Damien
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs