Revo 2.5.1-pl
I have a resource that loads jqplot -
http://www.jqplot.com/ and generates a chart from data stored in my custom tables. Jqplot has a feature that will generate an image (png) on the fly and display it in a div. All working fine.
I would now like to be able to display that image in a resource in a new window which will be converted to a pdf using pdfresource (installed and working fine).
I've tried:
output = '<h1>Hello, World!</h1>';
window.open('printchart.html').document.body.innerHTML += output;//printchart.html is pdfresource
the new window opens with Hello world but is overwritten by the pdf conversion - obviously cus modx doesn't know I'm passing data to printchart.html.
I suspect I will have to save the image then load it into printchart.html but I really want to do it on the fly (with jquery???).
I stumbled across symlinks but I haven't got my head round that and wouldn't have a clue how to go about it.
Does any one have any advice, suggestions or pointers on how I can do this please?
Thanks in anticipation