We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
A Simpler Ajax Path
|
| Subject: |
|
Only uses the first form on a page |
| Date: |
|
2005-06-15 20:54:11 |
| From: |
|
fleegix
|
Response to: Only uses the first form on a page
|
|
Oops, sorry -- looks like the downloadable version has a slightly older version of the function. The version used as the example in the article is more up-to-date one where the form reference is passed into the function as a variable.
That lets you use the function with forms in other frames or windows, like this:
var openerForm = opener.document.forms['searchForm'];
var strPostData = formData2QueryString(openerForm);
I'll update the code in the downloadable file. Thanks for catching that.
|