Sign in to follow this  
xyperxex

Possible bug in Real-Time Charts

Recommended Posts

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 by Guest

Share this post


Link to post
Share on other sites

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
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

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