|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 1/10/2008 2:55:23 AM
Posts: 5,
Visits: 18
|
|
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
Erwin
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 1/10/2008 2:55:23 AM
Posts: 5,
Visits: 18
|
|
Hi!
We are currently trying to make a decision whether to buy an OEM license of this product. However, we need these hyperlinks badly.
Erwin
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 1:19:54 AM
Posts: 870,
Visits: 1,386
|
|
| 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.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 1/10/2008 2:55:23 AM
Posts: 5,
Visits: 18
|
|
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';
Erwin
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 8/26/2008 8:21:01 PM
Posts: 43,
Visits: 74
|
|
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.
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 1/10/2008 2:55:23 AM
Posts: 5,
Visits: 18
|
|
I tried inserting that space you mentioned (resizable=yes -sampleLink.html), but the same thing still happened.
Thanks, though.
Erwin
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 1:19:54 AM
Posts: 870,
Visits: 1,386
|
|
|
|
|