This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Error in Namespacing through Yahoo Namespace Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Error in Namespacing through Yahoo Namespace" Watch "Error in Namespacing through Yahoo Namespace" New topic
Author

Error in Namespacing through Yahoo Namespace

Tom Hopkins
Greenhorn

Joined: May 23, 2007
Posts: 9
Hi all,

I am trying to create a YAHOO NAMESPACE like

YAHOO.namespace("com.abc.def.lib.studentid");

The above thing is working fine, but as soon as i change like this

YAHOO.namespace("com.sjsu.js.lib.1234");

i get
"missing ; before statement 1" error

Any help greatly appreciated!!!

Regards,
Tom
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15362
    
    6
functions/variables names can not start with a number.

Eric
Tom Hopkins
Greenhorn

Joined: May 23, 2007
Posts: 9
Thanks Eric for reply, I am a newbie to javascript...

in this case, isnt this a string being passed like "com.abc.def.123"...i am not starting function with a number nor declaring a variable that starts with number.

Sorry if I am asking stupid questions.

If you can elaborate your answer, greatly appreciated.
Thanks in advance for your time.

Thanks
Tom
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in Namespacing through Yahoo Namespace
 
Similar Threads
Connection refused
struts 2 error ---- Could not find action or result
problem to unmarshal xml file who have element with prefix
Cattle drive has
HELP!: How to set default namespace in JDOM