Javascript Question | Apple Website

Discussion in 'Web Design and Development' started by triton, May 23, 2006.

  1. triton macrumors regular

    Joined:
    Jul 15, 2003
    #1
    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)?? :)
     
  2. floyde macrumors 6502a

    floyde

    Joined:
    Apr 7, 2005
    Location:
    Monterrey, México
    #2
    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.
     
  3. janey macrumors 603

    janey

    Joined:
    Dec 20, 2002
    Location:
    sunny los angeles
    #3
    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
     
  4. triton thread starter macrumors regular

    Joined:
    Jul 15, 2003
    #4

    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. ;)
     
  5. janey macrumors 603

    janey

    Joined:
    Dec 20, 2002
    Location:
    sunny los angeles
    #5
    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.
     

Share This Page