in reply to Re:* Mechanizing Javascript form
in thread Mechanizing Javascript form
Show us the page, why don't you, and let us figure out what it's doing?
The fundamental point is that a JavaScript form almost certainly doesn't do anything that an equivalent HTML form can do. The JS probably just checks that certain fields aren't empty or something like that -- checks the buttons/fields before submitting. After submitting, it's just another form.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re:* Mechanize
by Roy Johnson (Monsignor) on Nov 10, 2003 at 21:57 UTC | |
Here's the pertinent code. On an earlier pass, I had the commented section uncommented, so that I got a local copy of the file. The file contained this line, which is what I expected the find_link to return, but it did not find it.
I'm tempted to say it's a bug in Mechanize, but I'm not having a good brain day, so maybe I'm just misunderstanding how find_link is supposed to work. Update: it looks like the reason for this is broken HTML: an unclosed link earlier on the page. | [reply] [d/l] [select] |
Re:*Mechanizing Javascript form
by Roy Johnson (Monsignor) on Nov 10, 2003 at 21:42 UTC | |
The JavaScript... ...and the form...
| [reply] [d/l] [select] |