|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/29/2007 4:00:06 PM
Posts: 4,
Visits: 10
|
|
I am using the setDataURL method and want to pass other parameters via GET query string. All works fine except when one of the parameters is an ampersand.
For example
myChart.setDataURL(escape("/loadchart/chart?param1=" + param1 + "¶m2=" + param2));
myChart.render(id);
It works fine when: param1 = 'string1', param2 = 'param2'
However, if fails when: param1 = 'strin&g1', param2 = 'param2'
Replacing & with %26 does not fix the problem as I would have expected it would.
Please help.
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 9/10/2007 11:38:00 AM
Posts: 15,
Visits: 15
|
|
| I am running into the same issue. Any thoughts?
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/29/2007 4:00:06 PM
Posts: 4,
Visits: 10
|
|
| I have tried almost everything that makes logical sense to me. I am wondering if maybe double encoding will do the trick: %2526...
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/29/2007 4:00:06 PM
Posts: 4,
Visits: 10
|
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 9/10/2007 11:38:00 AM
Posts: 15,
Visits: 15
|
|
| doing an escape() resolved the issue for me..
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/20/2008 7:08:20 AM
Posts: 3,
Visits: 8
|
|
I also ran into this. There is a javascript function to help
gauge1.setDataURL("URL?" + encodeURIComponent("param1=111¶m2=222"));
|
|
|
|