Re: sending form data with IE 5
Re: sending form data with IE 5
- Subject: Re: sending form data with IE 5
- From: Emmett Gray <email@hidden>
- Date: Wed, 21 Mar 2001 10:38:13 -0500
I didn't read your code so I don't know if this applies in your case,
but on occasion (not just in Applescript but, for example, with Cold
Fusion) I have had problems with misinterpreted quotation marks and
HTML symbols like greater-than etc., within a variable, when dealing
with HTML forms. The problems arise using a structure like <input
type="hidden" value="myVariable"> when myVariable contains a problem
character. I have found that it's not enough to escape quotes or make
them into a variable, as in "set quotChar to ASCII character (34)".
In a multi-stage form process I have had to actually replace these
problem characters with dummy placeholders (like ASCII characters 30
and 31) and then re-replace them later on.
Another trick: If you can, use single quotes, or curly quotes. They
are immune to this problem as they are not interpreted as HTML.
HTH.
--Emmett
On Tue, 20 Mar 2001 21:24:42 -0800, matt holland
<email@hidden> wrote:
Hi all,
I've been working on a script for the past few weeks to automate the
submittal of ebay items, using a Filemaker Pro database, and IE.
Everything seems to work except for submitting the html containing
the description text.
At first I had to escape the quote marks using a backslash to get
the script to compile, now it compiles but it only works when I omit
the variable representing the description text. IE will otherwise
report "some data could not be read"
I tried to use the Encode URL osax at
http://www.infomotions.com/tricks/manuscript/1880-0003.html however
this didn't solve the problem.
I uploaded my script and associated FMP database to
http://www.speakeasy.org/~mholland/AS/ebayauto.sit I wasn't sure if
there was an acceptable limit for lengths of posts, so I'm playing
the safe route by letting you download it.
For context this is for selling vinyl records. (on my way down from
a 6 year dj hobby/career)
Thanks in advance for all help!
-matt