View Single Post
  #1 (permalink)  
Old May 6th, 2005, 05:07 AM
shenku shenku is offline
Authorized User
 
Join Date: Apr 2005
Location: , , United Kingdom.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with variable names

Hi All

I've never run into something like this before hope someone out there can help.

Heres the problem:

When I declare....
Code:
var 847ba3ec_369e_4a57_8475_83faffd1187e = 'as';
It throws a big fat javascript error...

But this line doesn't...
Code:
var bcfaeec0_3c34_4076_8abb_41d9b960c117 = 'as';
So why do some GUIDs work as var names but some dont? Is there some kind of variable naming thing I should know about?

Heres why Im doing it: (if you care ;P)
I am creating a menu tree from sections/categories but because sections might have the same name, they need to use a unique name for the variable. I have GUIDs as the ID in the tables and so was using that as the javascript variable name...

Thanks for any help!!

:D



Reply With Quote