Computer Hope

Internet & Networking => Web design => Topic started by: Zylstra on April 08, 2007, 12:09:15 AM

Title: .htm?=large ?
Post by: Zylstra on April 08, 2007, 12:09:15 AM
 I was viewing a video and I noticed that I could make it bigger
The address in the address bar before I did this was something like
http://www.lookatentertainment.com/v/v-1448.htm
(Cant say if thats an appropriate video or not... I think its just people getting hurt)
So I clicked 'Large' and suddenly the address turns to
http://www.lookatentertainment.com/v/v-1448.htm?size=LARGE

Now, I have seen the "?" and its following action in PHP and Perl, and a few other web application formats, but never in a .htm hypertext format.

How was this done?
Title: Re: .htm?=large ?
Post by: Computer Hope Admin on April 08, 2007, 09:49:49 AM
Huh that is interesting and although I don't have a definite answer I'd still assume it's some type of scripting language Perl/PHP/ASP that's just generating the page. Possibly SSI? Not sure, but it's not plain HTML.
Title: Re: .htm?=large ?
Post by: Zylstra on April 08, 2007, 02:29:56 PM
Its just weird since normally you dont see a .htm with a following action.
Title: Re: .htm?=large ?
Post by: fffreak on April 10, 2007, 03:55:56 PM
It's a variable in their javascript coding, and you can use "window.location" to pull the variable out and use it.
Title: Re: .htm?=large ?
Post by: Zylstra on April 10, 2007, 05:19:02 PM
Very interesting

Know of any places to learn about how to do this?
Title: Re: .htm?=large ?
Post by: fffreak on April 10, 2007, 07:16:48 PM
http://www.htmlgoodies.com/beyond/javascript/article.php/3471111
Title: Re: .htm?=large ?
Post by: Zylstra on April 10, 2007, 08:34:56 PM
Thanks for the page
(Applaud)
(A bit confusing... I think I will stick to HTML and templates)
Title: Re: .htm?=large ?
Post by: Computer Hope Admin on April 12, 2007, 12:20:17 AM
(applaud) Was not aware something like this was possible with JavaScript. Thanks for sharing fffreak. :)
Title: Re: .htm?=large ?
Post by: fffreak on April 16, 2007, 11:01:50 PM
No problem, I too had the same question a few years back.