Welcome Guest ( Log In | Register )



2 Pages V   1 2 >  
Reply to this topicStart new topic
> Old Websites?, find out HOW old!
friso
post Feb 26 2005, 03:37 PM
Post #1


Advanced Member
Group Icon

Group: Members
Posts: 142
Joined: 24-November 04
From: Netherlands
Member No.: 1,504



hi all!

this is my first tutorial, i hope people will like it.
it's basically a way to find out how old the content in a specific website is, it works with javascript.This is a very short tutorial, because it's very simple.
You just type the javascript in the adressbar:
javascript:alert(document.lastModified) en press enter. you will get:
user posted image

ofcourse, you can put it on your webpage too, but i myself don't like prompts too much.

i hope you will find this tutorial useful, and would like all kinds of comments. Even the negative responses, but please, be subtile, and don't slap me with a wet fish, (you know what i mean, Nils,sorry about that wink.gif)


btw: the prompt i used was Google's last modified.

CODE
javascript:alert(document.lastModified)


Go to the top of the page
 
+Quote Post
qwijibow
post Feb 26 2005, 10:40 PM
Post #2


Way Out Of Control - You need a life :)
Group Icon

Group: Members
Posts: 1,366
Joined: 14-September 04
From: Nottingham England
Member No.: 570



amasing !!!

Often i find myself reading documentation and tutorials on the internet that doesnt hve a date, doesnt have a software version number, and i dont know how dated or usefull the information is.

once i was trying to get a modem driver to work with a 2.6 kernel.
the instrctions i found were very well writtem, but turned out to be for the 2.0 kernel, and therefore useless.

this will be very usefull to me!

thanks.
Go to the top of the page
 
+Quote Post
cryptonx
post Feb 26 2005, 10:45 PM
Post #3


Advanced Member
Group Icon

Group: Members
Posts: 149
Joined: 18-November 04
From: Cairo,Egypt
Member No.: 1,413



heeeeeey nice ticky one but it's not gonna work with all sites .. and i hate java tongue.gif ( nothing personal )
Go to the top of the page
 
+Quote Post
vujsa
post Feb 27 2005, 02:04 AM
Post #4


Absolute Newbie
Group Icon

Group: Admin
Posts: 888
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714
myCENTs:35.43



Neat tip. It should come in handy from time to time.
Does it still work on pages generated on-the-fly? Or just give the date and time that the page was requested.
Still a cool trick none the less.

Keep up the good work.

Happy coding, cool.gif
vujsa
Go to the top of the page
 
+Quote Post
banjosforpeace
post Feb 27 2005, 09:38 AM
Post #5


Member - Active Contributor
Group Icon

Group: Members
Posts: 91
Joined: 31-January 05
Member No.: 2,453



This would make a great plug-in button for Maxthon!!! Typing in the address bar every time would be a bit of a hassle. But if there was a button on your toolbar that you could click to get the info, that would be awesome!

I'm going to take this to the Maxthon user forums and see if it can be done. It may already be there or someone may already be working on it so I'll find out.
Go to the top of the page
 
+Quote Post
amkint
post Feb 27 2005, 09:54 AM
Post #6


Member - Active Contributor
Group Icon

Group: Members
Posts: 86
Joined: 4-February 05
From: Bangalore
Member No.: 2,508



QUOTE(cryptonx @ Feb 27 2005, 04:15 AM)
heeeeeey nice ticky one but it's not gonna work with all sites .. and i hate java tongue.gif ( nothing personal )
*


my dear friend... this is not java... its javascript. These two things are totally different and not related to each other... lot of guys get confused between the two.
Go to the top of the page
 
+Quote Post
SingleDaddyof2
post Feb 27 2005, 10:09 AM
Post #7


Advanced Member
Group Icon

Group: Members
Posts: 115
Joined: 14-February 05
From: So. Cal.
Member No.: 2,632



