• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OT : Javascript image size undefined
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >OT : Javascript image size undefined (From: Alisha Outridge <email@hidden>)

  • Prev by Date: Re: Error with GURL/GURL
  • Next by Date: user interaction (& osascript/cron & System Events ) [was: 'ignoring application responses' stops working ??]
  • Previous by thread: OT : Javascript image size undefined
  • Next by thread: Re: OT : Javascript image size undefined
  • Index(es):
    • Date
    • Thread