• 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: URL Access Scripting-Form Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL Access Scripting-Form Data


  • Subject: Re: URL Access Scripting-Form Data
  • From: Timothy Bates <email@hidden>
  • Date: Fri, 06 Sep 2002 11:02:32 +1000

> I guess my question was really "How does the CGI (generically)
> know "which" button was pressed in the form, since there can be
> more than one, and how do I emulate that if I'm scripting with URL
> Access Scripting?"
Forms never use more than one image if information about the click location
is needed for all the images.

> I thought it would have to do with a value that I needed but couldn't
> seem to find to pair with the button's name, in this case
> "categories".

If the image button is simply acting as an enticing graphic to cause the
user to submit the form, then you can just ignore it.

> I was unaware of the x/y coordinates that are
> submitted.
That is the key concept.

> Is that how the CGI's distinguish which button is
> pressed?

Well it is obvious to the cgi, because only one image (with its own unique
name) will come in on the get or post data stream.

> How would they know what the coordinates mean since
> the coordinates can be very different based on the particular
> browser window, platform, etc.? What should I use in my script in
> place of actually clicking on a button?

The coordinates are in pixels and the window and platform are therefore
irrelevant.

FYI, if you are using php, it converts the x and y coordinates from

name.x and name.y to name_x and name_y

("." is an illegal character within a variable name)

tim
_______________________________________________
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.

  • Prev by Date: Re: Add IE Favorites
  • Next by Date: [Off-ish] Can't we just be friends?
  • Previous by thread: Re: URL Access Scripting-Form Data
  • Next by thread: Serial Port
  • Index(es):
    • Date
    • Thread