Solved

Firefox not recognizing document.form.element.value tells me my form (name) is not defined.

Posted on 2008-10-23
3
889 Views
Last Modified: 2013-12-07
Here is the javascript function:

function setTransferSID(value){
            YAHOO.Organizers.PersonSearch.hide();
            ContactUpdate.personid.value = value;
      }

 it works perfectly in IE and Maxthon (ie counterpart), however in firefox i get the error:

ContactUpdate is not defined
setTransferSID("191963")index.cf...SiteID=14 (line 379)
onclick(click clientX=320, clientY=268)index.cf...UXA%3D%3D (line 3)
[Break on this error] ContactUpdate.personid.value = value;



<form id="ContactUpdate" action="UpdateSiteContact" method="post">
	<input name="SiteID" type="hidden" value="#getSiteID()#" />
	SID:<input type="Text" name="personid" style="width: 50px;" >
	<input type="button" value="search" id="ShowPersonSearch" onclick="showPplSearchRequest();">
	Contact Type:
	<select name="ContactTypeID">
	<option value="">&nbsp;</option>
        </select>
	<input name="btn_Update" type="submit" value="Update" class="button">
</form>

Open in new window

0
Comment
Question by:TH3M4D0N3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
bluV11t earned 250 total points
ID: 22790363
Try:   document.getElementById('ContactUpdate').personid.value
0
 

Author Closing Comment

by:TH3M4D0N3
ID: 31509403
yeah found that out about 5 minutes after posting, but thanks anyways bluv11t
0
 

Author Comment

by:TH3M4D0N3
ID: 22791162
It appears that firefox doesnt support the new javascript syntax
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question