Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 9th, 2008, 8:11 AM   #1
csrocker101
Programmer
 
Join Date: Dec 2006
Posts: 41
Rep Power: 0 csrocker101 is on a distinguished road
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.
csrocker101 is offline   Reply With Quote
Old Feb 11th, 2008, 6:36 AM   #2
pushkarajthorat
Java Developer
 
pushkarajthorat's Avatar
 
Join Date: Jun 2006
Location: Solapur, India.
Posts: 22
Rep Power: 0 pushkarajthorat is an unknown quantity at this point
Send a message via Yahoo to pushkarajthorat
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
pushkarajthorat is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC