Re: Entering data into fields in a web form
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.