• 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: Entering data into fields in a web form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entering data into fields in a web form


  • Subject: Re: Entering data into fields in a web form
  • From: julifos <email@hidden>
  • Date: Tue, 04 Feb 2003 14:26:34 +0100

> Thank you,
> I used the first example and can successfully enter a text string into the
> field (the variable name when it has quotes around it). I have not been able
> to enter the contents of the applescript variable (InvoiceNum) and wonder what
> I am doing wrong.
> Jeff
> tell application "Panorama"
> set InvoiceNum to Value of Cell "invoiceNum"
> set cardNum to Value of Cell "cardNum"
> set nameOnCard to Value of Cell "nameOnCard"
> set addressOnCard to Value of Cell "addressOnCard"
> set zipOnCard to Value of Cell "zipOnCard"
> set totalForCard to Value of Cell "totalForCard"
> set cardMonth to Value of Cell "cardMonth"
> set cardYear to Value of Cell "cardYear"
>
> end tell
>
> set jscode to "document.CC.RefID.value=InvoiceNum;"
>
> -- document.CC.submit();"
> -- f: name of the form (look at page's source code)
> -- q: name of text field to fill
> -- value: value
> -- submit(): javascript method to submit a form
>
> tell application "Internet Explorer"
> Activate
> do script jscode
> end tell
>

Seems a simple problem... Try this:

set jscode to "document.CC.RefID.value=" & InvoiceNum & ";"

JJ
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: Entering data into fields in a web form
      • From: julifos <email@hidden>
  • Prev by Date: Re: Where I can find the AppleScriptLanguageGuide.pdf for Mac OS X?
  • Next by Date: Re: Entering data into fields in a web form
  • Previous by thread: Re: Entering data into fields in a web form
  • Next by thread: Re: Entering data into fields in a web form
  • Index(es):
    • Date
    • Thread