Possible bug in Real-Time Charts
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Possible bug in Real-Time Charts Expand / Collapse
Author
Message
Posted 1/3/2008 11:03:46 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #3602
Posted 1/6/2008 8:48:22 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #3618
Posted 1/6/2008 9:29:01 AM
Supreme Being

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

Post #3619
Posted 1/7/2008 2:28:18 AM
Forum Newbie

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

  Post Attachments 
RealTimeLine1.xml (1 view, 3.29 KB)
Post #3625
Posted 1/8/2008 2:46:18 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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.

Post #3686
Posted 1/10/2008 2:56:41 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #3783
Posted 1/10/2008 5:02:50 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 1:19:54 AM
Posts: 870, Visits: 1,386
Hi,

DID you try URLEcodin the link?

Regards,

Sudipto Choudhury
FusionCharts Team

Post #3791
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 5:09am


Execution: 0.078.