Solved

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

Posted on 2008-10-23
3
873 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
  • 2
3 Comments
 
LVL 7

Accepted Solution

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

Author Closing Comment

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

Author Comment

by:TH3M4D0N3
Comment Utility
It appears that firefox doesnt support the new javascript syntax
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now