I have one more question: I can get most of the data to input and post with the submit for most of my forms.
One form however, I am having problems posting the data. The data flows into the text fields but doesn’t post the data (data flashes into the text fields and when page refreshes the data is gone).
Html Code (SIMPLIFIED):
Applescript code:
set PONumber to "001"
set ItemDescription to "Cards"
set Price to "$5.00"
set FormPush to "document.forms['frmData'].elements['Quote0_strNumber'].value ='" & PONumber & "';document.forms['frmData'].elements['Quote0_strDescription'].value ='" & ItemDescription & "';document.forms['frmData'].elements['Quote0_curAmount'].value ='" & Price & "';document.forms['frmData'].SubmitPage('SavePrint');"
tell application "Safari" to do JavaScript FormPush in document 1
I suspect that it is this part of the code that is not working:
document.forms[‘frmData’].SubmitPage(‘SavePrint’);
Any ideas?
Thanks again,
AppleScriptJunkie
BTW, do you have a Paypal account? I will send you the donation!