Omni
#1
I have a structure. Once the handler is submitted I need to relocate to a non coldbox page by passing the element of the structure
When i do this
var str = “”;
for(key in httpStruct) {
str+= ‘&#key#=#httpStruct[key]#’;
}
var strURL = “#gatewayURL##str#”;
the i ma using relocate to go to a different page
relocate(url=’#strURL ');
But I get the error messsage The value ‘’ cannot be converted to a number.
As with every other post of yours: How about providing:
- the actual code
- the actual error message
- the actual stack trace
andrews
#3
Have you tried
relocate(url=’#strURL#’);
or
relocate(url=strURL);
???
andrews
#4
And I think you will find it is location and not relocate…
The problem is this expression
str\+= '&\#key\#=\#httpStruct\[key\]\#';
It not valid to use += to concatenate strings in CFML. You have to use
&=
instead of