|
|
|
Forum Member
      
Group: Forum Members
Last Login: 9/9/2008 4:07:36 AM
Posts: 32,
Visits: 51
|
|
| Hi, I am getting invalid xml data. It seems to be some issue in the argument I am passing in the link javascript method. Please find the xml tag below: <set label='A-B' value='589987' link='javascript:openInWindow("/GHJYT/ShowPage/ID_DATA?doFilterData=true&f[11][op]=EQ&f[11][len]=1&f[11][0]=4-7&f[7][op]=EQ&f[7][len]=1&f[7][0]=APT&DisplayType=chart", "","resizable=1" );' tooltext = 'Count:589987'/> Any idea? Thanks for the help in advance Thanks, Moorthy
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 9/9/2008 4:07:36 AM
Posts: 32,
Visits: 51
|
|
| And I found the & in the url causing the issue. How do we encode this?
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: 2 days ago @ 9:41:33 AM
Posts: 809,
Visits: 1,285
|
|
| Hi, Could you please use %26 for &, %26apos; for single quote (') , %26quot; for double quote (").
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 9/9/2008 4:07:36 AM
Posts: 32,
Visits: 51
|
|
| Its works for me. Thanks a lot.
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 9/9/2008 4:07:36 AM
Posts: 32,
Visits: 51
|
|
| Hi, I have another requirement. In the drill link I am calling one javascript method. The code is: link='javascript:ShowMenu('Moorthy', 'Mark O'Hon)' Have encoded single quote. After encoding the code is: link='javascript:ShowMenu(%26apos;Moorthy%26apos;, %26apos;Mark O%26apos;Hon%26apos ' But I am getting javascript error while clicking the link(bar) in the chart. This issue is because the value itself having single quote. Have tried like this: link='javascript:ShowMenu(%26apos;Moorthy%26apos;, %26apos;Mark O\'Hon%26apos ' i,e have replaced the sinle quote in the value by \' In this case I am getting invalid xml error. Any solution. Thanks for the help in advance Thanks, Moorthy
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 9/9/2008 4:07:36 AM
Posts: 32,
Visits: 51
|
|
| Found the solution!! The issue is because I didnt escaped properly. using java replace method have escaped \ with \\ Now it is working fine. Thanks, Moorthy
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 4/10/2008 8:49:44 PM
Posts: 2,
Visits: 3
|
|
Using %26apos; gets me past the Invalid XML problem. But when I click on the link, the resulting URL decodes the %26apos; back to '. So if I had a parameter like p=Mc'Donalds and I set link to p=Mc%26apos;Donalds, the URL becomes p=Mc'Donalds so my server sets p to Mc. Is there any way around that?
Thanks,
Brian
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 4/10/2008 8:49:44 PM
Posts: 2,
Visits: 3
|
|
Let me try that again with the correct escaping so you can see what I meant:
Using %26apos; gets me past the Invalid XML problem. But when I click on the link, the resulting URL decodes the %26apos; back to '. So if I had a parameter like p=Mc'Donalds and I set link to p=Mc%26apos;Donalds, the URL becomes p=Mc'Donalds so my server sets p to Mc. Is there any way around that?
Thanks,
Brian
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117,
Visits: 498
|
|
Brian,
If you do not want the chart to unescape the link for you, we'll have to customize the code for you.
| | | |