ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  A Simpler Ajax Path
Subject:   select-one in formData2QueryString
Date:   2005-11-16 08:09:05
From:   inthe80s
While the code provided will work fine in a decent browser like Firefox, Internet Explorer still requires you to pull the index and refer to the text and not just pull the value of the form element. So remove case 'select-one' from the switch, and add it back as a seperate one here:



case 'select-one':
strSubmitContent += formElem.name + '=' + escape(formElem[formElem.selectedIndex].text) + '&'
break;

1 to 1 of 1
  1. select-one in formData2QueryString
    2005-12-16 10:04:33  brucehodo [View]

1 to 1 of 1