Re: OT : Javascript image size undefined
Re: OT : Javascript image size undefined
- Subject: Re: OT : Javascript image size undefined
- From: Walter Ian Kaye <email@hidden>
- Date: Mon, 21 Jun 2004 13:30:41 -0700
Well, that's OT all right...
At 03:38p -0400 06/21/2004, Alisha Outridge didst inscribe upon an
electronic papyrus:
I am running Webstar 4.2 and I have tried a variety of scripts
below that claim to successfully get the width and height of any
images but they come out "undefined" for me. Is it a Mac server
issue? How does one go around it?
If you are running the script client side, then the server is irrelevant.
the code i am using is below. It seems the issue is that my
browser/server is not preloading the images as it needs to so it
can know the size in time to calculate the width and height.
If the images are on your own site, don't you already know their sizes?
In any case, the server doesn't know/care how an HTTP request is
created; it simply responds when it gets one.
-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.