473,508 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webpage redirection time

3 New Member
Hi all,

I want to calculate time consumed in redirecting from 1 webpage to another webpage.
For Example:
1) I am using Facebook in Google Chrome browser.
I have shared 1 link on my Facebook profile like below:

http://www.webdeveloper.com/

2) When I click on this link from my Facebook profile, then this website will open in new tab.

3) I want to calculate time difference in miliseconds or microseconds between below two events:
First Event: Time of clicking link "http://www.webdeveloper.com/" from my Facebook profile.
Second Event: Time of completely loading webpage of "http://www.webdeveloper.com/".

Thank you in advance.
Dec 1 '12 #1
9 2151
gits
5,390 Recognized Expert Moderator Expert
you cannot do that - since it would involve coding in both pages.
Dec 6 '12 #2
zmbd
5,501 Recognized Expert Moderator Expert
Gits, Why not design the link to pass the current time to the linked website?
Dec 6 '12 #3
gits
5,390 Recognized Expert Moderator Expert
since the linked page cannot do anything with it - except you have access to code in it, which i doubt it is the case in the OP. you cannot even access the new window's onload event - which is due to the same origin policy - that will help to avoid cross-site-scripting issues.
Dec 6 '12 #4
zmbd
5,501 Recognized Expert Moderator Expert
IS there nothing in the "HTTP-referer" header that could be used?
It is my understanding that a webserver at least can determine something along these lines:

{IP.Address - - [12/Dec/2012:10:36:26 -0600] "SomeURLInfo" 200 12120 "-" "Browser (Operating System) (etc)}

Couldn't that time be used?
Dec 6 '12 #5
gits
5,390 Recognized Expert Moderator Expert
to determine the time from calling a link until the linked page is fully loaded u would need to determine the timestamps of:

1: the click of the link - that's easy, use an onclick-event and u are fine.

2: the onload-event of the linked page - that seems impossible when the page is from another domain - unless you can code something there. you cannot (and should not even try to) inject any javascript-code to another site - at least not without more advanced techniques that i dont want to explain here.
Dec 7 '12 #6
gits
5,390 Recognized Expert Moderator Expert
in case - the direction of actions is like that i described - AND you can access the code of the 'linked' page - then its simple of course - just pass the click-timestamp with the URL for example - and receive it in the page - use the onload-event and calculate the time-difference.
Dec 7 '12 #7
zmbd
5,501 Recognized Expert Moderator Expert
Injecting any code into another site's page wasn't where I was going at all and I apologize if that was the impression given.

I was just looking at the fact that most web browsers tend to send or make available a lot of information about where you were, when you were there, what OS, etc... There are a lot of "security" websites that demonstrate what they can pull from your computer. GRC is one such...

However, it appears that even that information isn't available within this context.
Dec 7 '12 #8
gits
5,390 Recognized Expert Moderator Expert
the problem is in the requirement of: 'Time of completely loading webpage'

this is the point where the page's onload-event is fired - and that is just a browser-event. that is not propagated back to the server - so this information isn't available there without any coding. to make that worse - in case you have a page with frames - then the above requirement would imply that all pages in the base-page are loaded first and then you have to measure the time - so that would require coding in all sub-pages to synchronize the events.

there is no need to apologize - you didn't give the impression that you suggest to inject code to a page - i was only saying that without that, it is not possible. and to implement the code legally would require legal control of that page of course.
Dec 7 '12 #9
ABHIJEEEEET
3 New Member
Thank you for your responses.
I decided to go ahead with firebug for Firefox and Developer Tools for Chrome.
My problem is solved.
Dec 8 '12 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

12
2687
by: David Walker | last post by:
Hi I have a program which I need to interface with a webpage - the webpage will accept an input (probably a 'post' string from the program) and then will process it and needs to return a value. ...
0
1672
by: itsharkopath | last post by:
Hi, Imagine a user in a hotspot, when he comes to the hotspot and tries to load a webpage (on the internet), he would automatically redirected to login page. I believe the following is to be...
1
1078
by: elie khoury via .NET 247 | last post by:
hy, i just have a question, if anybody can help me i'll be very thankfull. my website is very loaded with images (120KB each page) so is was thinking if i could use a MultiThreaded method to open...
3
12010
by: suchindra | last post by:
The following is my very simple script : </script> #!/usr/bin/perl use strict; use LWP::UserAgent; my $url = "<My Web Server IP : PORT Number>"; my $browser =...
1
3512
by: comp.lang.php | last post by:
require_once("/users/ppowell/web/php_global_vars.php"); if ($_GET) { // INITIALIZE VARS $fileID = @fopen("$userPath/xml/redirect.xml", 'r'); $stuff = @fread($fileID,...
7
1499
by: neogazz | last post by:
How would you design a webpage form which contains a "checkbox" that when checked and the 'submit' button is pressed will automatically redirect the user to another webpage?? If the "checkbox" is...
4
1638
by: neogazz | last post by:
How would you design a webpage <form> which contains a "checkbox" that when checked and the 'submit' button is pressed will automatically redirect the user to another webpage?? If the "checkbox"...
0
825
by: chinnubala | last post by:
Im creating a web page which has html table which contains some images and text to display. Im using javascript window.print() command to display the dialog box. My issue is If i click on the print...
1
1772
by: Sean Len | last post by:
Normally, we can create hidden field and post the entire page to another server to transfer data. Is there anyway to perform similar task, without using a webpage? For example: I want to write...
0
1379
by: yingjie | last post by:
Hi all, I have a python cgi script which looks like this: logfile = open('xxxxxxxxx') print "Content-Type: text/html\n\n" ..... print ' <meta http-equiv="refresh" content="15;url=%s"...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.