I have a hcsp page, on which i have a link something like this :
m appending one more parameter in this url through java script.
so one is the var1 which is directly here in the url and one m appending through java script so my final url would be:
M calling a java function which fetches these variable.
my code is
This is working fine .
But when i do it for var2, this gives an error " variable var2 is not found" in the logs.
Edited by: Chely on Jan 17, 2013 3:08 AM
Edited by: Chely on Jan 17, 2013 3:09 AM
Try tracing out the entire binder by using m_binder.toString() and report back the results. Someplace in this binder, I would expect to see all the parameters.
can you check if your code detects var2 when the final URL is accessed directly in the browser? If yes, can you post your code on how you create final URL and call the sercice.
enable socketrequests in tracing section and see if var2 is present in QUERY_STRING.
Edited by: Bunty on Jan 17, 2013 10:08 AM
Thanks Jonathan. i have executed m_binder.toString() and in the logs:
*** LocalData ***
(9 keys + 0 defaults)
*** RESULT SETS ***
var1 is here but var2 is not here in the result set, Now what should i do to make it available in my binder,because in my hcsp java script i have an alert of url and in this alert i am able to see the complete url including var1 and var2.
Edited by: Chely on Jan 18, 2013 2:06 AM
If you take the URL in your alert, and put it in the location bar and hit it directly, do you see var2?
Try putting var2 before var1 in the URL string and see if that changes anything.