1
jeremy
Inline dynamic image
  • 2005/3/16 0:29

  • jeremy

  • Just popping in

  • Posts: 6

  • Since: 2004/3/11


I am currently developing a small (one-page) module which allows users to view scientific data from our database. The guts of the module is just one index.php and one template. The php file checks to see if there are any variables in $_POST and will return a form if it's empty. The user can then select if they want to download the data (the index.php then starts the download and exits, leaving the user at the same page) or display the data in the page (the data are sent to a smarty variable and some foreach loops in the template put them into a table) with the form below the data, to facilitate more queries.


My question is this: I would also like to be able to plot the data using jpgraph. How can I get a similar setup with a plot, i.e. click on Submit and the same page returns, but now it has a plot at the top of it. I suppose I could make a url that includes get variables (http://...?a=b& etc.), but I can't see how to not include it everytime. Creating a dynamic image when it's not needed seems like unnecessary processor usage to me.

Does anyone see a better way to do this? I'm sure there's some relatively simple way, but my knowledge of XOOPS and php is relatively simple at the moment, too .

2
jnraajan
Re: Inline dynamic image
  • 2006/8/22 19:30

  • jnraajan

  • Just popping in

  • Posts: 6

  • Since: 2006/4/21


Have you been able to get this to work? I am trying to do the same thing. I enabled caching on JpGraph and stored the image. I am showing the image in a block. The problem with this is, when the cache expires, the image is no longer valid.

3
jnraajan
Re: Inline dynamic image
  • 2006/8/22 19:33

  • jnraajan

  • Just popping in

  • Posts: 6

  • Since: 2006/4/21


Have you been able to get this to work? I am trying to do the same thing. I enabled caching on JpGraph and stored the image. I am showing the image in a block. The problem with this is, when the cache expires, the image is no longer valid.

Login

Who's Online

444 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 444


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits