You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I tried to pass the variable mylist from Script#1 to Script#2. I couldn't use the indexOf operation on this variable in Script#2. Is it not a string after it's passed to Script#2?
If the string that the QueryString returns is consist of "value1, value2, value3", you must reconstruct this string into "value1,value2,value3" format before you can use the IndexOf operation on this new string in your page.