js error

Hi all,
If there is a better list for this, please let me know.
I have a form that includes a select list of a bunch of options (either searching or logging into sites). This means that, to match the selected site's form handling code, my form has to have the right names; Google needs the search box to be called "q" while Bookshare's login form needs that same box to be called "username". I am using a script that looks at which option is selected and changes the names of the fields as required, then using form.submit() to actually submit the properly named form. I have this entire function in a try...catch, but it catches an error when I use form.submit(). When I take it out, the catch does nothing. I know that form.submit() exists, so why is it giving me problems?

Have a great day,
Alex
__________
View the list's information and change your settings at http://www.freelists.org/list/programmingblind

Other related posts: