Hi,
i am currently working on a class that generates diagramm's as pictures with php. I want to load these pictures dynamically with jquery. How can i do that?? I wont have a real picture file, just the content of the file when i call it with ajax... And i cant simply define the phpscript as the src because i need to pass Post Parameters to the picture...
EDIT:
Okay.. I think i have to eyplain it a bit further...
Here is the html code:
<div>
<img id="image" />
</div>
<input type="button" onclick="loadPicture();" />
When the button is pressed, some data should be send to the php Script that generates the picture. A Callback function or something similar should now post the picture into the img- element. Simply posting the Picture into the img tag doesnt work. The folloeing code would work, but how can i add POST params??
<img src="<scriptname>.php" />