Sorry maybe the title isn't very clear on what I try to get done.
Let me explain. I have a html page on which I have a button, as soon as I click the button, a php page should be run (in background). This page generates (from a database) a canvas and that canvas is turned into an encoded image (base64) and this is added to the img source of that php page (this works). Now what I want is to get that img source and display it on the html page (where the button is).
Let me know if you need any sample code.
I hope someone can help me with this. Thanks
If you are using jQuery you could use the .load function :
where
#resultis the ID of thebuttonor adivnear it .... theajax/test.phpwould be your script and thealertwithin thefunctionis the success callback (can be removed if not needed)