By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,042 Members | 1,267 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,042 IT Pros & Developers. It's quick & easy.

Nubie questions

P: n/a

I haven't found a reference to $() and $A(). What are these methods?


Jan 30 '06 #1
Share this Question
Share on Google+
3 Replies

P: n/a
pe********** writes:
I haven't found a reference to $() and $A(). What are these methods?

Nothing official. They are what you declare them to be, or what the
Javascript you include declares.

There is at least one javascript library that declares a function
called "$" as a shorthand for the document.getElementById function.
I don't know if it also declares a function called "$A", nor what
it would do, but you should be able to see that by finding the
declaration of the function.

Lasse Reichstein Nielsen - lr*
DHTML Death Colors: <URL:>
'Faith without judgement merely degrades the spirit divine.'
Jan 30 '06 #2

P: n/a
thanks. I'll look into the included javascript. Maybe prototype.js is
defining these.


Jan 30 '06 #3

P: n/a
pe********** said the following on 1/29/2006 7:32 PM:

I haven't found a reference to $() and $A(). What are these methods?

They are the "Uppercase" versions of 8() and 8a() and if you use them
without proper qualification then little green goblins will come out of
your monitor and beat you on the head with the bones of the squirrels
that were spinning the wheels of the last computer that Bill Gates
actually programmed on :)

OK, forgive me. I am sitting here at 3AM dreading disc replacement
surgery in 11 days and needed something to make me smile. Sorry you were
the recipient :)

They aren't "methods", they are user defined functions. If you see them
in a page some where, then view the source of the page and you will find
them. They are no different than:

myFunctionWithAReallyLongNameThatShouldHaveBeenSho rterButIDidntWantToUseTheDollarSign
comp.lang.javascript FAQ - & newsgroup weekly
Javascript Best Practices -
Jan 30 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.