Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Script error

 
chiranjeevi gunturu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we see some code?
 
madupathi arun
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic