![]() |
Incorporating javascript code into java application
Hey everybody. I am a bit bored and have been playing around with some open source code but am having a slight problem. Could anyone kindly tell me how to incorporate Javascript code into my Main Java application code? I have basically made a Java application that can time how fast the homepage of a website loads however; I am trying to incorporate the firebug open source code to check the HTML/scripting code for formatting and scripting errors. The firebug open source code is predominately in Javascript but how would I go about doing this? Basically I want the user to enter a website they wish to check for speed and then the user clicks the start button and then the program times the website and then runs the code through javascript checking the code for errors. If anyone could give me a link or some advice on how to do this that would be great.
|
Re: Incorporating javascript code into java application
This is a big Bownser to me! why do you want to use the JAVA code here to check the response speed of a website!
I have couple of !deas you may use... 1. Are you fine with using the javascript code where there are two frames... one where your javascript code is running and other where the target page loads... there might be some API with which you can check when the page loads and then compute difference between times. 2. Use xmlhttp object which has API to register a javascript function which is be called when the response is received... |
| All times are GMT -5. The time now is 4:02 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC