Hi,


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Hi,

  1. #1
    Join Date
    Mar 2009
    Posts
    2

    Question Hi,

    Can Anyone tell me how to use a onBlur event in a JSP file without calling a javascript function. I mean I want to call a Java Class file or a JSP file using onBlur event
    e.g. In a JSP file, I've the following line of code
    e.g. <INPUT type="text" name="fees" onBlur="jspfile / javafile">

    I don't want to call the javascript function based on the above code
    Can I do this ?
    Please reply, It'll be appreciable.
    Thanks

  2. #2
    Join Date
    Mar 2007
    Location
    Bangalore, India
    Posts
    247
    You have to first understand that JSP runs on the server, and the onblur runs is caught in the user's browser. It wouldn't be a good idea to attach it to a server function directly. You can used advanced JavaScript (Ajax) to call JSP, or a simple location.href (javascript) to point to the JSP file. But rest assured, the second approach will not solve your problem. The correct way would be to use Ajax to get some data from server.

  3. #3
    Join Date
    Mar 2009
    Posts
    2
    Quote Originally Posted by Razee Marikar View Post
    You have to first understand that JSP runs on the server, and the onblur runs is caught in the user's browser. It wouldn't be a good idea to attach it to a server function directly. You can used advanced JavaScript (Ajax) to call JSP, or a simple location.href (javascript) to point to the JSP file. But rest assured, the second approach will not solve your problem. The correct way would be to use Ajax to get some data from server.
    Thanks....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center