>> GreenByte.info By Nick Tong (quiksilv) | Supported by: TalkWebSolutions.co.uk

Spry $ dollar sign

I've been coming up with a few issues lately with some code not working due to the dollar key ($) not being defined in some of my Javascript code.

For those that don't know, Spry has a shortcut for

document.getDocumentById('id');

and this is the dollar key ($).

The reason for this error is due to the fact that i'm using two AJAX frameworks and there is a clash.

The easy way to solve this issue is to use:

Spry.$

When referring to the Spry getDocumentById shortcut.

I would suggest that you use it regardless in case it causes issues down the line.


 
Comments
Raymond Camden's Gravatar As far as I know, $ was removed from Spry, and you shoul defintely only use Spry.$. I ran into after an update a few months ago.
# Posted By Raymond Camden | 25/09/07 00:47 | Report abusive comment
BlogCFC was created by Raymond Camden. This blog is running version 5.5.1.