473,666 Members | 2,175 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.webdevelope r.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.webdevelope r.com/" from my Facebook profile.
Second Event: Time of completely loading webpage of "http://www.webdevelope r.com/".

Thank you in advance.
Dec 1 '12 #1
9 2153
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] "SomeURLInf o" 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
2702
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. Is there an easy way to interface the program to do this? I have two questions: How can I call a webpage as simply as possible in c / c++ (preferably not using MFC etc) and pass a 'post' string to the page? How can I retrieve an array of values...
0
1680
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 done. There should be a DHCP server setup which gives the arriving clients IP, default router address etc. Where should the homepage redirection be done, 1. It could be done at the default router, the clients who haven't
1
1082
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 open multiple http connection with the client who is viewing my website and increase the download speed of my messages? my question: is this possible? and what would be the solution? (my website is http://www.codextension.com) ...
3
12017
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 = LWP::UserAgent->new(keep_alive => 5, timeout => 10, agent => 'unimportant',);
1
3522
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, @filesize("$userPath/xml/redirect.xml")); @fclose($fileID); // XML PARSE
7
1516
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 not checked and the 'submit' button is pressed, then it will not direct user to another webpage.
4
1640
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 not checked and the 'submit' button is pressed, then it will not direct user to another webpage. I want to use JavaScript for this.
0
828
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 button the page is sent to the printer to print, at the same time it should be redirected to the another page. but instead when i click the cancel button only the print dialog should get closed and not the webpage and no redirection. Thanks in...
1
1774
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 a function, to self trigger after a specific time. The self triggered function will form a hidden field message, and send to another server to query some information. This function will not able to perform a brownser redirection. Anyone have...
0
1381
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" />' % myURL ......
0
8866
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8639
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7385
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6192
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4366
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1772
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.