Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How is this done? web code

How is this done? web code
Thread Tools
Professional Poster
Join Date: May 1999
Location: New York City
Status: Offline
Reply With Quote
Oct 2, 2006, 04:33 PM
 
http://store.apple.com/1-800-MY-APPL...;nclm=iPodnano

down at the gallery you can scroll through the images...

is it called AJAX???

is there a place to learn it?

thx

The rich are cheap. That's how they got rich.
     
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status: Offline
Reply With Quote
Oct 2, 2006, 05:19 PM
 
If you look at the page source, it's just a bit of Javascript... I don't see any XML, so why would it be AJAX?
     
Professional Poster
Join Date: May 1999
Location: New York City
Status: Offline
Reply With Quote
Oct 2, 2006, 06:05 PM
 
thanks

i have no idea what ajax is...what is ajax?

The rich are cheap. That's how they got rich.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Oct 2, 2006, 06:15 PM
 
AJAX is the use of XMLHttpRequest in Javascript to communicate with the server and dynamically update the server with information from the page, update the page with information from the server, or both.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 2, 2006, 06:19 PM
 
Originally Posted by ironknee
thanks

i have no idea what ajax is...what is ajax?

The most common use of Ajax is to get a web-based form to behave more like an application.

In a traditional web-based form, you need to select some stuff and scroll down to the bottom to find some sort of submit button.

With Ajax you can trigger some event on the server via a Javascript event handler (which are "onclick", "onchange", etc.). This event on the server could be querying a database, pulling some content from XML, or whatever. Ajax does not have to involve XML, I use Ajax to make dynamic database calls on this page (and throughout my recently recoded site):

NetMusician :: web publishing software for musicians

These events also happen asynchronously, meaning that you don't have to wait for one event to finish before the other starts (although controlling this behavior has some browser issues/bugs/challenges).

The net result is this: when you are playing around in an OS X preference window, when you click on a checkbox, the application can do something immediately the second you click on the checkbox. Prior to Ajax, you were limited to Javascript which simply controlled what you saw on that given page (e.g. a Javascript event might trigger a pop-up window or something), or applying the change with a form submit button. Now you can get form widgets and stuff to behave just like you'd expect in an application pref dialog or something.

Does this make sense?


The Apple thing is probably using Ajax, although it could also be done in straight Javascript if the images were preloaded.
(Last edited by besson3c; Oct 2, 2006 at 08:44 PM. )
     
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Oct 2, 2006, 07:59 PM
 
To add to Besson, The strongest examples of AJAX type stuff are gmail and this very forum. The Forum may not be Ajax proper, but when you do a quick reply, it uses the javascript http events to upload your posting and update the page.

Likewise, gmail does practially everything with an Ajax system. It's just kind of a cool way to get information to react on the web. I imagine that it is the future of some powerful applications
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 2, 2006, 08:46 PM
 
Originally Posted by SirCastor
To add to Besson, The strongest examples of AJAX type stuff are gmail and this very forum. The Forum may not be Ajax proper, but when you do a quick reply, it uses the javascript http events to upload your posting and update the page.

Likewise, gmail does practially everything with an Ajax system. It's just kind of a cool way to get information to react on the web. I imagine that it is the future of some powerful applications

Yes, who could forget the Quick Reply feature here! Another common use is to get Ajax to hide/conceal some dynamic elements of a page (e.g. show/hide the "latest news" sidebar where the show function will pull the latest stories from the database)
     
Professional Poster
Join Date: May 1999
Location: New York City
Status: Offline
Reply With Quote
Oct 3, 2006, 01:53 PM
 
wow thanks all

The rich are cheap. That's how they got rich.
     
Professional Poster
Join Date: May 1999
Location: New York City
Status: Offline
Reply With Quote
Oct 4, 2006, 10:07 PM
 
http://store.apple.com/1-800-MY-APPL...;nclm=iPodnano

so is there a place where i can get the code for a newbie?

thx

The rich are cheap. That's how they got rich.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 4, 2006, 10:20 PM
 
Originally Posted by ironknee
http://store.apple.com/1-800-MY-APPL...;nclm=iPodnano

so is there a place where i can get the code for a newbie?

thx


I don't know of any place, but if you are a newbie and would like to understand this this would be an excellent project to take on, as it shouldn't be too difficult (with the exception of the sliding animation, which I'd leave to the very end). It's often better to write something yourself that you can understand rather than trying to figure out somebody else's work and make it fit for your own purposes.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Oct 4, 2006, 10:22 PM
 
I believe the script responsible for the gallery is at http://store.apple.com/rs/js/gallery.js, but it probably won't mean much to you if you don't already understand the subject.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Oct 4, 2006, 10:38 PM
 
AJAX - MDC
That's the mozilla ajax site. They have a good intro to it.
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 4, 2006, 10:39 PM
 
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:37 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2