View Full Version : Looking for a tutorial on how to...

10-06-2007, 06:27 PM
do this!

How would I achieve and effect such as this? When you click on the motorcycle brands, on the same screen it changes them for you. It doesn't look like an iframe, or even regular frames. How are they doing this?!



10-06-2007, 06:42 PM
Scripts from there will probably do what you want.

That page seems to use Ajax which is a method of javascript [not a language in itself] that basically requests data without refreshing the page then can do stuff with it, such as displaying it.

Note that the page should also be coded so it will work for users who have javascript disabled or are using older browsers, so you will want to code it to refresh by default and have javascript override that if it can use ajax instead.
(It will just reload the page by default; if javascript works, it'll do the fancy thing. This way, it'll be the as compatible as possible with the most browsers.)

Also, please take a look at this for the proper way to ask questions: