Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Servlets and JavaScript

Status
Not open for further replies.

jlipsitz

Programmer
Jul 13, 2003
14
US
Hi,

I have a servlet that writes html code and also creates a separate frame. I need to be able detect a mouseover event on the html page that would then update the frame based on what was moused over. What is the easiest to coordinate the mouseover event with the update of the frame. And is javascript the only way that I will be able to pick up the mouseover?

Thanks
 
yes JS is the only way to pick mouseovers. and lets say u r printing a button:
out.println(&quot;<input type='Button' .... onMouseOver='FunctionHere()'>&quot;);

Known is handfull, Unknown is worldfull
 
So after the mouse event i need to get information that is stored in the servlet...What is the best way to transfer control from the javascript back to some function in the servlet.
 
that is not possible as the javascript code is executed only after the entire servlet is run. u may have to resubmit to the servlet...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top