RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2168 | Replies: 1 | Thread Tools  Display Modes
Reply
Join Date: Aug 2006
Posts: 7
Reputation: chrisw09 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
chrisw09 chrisw09 is offline Offline
Newbie Poster

Question Internet Explorer accessing form elements

  #1  
Jul 16th, 2007
I have a form that consists of indexed fields like:
<input type="text" name="formItems[0].part" value="TK02">
<input type="text" name="formItems[0].price" value="13.0">
<input type="text" name="formItems[0].qty" value="1">

<input type="text" name="formItems[1].part" value="AG-1">
<input type="text" name="formItems[1].price" value="7.0">
<input type="text" name="formItems[1].qty" value="10">

In netscape/firefox, i can access the qtyOrdered value using:
document.forms['ShoppingCartForm'].elements['formItems[0].qty'].value

How do i access the qty field in Internet Explorer?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2005
Posts: 758
Reputation: digital-ether has a spectacular aura about digital-ether has a spectacular aura about 
Rep Power: 6
Solved Threads: 45
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Master Poster

Re: Internet Explorer accessing form elements

  #2  
Jul 17th, 2007
Originally Posted by chrisw09 View Post
I have a form that consists of indexed fields like:
<input type="text" name="formItems[0].part" value="TK02">
<input type="text" name="formItems[0].price" value="13.0">
<input type="text" name="formItems[0].qty" value="1">

<input type="text" name="formItems[1].part" value="AG-1">
<input type="text" name="formItems[1].price" value="7.0">
<input type="text" name="formItems[1].qty" value="10">

In netscape/firefox, i can access the qtyOrdered value using:
document.forms['ShoppingCartForm'].elements['formItems[0].qty'].value

How do i access the qty field in Internet Explorer?


I tried this in FF2.0, IE6, IE7. All of them work.
The document is xHTML standard.

What version of IE are you getting problems with?
What error do you get?
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:18 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC