Topic awaiting preservation: variable string including ' ' |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: West Texas |
posted 02-11-2003 22:27
Well, I was bored at work the other day, so I started working on this javascript to pass the time... Everything went fine until I tried passing parameters to the function... code: function loadMenu(toLoad)
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-11-2003 23:19
I think you misunderstand the role that quotes play in programming languages. Understand that when we do this: |
Paranoid (IV) Inmate From: West Texas |
posted 02-12-2003 03:17
Yea, that's what I figured, and that's what I started with actually. When it didn't like it, I played with it a bit until I ran out of ideas, then asked someone else that works in the lab and the only thing we could come up with is to add the quotes, and, well, you can see how well that worked... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-12-2003 03:37
If you throw up a page demonstrating the problem, I'd be happy to look at it. |
Paranoid (IV) Inmate From: West Texas |
posted 02-12-2003 03:55
All righty, I took the liberty of putting it up on the lab's server (perk of working here... Except it only allows me to edit it in FrontPage, blah... ) |