dougboude Report post Posted July 31, 2008 I already have the saveasimage functionality working for my chart. What I need, however, is a way to make the data post have a target of "_blank" instead of "_self" (I don't want the user to be taken away from the current page...I want them to get the print in a new window!). I have found the exact line in the Map.AS file that does this (l.send(this.params.imageSaveURL, "_self", "POST"), and I see that _self is a hard coded value. Is it possible for me to edit this AS file and utilize it with only the Developer version purchased? OR, is there ANOTHER way I can force my Save Image function to perform it's POST call in a new window rather than in _self? It is very inconvenient to force the user to navigate away from the page they are looking at simply to perform a print function. Thank you! Share this post Link to post Share on other sites
dougboude Report post Posted July 31, 2008 One more thing that could be a solution, but I need some input... I tried and failed to figure out a way to utilize a JS function as the POST link for SaveImage, but was unsuccessful. For instance, I know that it is possible to use JS as a URL instead of a regular http call, ( clicking the link <a href="javascript:alert('hello');">Click me!</a> works fine! ) but how can i use the javascript value as the value for my imageSaveURL attribute?? I tried something like this: imageSaveURL='javascript:alert('hello');' but no matter how I encoded it, escaped it, or used html entities in it, I could NOT get fusioncharts to accept it as valid html. Is there a way to use javascript as the value for the imageSaveURL attribute??? Thanks Share this post Link to post Share on other sites
dougboude Report post Posted August 2, 2008 Me again. It looks as though I may be a pioneer in this arena of needing to print multiple charts/maps out! I did find a way to do it, so wanted to return here to share what I did. The solution, at least the way I found to do it, is somewhat complex and involves several steps, but in the end it worked well for me. I took the time to do a very detailed blog post about it, and you can read it at http://www.dougboude.com/blog/1/2008/08/Printing-Multiple-FusionCharts-ChartsMaps.cfm FusionCharts team, I do believe that the ability to print rendered charts is a need that many people frequently have. If there is anything you can put on your "to do" list that will make this process less painful, it would be very helpful! Such as, allow javascript to be passed to the printURL attribute, allow the ability to designate a popup window for the printURL action (it appears to be hardcoded to _self currently). Thanks for a great product! Share this post Link to post Share on other sites