[jQuery] Re: Saving HTML as an image...
However, drawing using javascript *is* possible. You need the tag. There is a public script that makes it possible to have one solution for both IE and Mozilla and Safari. Do check though, whether the user can do "save as". I'm not sure. Another thing is, it doesn't involve jQuery... :( Good luck, Paul On Jan 12, 3:21 am, brian wrote: > You'll certainly have to look at something server-side. I suggest you > create a form with hidden fields that jQuery populates (I'm assuming > that the data is user-generated) and which is then sent to an > application to create the chart/graph. > > If you use PHP, you coulduse the PEAR Image_Graph package, for example. > > On Sun, Jan 11, 2009 at 7:02 PM, mumbojumbo wrote: > > > Hello, > > > I'm working on an application that will use jquery to make charts and > > graphs and I want to allow the user to save the html as an image. Can > > this be done? This really isn't a jquery question per se, but I would > > like to know if jquery could do it/ or if it can be done at all. > > > MJ
[jQuery] Re: Saving HTML as an image...
You'll certainly have to look at something server-side. I suggest you create a form with hidden fields that jQuery populates (I'm assuming that the data is user-generated) and which is then sent to an application to create the chart/graph. If you use PHP, you coulduse the PEAR Image_Graph package, for example. On Sun, Jan 11, 2009 at 7:02 PM, mumbojumbo wrote: > > Hello, > > I'm working on an application that will use jquery to make charts and > graphs and I want to allow the user to save the html as an image. Can > this be done? This really isn't a jquery question per se, but I would > like to know if jquery could do it/ or if it can be done at all. > > MJ
[jQuery] Re: Saving HTML as an image...
mumbojumbo wrote: I'm working on an application that will use jquery to make charts and graphs and I want to allow the user to save the html as an image. Can this be done? This really isn't a jquery question per se, but I would like to know if jquery could do it/ or if it can be done at all. AFAIK, there is nothing in jQuery to do this for you and no easy way to build it in Javascript. You probably need to look toward server-side solutions. But depending upon how wedded you are to an image format, it might be feasible to use jQuery along with only minor server-side handling to build something which saves an HTML page that includes a link to jQuery and some Javascript that regenerates the image in a browser. I've never tried anything like that, but it seems possible, and in fact seems a bit intriguing. Good luck, -- Scott