-
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
-
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.
-
 Originally Posted by Razee Marikar
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks