Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

triton

macrumors regular
Original poster
Jul 15, 2003
172
0
Hi Everyone,

When you go to the Buy Now page from Apple's website, and you select let's say a different option from what comes standard (like more ram for example), apple's menu drop's down to show you what the options are.

Does anyone know where I can find this cool script (I'm assuming it's javascript)?? :)
 
Well if it is Javascript then you can take a look at the code from the site itself (view source is your friend ;) ). You can't copy/paste that into your site, but you could learn how it works. Anyway if you want a ready-made, freeware script, and I think you do, I haven't seen that one around, sorry.
 
janey said:
Took me a while to figure out what you were trying to say (you mean changing what it says under the price when you select a new option?), but I believe that's just a bit of ajax (xhtml+javascript+xmlhttprequest/iframe stuff).

There's plenty of tutorials everywhere, like this one: http://developer.mozilla.org/en/docs/AJAX:Getting_Started


Thank you, but I'm in need of maybe something a bit more specific. I'm looking for a script very similiar to the one I mentioned in my first post.

Thanks non the less. ;)
 
triton said:
Thank you, but...
well i'm not understanding exactly what you mean. i don't see anything dropping down, and the only thing i see changing when you select a non-standard upgrade option are the specs and the price of the machine.

If in fact what I am seeing (the prices changing) is what you're talking about, it's just custom ajax for the apple store site, in which case you aren't going to be able to find a simple script-to-do-it-all (code samples on the other hand are a different matter..). You might as well get familiar with the basics of ajax before you continue because you'll need it anyway, and after you get the basics down it'll seem like a piece of cake.

Some useful stuff:
http://www.maxkiesler.com/index.php/weblog/comments/round_up_of_30_ajax_tutorials/
http://rushi.wordpress.com/2006/04/04/beginning-ajax/
http://www-128.ibm.com/developerworks/web/library/wa-ajaxintro1.html

Also, I found the book Ajax in Action by Crane et al to be useful, I forget who the publisher was, Manning or Syngress or Peachpit i think.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.