|
|
|
Junior Member
      
Group: Forum Members
Last Login: 8/5/2008 1:52:29 AM
Posts: 11,
Visits: 28
|
|
Hello,
The charts that are generated work flawlessly, I am amazed how simplistic it was (congrats to the development team). However, I need some help with getting this to appear within another window. Right now, I have so many graphs being processed that it's really increasing wait times. I need desperately to figure out how to use pop ups to help drastically decrease wait times.
I want/need to be able to have a link for each graph, and when pressed to display the graph within another window that pops up.. If it's not implemented, is there another way I go about doing this?
Thank you for the help ahead of time.
Bluntz11
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Yesterday @ 11:37:05 PM
Posts: 732,
Visits: 2,190
|
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 8/5/2008 1:52:29 AM
Posts: 11,
Visits: 28
|
|
Hello,
Thank you for replying to my initial message and giving me a possible solution. However, what I need to be have an a href link with some text "Click here to view graph"...upon clicking that link the chart will render in the new window, and only in that new window..
Is there any possible solution to this, I desperately need this to work.
echo renderChartHTML("FCF_MSLine.swf", "", $strXML2, "myNext2", 500, 400);
Thanks,
Bluntz11
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Yesterday @ 11:37:05 PM
Posts: 732,
Visits: 2,190
|
|
Hi, you can do this by 2 way1) use link with a target. when use will click that link it will open in new window <a href="chart.php" target="_blank" >"Click here to view graph"</a> in chart.php you can render a chart. 2) also you can use javascript window.open for open a new window. In that window you can refer a chart.php page. <a href="javascript:void(0);" onClick="openChart();" >Click here to view graph</a> // JavaScript Document function openChart() { window.open("chart.php","window","menubar=1,resizable=1,width=350,height=250"); }
Thanks,
Arindam FusionCharts Team
www.fusioncharts.com
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 8/5/2008 1:52:29 AM
Posts: 11,
Visits: 28
|
|
Hey,
Thank you so much for the help, although I've come the realization that there will be a problem. I am generating an immense amount of graphs, and well suffice to say, I just wouldn't be rendering one. Now the problem that I have now is that, where I have the script for the pop to appear, is where I'm compiling all the XML data for the graphs(and it is stored in a variable (PHP..)). I've been trying to figure out how to pass the data from php page, through javascript to the other php page and well since the XML code will be too long to pass in the HEADER(POST), I cant think of any other solution....
Any help would be great and thank you for the help ahead of time.
Thanks,
Bluntz11
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Yesterday @ 11:37:05 PM
Posts: 732,
Visits: 2,190
|
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 8/5/2008 1:52:29 AM
Posts: 11,
Visits: 28
|
|
Hey,
The only problem is that I have about 20-30, if not more, graphs being generated, and x sets are being produced in for loops, so it would be impossible to keep track using session variables. Other than that, I'm not sure how to do it....
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 8/5/2008 1:52:29 AM
Posts: 11,
Visits: 28
|
|
How can I store the XML code in a session variable(storing the XML code in a variable within PHP); whatever I do, nothing ends up showing up. :cry:
for instance, $strXML is where my XML code is linked, but when I put $_SESSION['code'] = $strXML nothing shows up when I try to render it..
--update -- well, I did manage to store the XML data in a session variable, but now I cannot get it to display the code... I know it has the data becasue I did a strlen on it, and it was coming up to nearly 239 and it also says "No data to display" :cry:
$strXML = $_SESSION['arr'];
echo renderChartHTML("FCF_MSLine.swf", "", $strXML, "myNext", 400, 400);
Help please,
Thank you,
Bluntz11
|
|
|
| | |