[thelist] Feeding image bytes from PHP to client-side JavaScript
dave gray
dascott at wam.umd.edu
Thu Dec 7 19:06:47 CST 2000
Hi Matt,
I have done something similar to this beffore with Perl and didn't run
into any problems. I can't imagine Javascript puking on that as long as
the script returns a valid image w/ good headers and stuff...
I'd be interested to hear if there are any PHP-specific quirks you run
into when you get it figured out.
HTH,
-dave
> Is it possible to grab an image off the filesystem with php and feed it back
> to a imageObject.src attribute? Here's the situation:
>
> I need to call a PHP script from the client side and that script will
> determine which image to return:
>
> var myimg = new Image();
> myimg.src = "scripts/myscript.php";
>
> Then, I will replace that returned image with an "placeholder" image already
> on the page... sort of like a rollover.
>
> Basically, does JavaScript support this kind of thing? Are there issues I need
> to be aware of? Does PHP have adequete binary support?
>
> Thanks!
>
> --
> mattwarden
> mattwarden.com
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>
More information about the thelist
mailing list