Sign in to follow this  
Nick71

URL Encoding and drill downs

Recommended Posts

Hi,

 

 

 

I have a chart that I want to add a drill down to. The XML for the chart is...

 

 

 

<chart caption='Total Ordered by Customer' xAxisName='X Axis' yAxisName='X+Axis' showValues='0' formatNumberScale='0' showBorder='1' rotateLabels='0' slantLabels='0' showAboutMenuItem='1' aboutMenuItemLabel='About DataPA' aboutMenuItemLink='n-http://www.datapa.com' >

 

<set label='R & R Sports Ctr' value='368927.89' link='http://dummyaddress.com/drilldown.aspx?label=R+%26+R+Sports+Ctr&value=368927.89' />

 

<set label='Koenig Sporting Goods' value='553158.92' link='http://dummyaddress.com/drilldown.aspx?label=Koenig+Sporting+Goods&value=553158.92' />

 

<set label='Fort' value='542523.66' link='http://dummyaddress.com/drilldown.aspx?label=Fort&value=542523.66' />

 

<set label='Fitness Tech' value='520555.23' link='http://dummyaddress.com/drilldown.aspx?label=Fitness+Tech&value=520555.23' />

 

<set label='All Star Sport Ctr' value='495662.59' link='http://dummyaddress.com/drilldown.aspx?label=All+Star+Sport+Ctr&value=495662.59' />

 

</chart>

 

 

 

I have URL encoded each of values in the name-value pairs, so for instance "R & R Sports Ctr" becomes "R+%26+R+Sports+Ctr" to ensure they can be passed back to the server without problems. However, when I click on the chart, the resulting URL removes the URL encoding, e.g.

 

 

 

http://dummyaddress.com/drilldown.aspx?label=R & R Sports Ctr&value=368927.89

 

 

 

This means the values can no longer be parsed properly on the server.

 

 

 

Is there a way I can preserve the URL encoding in the value pairs?

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

Could you please URL encode the complete URL and try again?

Example:

var str=escape('http://dummyaddress.com/drilldown.aspx?label=R %26 R Sports Ctr%26value=368927.89');

Edited by Guest

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this