473,563 Members | 2,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what is meant by document.frm has no properties

2 New Member
Hi,

I am novice user of JavaScript.
I have written one jsp with java script as given below.
On click on hyperlink "User Link" my FireFox firebug says
"document.f rm has no properties"
code is as follows

[HTML]<html>
<head>
<title>User Link Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<script>
function submitForm(frm, url,eventid,ses sionid,resultFo rmat,resultStar t,resultStop) {
alert("Form value is :"+frm) ;
var url = this.document.g etElementById(u rl).value;
alert("url is : "+ url);
var eventid = this.document.g etElementById(e ventid).value;
var sessionid = this.document.g etElementById(s essionid).value ;
var resultFormat = this.document.g etElementById(r esultFormat).va lue;
var resultStart = this.document.g etElementById(r esultStart).val ue;
var resultStop = this.document.g etElementById(r esultStop).valu e;
var actionURL = url.concat("eve ntID=",eventid, "&sessionID=",s essionid,"&resu lt_format=",res ultFormat,"&res ult_start=",res ultStart,"&resu lt_stop=",resul tStop);
alert("Action url is :"+ actionURL);
document.frm.ac tion = actionURL;
document.frm.su bmit();
}
</script>
</head>


<body>

<form id="userLink" action="http://localhost:8080/linklets/user_links?" method="get">
<a href="" onClick="javasc ript:submitForm ('userLink','ur l','eventID','s essionID','resu lt_format','res ult_start','res ult_stop')">Use r Link</a>

<table border="1">
<tbody>
<tr>
<td>EventID</td>
<td><input type="text" name="eventID" id="eventID" value="" /></td>
</tr>
<tr>
<td>Session ID</td>

<td><input type="text" name="sessionID " id="sessionID" value="" /></td>
</tr>
<tr>
<td>
<input type="hidden" name="url" id="url" value="http://localhost:8080/linklets/user_links?"/>
<input type="hidden" name="result_fo rmat" id="result_form at" value="applicat ion/xhtml+xml"/>
<input type="hidden" name="result_st art" id="result_star t" value="1"/>
<input type="hidden" name="result_st op" id="result_stop " value="5"/>

</td>

</tr>
</tbody>
</table>


</form>
</body>
</html>
[/HTML]

Can you tell me where I am making mistake?
Nov 14 '06 #1
1 6468
pronerd
392 Recognized Expert Contributor
That means the object or value is null. So the problem is likely is what is passing the value to that function is passing an object that is null.
Nov 14 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

47
9093
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
3
1784
by: Brett | last post by:
What is the following code doing? I see evt and event but what is the difference? <input type="radio" id="us_countryFlag1" name="us_country" onclick="togglePurDec(event)">Yes <script> function togglePurDec(evt) { evt = (evt) ? evt : event; var target = (evt.target) ? evt.target : evt.srcElement;
8
4290
by: Sergio Otoya | last post by:
Hi all, I need to add an input hidden field to an existing form (post). I have tried a couple things like adding the '<INPUT type=hidden name=idSelectedURL value=http://server/documents>' to the innerHTML of the form but it fails. ie
2
4717
by: Steve | last post by:
Can anyone tell me how to retrieve the embedded document data (author, owner, status, etc) from a Word file. Thanks! Steve
8
7013
by: dbuchanan | last post by:
Hello, What does this error mean? "The event click is read-only and cannot be changed" This is a design-time error. It is displayed instead of the form. Here is the full text \\ "One or more errors encountered while loading the designer. The errors
3
5599
by: Charles Law | last post by:
Word has a property BuiltinDocumentProperties, which (in VBA) returns a DocumentProperties collection. In VB.NET, using Word automation, it returns a _ComObject. I have tried to cast this to DocumentProperties, but I get an invalid cast exception. In Explorer, I can right click a Word document, click Properties, and I get a tabbed dialog...
669
25640
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990....
4
3193
by: N.RATNAKAR | last post by:
hai, what is abstract class and abstract method
10
4250
by: webEater | last post by:
Hello, I try the following in Firefox and other modern browsers: window.addEventListener('load', function() { document.title = CSS.getClass('fontSize'); var div = document.createElement('div'); document.getElementsByTagName('body').appendChild(div); alert(div); alert(div.style) }, true);
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.