File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

How to define focus() method in JS

 
Radhakrishna Sharma Gorenta
Ranch Hand
Posts: 63
Google App Engine Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator


I am getting an error "the focus() method undefined"
How to remove this error? please help me
thanks in advance.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33719
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
There's no input tag for first or last name in that HTML page. This makes document.frm.firstname null so you can't call a method on it.
 
Radhakrishna Sharma Gorenta
Ranch Hand
Posts: 63
Google App Engine Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
There is no problem with the execution of the code. The only problem is my IDE is showing it as a error(undefined function focus()) underlined with red color. As a result each time i used focus() method it is appearing as an error. i just want to remove the warning/error by my IDE(Eclipse).
 
Radhakrishna Sharma Gorenta
Ranch Hand
Posts: 63
Google App Engine Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Looks like your ide is wrong, what a surprise. lol

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Complaining about IDEs here is not useful. Log a bug report with the IDE.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic