xyperxex Report post Posted January 3, 2008 (edited) Hi, I am using the trial version of FusionGadgets. Currently I am trying to display a streaming line chart, and i am using hyperlinks which is suppose to open a new browser. In my static XML data, this line is included: set value='90' link='P-detailsWin,width=1800,height=900,toolbar=no,scrollbars=yes, resizable=yes-sampleLink.html' (within < > tags) When the chart is loaded, all the links which use the line above work perfectly. However, when new data is retrieved from a php file, the links do not work anymore. When i check on the 'page info' of the page, this value is used as the address -> http://localhost/hunter/htmls/P-detailsWin. This is the code which is being appended to the generated data of the php file: '&link=P-detailsWin,width=1800,height=900,toolbar=no,scrollbars=yes, resizable=yes-sampleLink.html' Is this a bug? Isn't the address supposed to be http://localhost/hunter/htmls/sampleLink.html? Thanks, Erwin Edited January 4, 2008 by Guest Share this post Link to post Share on other sites
xyperxex Report post Posted January 6, 2008 Hi! We are currently trying to make a decision whether to buy an OEM license of this product. However, we need these hyperlinks badly. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted January 6, 2008 Hi, Could you please get us the XML that PHP is rendering? That might help handling the issue. Could you please also specify whether you are using dataXML or dataURL method. Share this post Link to post Share on other sites
xyperxex Report post Posted January 7, 2008 I have attached the xml file that I am using. I use setDataURL(). And also, here is the content of my php file... $randomValue =rand(80,100); $randomValue2 = rand(20,50); $intProblem = rand(0, 10); if ($intProblem >= 9) { $randomValue = rand(0,30); } //Get label for the data - time in format hh:mn:ss $dateMinute = date('s'); $dateTimeLabel = date('h:i'); $intShowLabel = 0; if ($dateMinute <= 4) { $dateTimeLabel .= ':00'; $intShowLabel = 1; } elseif ($dateMinute >= 30 && $dateMinute <= 34) { $dateTimeLabel .= ':30'; $intShowLabel = 1; } else { $dateTimeLabel .= ':' . $dateMinute; $intShowLabel = 0; } //Now write it to output stream print "&label=" . $dateTimeLabel . "&showLabel=" . $intShowLabel . "&value=" . $randomValue . "|" . $randomValue2 . '&link=P-detailsWin,width=1800,height=900,toolbar=no,scrollbars=yes, resizable=yes-sampleLink.html'; RealTimeLine1.xml Share this post Link to post Share on other sites
tcraigen Report post Posted January 8, 2008 Quote xyperxex (1/7/2008) //Now write it to output stream print "&label=" . $dateTimeLabel . "&showLabel=" . $intShowLabel . "&value=" . $randomValue . "|" . $randomValue2 . '&link=P-detailsWin,width=1800,height=900,toolbar=no,scrollbars=yes, resizable=yes-sampleLink.html'; I think you are missing a space: print "&label=" . $dateTimeLabel . "&showLabel=" . $intShowLabel . "&value=" . $randomValue . "|" . $randomValue2 . '&link=P-detailsWin,width=1800,height=900,toolbar=no,scrollbars=yes, resizable=yes -sampleLink.html'; Also, don't forget to escape special characters or turn to html, & = &, that one just burned me this past week. Share this post Link to post Share on other sites
xyperxex Report post Posted January 10, 2008 I tried inserting that space you mentioned (resizable=yes -sampleLink.html), but the same thing still happened. Thanks, though. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted January 10, 2008 Hi, DID you try URLEcodin the link? Share this post Link to post Share on other sites