WOrking in IE 6 but not working in FireFox
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, April 2, 2005 02:36 AM

Hi I am testing my application in both IE 6 and FireFox browsers.I got diiferent responses from these two browsers for the same code.
The sample code.

			
if(document.sampleform.state.options[document.sampleform.state.selectedIndex].text == "other")
{
//dosomething
}

The above code is working in IE 6.But in Firefox it rasing the error sampleform undefined.or not defined ? Why these Differences? any code problem? Please help this situation...
Thanx in advance
Paul

Re: WOrking in IE 6 but not working in FireFox

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, April 2, 2005 06:18 AM

Try "document.forms['sampleform']" or something like that.
About | Sitemap | Contact