QUOTE(cryptonx @ Feb 26 2005, 02:45 PM)
heeeeeey nice ticky one but it's not gonna work with all sites .. and i hate java tongue.gif ( nothing personal )
*


cryptonx may have confused java and javascript but I think he's right when he says it's not gonna work with all sites. When I tried it, the popup box just gave me the date & time that the webpage downloaded to my computer (in other words, the current time). Is this due to the site or my browser or something else? unsure.gif
Go to the top of the page
 
+Quote Post
banjosforpeace
post Feb 27 2005, 10:27 AM
Post #8


Member - Active Contributor
Group Icon

Group: Members
Posts: 91
Joined: 31-January 05
Member No.: 2,453



QUOTE(SingleDaddyof2 @ Feb 27 2005, 06:09 AM)
cryptonx may have confused java and javascript but I think he's right when he says it's not gonna work with all sites. When I tried it, the popup box just gave me the date & time that the webpage downloaded to my computer (in other words, the current time). Is this due to the site or my browser or something else? unsure.gif
*



I just realized that it did the same thing for me, only giving me the date and time of when it downloaded to my computer. And I already posted in the Maxthon forums. Grrr. mad.gif

Is there something that can be changed in the code to give the ACTUAL last modified info??? huh.gif
Go to the top of the page
 
+Quote Post
qwijibow
post Feb 27 2005, 12:32 PM
Post #9


Way Out Of Control - You need a life :)
Group Icon

Group: Members
Posts: 1,366
Joined: 14-September 04
From: Nottingham England
Member No.: 570



OOps....
yeah, i tried it on some webpages ive written, and it always flashes up current time.

maybe i should have tested this more before i approved it tongue.gif

ohh well, we all make mistakes.
Go to the top of the page
 
+Quote Post
banjosforpeace
post Feb 27 2005, 01:39 PM
Post #10


Member - Active Contributor
Group Icon

Group: Members
Posts: 91
Joined: 31-January 05
Member No.: 2,453



QUOTE(banjosforpeace @ Feb 27 2005, 05:38 AM)
This would make a great plug-in button for Maxthon!!! Typing in the address bar every time would be a bit of a hassle. But if there was a button on your toolbar that you could click to get the info, that would be awesome!

I'm going to take this to the Maxthon user forums and see if it can be done. It may already be there or someone may already be working on it so I'll find out.

*



To partially answer my own question, I got a plugin from the Maxthon forum that I will try later today when I'm on my regular computer. If the results bear any relevancy to this thread, I'll post them later. smile.gif
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Forming A New Website's Layout(23)
  2. What Are: The 100 Oldest Websites(46)
  3. Firefox Speed Tweaks(15)
  4. Game Websites Anyone?(26)
  5. Logos / Banners For Ipb Board(0)
  6. C++ Tutorials And Websites(10)
  7. Can We Host Multiple Websites On Mutiple Accounts?(4)
  8. Hack Websites(8)
  9. Possible To Do?(7)
  10. Websites Creation Record(7)
  11. Pcmag: Top 101 Websites(0)
  12. Flash Websites(13)
  13. Great Flash Website Builder!(3)
  14. Www.free-webhosts.com , The Ultimate...(5)
  15. Logo Designs I Created For My 2 New Websites(20)
  1. Any One Good At Makeing Templates For Websites(0)
  2. What Content Managers For Websites You Use?(4)
  3. Designing A Websites Graphics(8)
  4. Making Websites For Companies(8)
  5. Ready Made Websites(7)
  6. Graphic Design For Hire? Any Websites Out There?(2)
  7. Download Movies From Websites Like Youtube(12)
  8. Protecting The User From Visiting Some Websites(4)
  9. Websites For Teens(12)
  10. About Websites(2)
  11. Websites With Communities(7)
  12. 10 Extremely Useful Websites To Stop Big Brother From Snooping On You(5)
  13. Macromedia Flash Websites(0)


 



- Lo-Fi Version Time is now: 21st November 2008 - 06:34 PM