Quote:
|
quote:The " / " in that code is to avoid the error thrown by javascript when passing the string within '....' as javasciprt identifies " ' " as end of string.
|
No, it doesn't. When you enclose a single quote in double quotes
"'"
or a double quote in single quotes
'"'
JavaScript behaves correctly.
But in any case, if you want to "escape" a character in JavaScript, you use a *BACKSLASH* character, not a forward slash.
And, finally, that code with the "/'" is *NOT* JavaScript! It is VBScript code. JavaScript would never *SEE* that string, at all, as it is used by your VBScript code to create a recordset on the server.
***************
Yes, my code posts back to itself. If you are talking about the
Multiple drop-down lists, subcategories via ASP
version. But that's not the version you should have looked at. The demo titled
Multiple drop-down lists, subcategories via JavaScript.
is the one that matches closely what you are doing.