x-mob
02-10-2006, 04:26 AM
Hi,
I understand easily how to load and displaying external html contents in a container using Ajax but i can't do it with a jpeg directly, like many others. I also know that Ajax is not needed for this simple task but in my case, i have a full html page with dynamic contents plus a couple of live jpeg still images that when i click on one of them, it need to refresh only one or all jpeg images at the same time without reloading the full page. Can't use iframe or things like that, Ajax is the way to do it correctly.
This demo here at Dynamic Drive loads a html page :
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
I know about external url, im using local url like 127.0.0.1 for the images.
Can we set the Content Type to image/jpeg? if yes, how ?
Thanks.
-------------------
http://blog.dsa.net/
I understand easily how to load and displaying external html contents in a container using Ajax but i can't do it with a jpeg directly, like many others. I also know that Ajax is not needed for this simple task but in my case, i have a full html page with dynamic contents plus a couple of live jpeg still images that when i click on one of them, it need to refresh only one or all jpeg images at the same time without reloading the full page. Can't use iframe or things like that, Ajax is the way to do it correctly.
This demo here at Dynamic Drive loads a html page :
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
I know about external url, im using local url like 127.0.0.1 for the images.
Can we set the Content Type to image/jpeg? if yes, how ?
Thanks.
-------------------
http://blog.dsa.net/