Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>how to pass the dom object of current html page to java

how to pass the dom object of current html page to java

nimbooin
03-15-2006, 12:37 PM
Hai
I had a problem with my previous approach in javascript so i thought of another strategy, to work with java. How can i pass the DOM of the current web page that is the HTML page to java, so that i can parse the DOM and i need to extract the internal contents of the script tags in the page and evaluate them apart from running in the webpage.
How can i pass the dom object to java and evaluate the scripts contents from java.

A1ien51
03-15-2006, 03:46 PM
If you want to pass it to the server, you are going to have to most likely build a string and post it depending what the DOM data is.

Eric

Beagle
03-15-2006, 07:23 PM
If you're using server-side java, why pass the entire DOM in when JSPs will be generating your document anyway? More often than not, if you want to manipulate / traverse the DOM, you want it on the client.

If you want it to be done in an applet, there's something called liveconnect. It's kind of annoying to get working at first, but google for it and you'll see how you can get javascript and applets to communicate.


 

TOP

Hyperthreading hurts s
HP sharpens blade PC l
Apple goes for Quad po
Itanium gets scaled do

For more info

HP sharpens blade PC l
Hyperthreading hurts s
can not call click() i
script does not work o
smart menu 
write to an html file 
FireFox doesn't recogn
Changing e.keyCode (e.
Clearing a range creat
UPDATE: My mouse over 

News Archive

onChange Help 
beforeload? vs onload.
Problem with document.
decreasing my javascri
Problem with \\ and \ 
how to stop scrolling?
Change Label Text Colo
Can I forward a page b
2 javascript functions
Validating a textbox 

Related stories:

simulate keypresses
Textarea onchange function
Horizontal window scrolling on mouseclick
Changing contents in one iFrame after another loads
Scrolling Text Problem
Code works in Firefox but not in Internet Exploder
Having a problem deleting a cookie... can anyone help
Upload pic and text to new html file
Need help with two radio buttons controlling on Div hide/show

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics