Jscript: Invalid character error !!
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


««12

Jscript: Invalid character error !! Expand / Collapse
Author
Message
Posted 6/13/2007 11:29:34 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
We use something like this in PHP:

$strLink = urlencode("updateChart(" . $intYear . "," . chr(34) . $ors['Country'] .  chr(34) . ");");
$strXML .= "<set label='" . escapeXML($ors['Country'], $forDataURL) . "' value='" . $ors['Average'] . "' link='" . $strLink . "'/>";

And something like this in ASP:

'Generate the link
   strLink = Server.URLEncode("updateProductChart(" & intYear & "," & oRs("MonthNum") & "," & ors("CategoryId") & ");")
   'Append data
   strDataXML = strDataXML & "<set value='" & oRs("Total") & "' link='" & strLink & "'/>"

Thanks,
Pallav Nadhani
FusionCharts Team

Post #1310
Posted 6/18/2007 4:17:16 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/18/2007 5:18:47 PM
Posts: 8, Visits: 13
Pallav,

I'm still getting the same error. "COHASH7" is undefined.

string coIDcoded = "COHASH7";

string strLink = Server.UrlEncode("updateChart("+coIDCoded+");");

this.strXMLDoc += "<set value='" + coAMT.ToString() + "' name='" + coIDCoded + "' color='" + colorArray[colorCount] + "' link='"+strLink+"'/>";

Thanks.

Post #1356
Posted 6/18/2007 5:19:42 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/18/2007 5:18:47 PM
Posts: 8, Visits: 13
Pallav,

Got it working. Thanks for your help. Some tricky url encoding did the job.

Thanks

Post #1358
« Prev Topic | Next Topic »

««12

Permissions Expand / Collapse

All times are GMT -7:00, Time now is 8:12am


Execution: 0.063.