![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Dec 2006
Posts: 41
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#2 |
|
Java Developer
|
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...
__________________
[Pushkaraj] Imagination is more important than knowledge – Albert Einstein |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Php with Sun Java System Application Server Platform | lucifer | PHP | 0 | Jun 7th, 2007 4:03 AM |
| FTP and return code fetching | Serinth | C | 2 | May 28th, 2006 11:05 PM |
| Problem in my Java Code | jch02140 | Java | 6 | Aug 14th, 2005 3:08 PM |
| Different IDE's Different code | 357mag | Java | 1 | Mar 26th, 2005 3:42 PM |