Jump to content
xisto Community
Sign in to follow this  
friso

Old Websites? find out HOW old

Recommended Posts

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:

java script:alert(document.lastModified) en press enter. you will get:

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 :))

 

 

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

 

javascript:alert(document.lastModified)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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, :) vujsa

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

heeeeeey nice ticky one but it's not gonna work with all sites .. and i hate java :) ( nothing personal )

<{POST_SNAPBACK}>

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.

Share this post


Link to post
Share on other sites

heeeeeey nice ticky one but it's not gonna work with all sites .. and i hate java :) ( nothing personal )

<{POST_SNAPBACK}>

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? :)

Share this post


Link to post
Share on other sites

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? :)

<{POST_SNAPBACK}>


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. :)

 

Is there something that can be changed in the code to give the ACTUAL last modified info??? :(

Share this post


Link to post
Share on other sites

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 :)ohh well, we all make mistakes.

Share this post


Link to post
Share on other sites

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.

<{POST_SNAPBACK}>

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. :)

Share this post


Link to post
Share on other sites

hey all!

thanks for all the reactions. i see it doesnt always work, too bad... :) my tutorial is actually more meant for plain html pages, like encyclopedies, articles and stuff like that. if you want it more complicated, and to put on your own site, i would like to redirect you to one of my best friends.... AMKINT! wooohooo! :( his topic is here:
a topic by amkint
anyway, i gotta go now, i'll see you later.. or well... read you later... or maybe your posts, actually... anyway: later! :(


EDIT: why didnt i get any hosting credits for my tutorial? when i posted it, before it was accepted, i had 39,95 or something, and after i still had the same.... i don't really mind, i got enough, but other people might. :)

Share this post


Link to post
Share on other sites

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. :)

<{POST_SNAPBACK}>

Just a follow up the earlier posts.

 

The plugin for Maxthon does exactly what the original intention of the thread was. With one click, the date and time of when the page was last modified is displayed in an alert. You can find it here: LastModified 1.0

Share this post


Link to post
Share on other sites

@ friso and the rest , Yes I missconfused Java with Javascript but what these ppl are telling is what I ment about it NOT working with many sites , pure HTML sites are really really .. not much alot ... mostly personal pages or old websites ... i dont mean they are bad or anything but it's starting to show its age if it hasnt already .nice tip tho never the less .

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.