File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 15376
    
    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