Entry
how to access javascriptvariales into java variales or jsp variales
Apr 9th, 2008 20:27
ha mo, Dave Clark, rajani vuyyuru,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rajani,
There can be no direct communication between JavaScript and
server-side code (ASP, JSP, PHP, etc) -- due to the nature of client
vs. server. If the JAVA you're referring to is a JAVA applet loaded
in the same page, then all your JAVA applet has to do is to expose a
method for JavaScript to use in passing JavaScript values to your JAVA
applet code.
For server-side code use, JavaScript variable values must be
transmitted via an HTTP Request to the server. For example, a normal
form submission is such an HTTP Request. Also, AJAX can be used to
create such an HTTP Request directly from your JavaScript code:
http://jibbering.com/2002/4/httprequest.html
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.healthinhealth.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com