aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Script error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Script error" Watch "Script error" New topic
Author

Script error

chiranjeevi gunturu
Ranch Hand

Joined: Mar 02, 2007
Posts: 59
Hi friends ,
I am getting an error some thing like below while running a jsp page which has java script.





what could be the problem?
Please help me. Thanks in advance
Bryce Martin
Ranch Hand

Joined: Nov 19, 2007
Posts: 269
can we see some code?
madupathi arun
Greenhorn

Joined: Feb 25, 2008
Posts: 23
hi
check your formname and from properties
your error saying that that property value is not available with that particular formname
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Did you mean document.forms[0].IPage? Watch your syntax.

P.S. forms[0] is a poor way to reference the form and its element. What happens if another form gets added to the page. Either give you form a name and us it, or better yet, give the element an id and reference it directly.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Originally posted by Bear Bibeault:
Did you mean document.forms[0].IPage? Watch your syntax.

P.S. forms[0] is a poor way to reference the form and its element. What happens if another form gets added to the page. Either give you form a name and us it, or better yet, give the element an id and reference it directly.


Bear, if I remember correctly, the browser spits out that .0 in the error message when you do [0]. I am too busy to test.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Script error