There should be some similarities between facebook and iUI since the creator of iUI (Joe Hewitt) is now working at facebook and is behind the iPhone optimized version of their site.
On Jan 7, 3:14 pm, helge <[EMAIL PROTECTED]> wrote: > On Jan 7, 5:16 pm, "Steve Finkelstein" <[EMAIL PROTECTED]> wrote: > > > ... if you click on profile it'll route you to something that looks like > > >http://iphone.facebook.com/#profile.php?id=XXXX > > > Is this actually 'leaving' the page and requesting profile.php? > > No. The stuff behind the # is the so called fragment id (Google > it ...). Fragment ids are links which get resolved inside the HTML > document by the browser (it first resolves the URL and then resolves > the fragment by searching for the named anker). > > Since the current page URL stays 'http://iphone.facebook.com/'no page > refresh is performed. The browser will attempt to locate the > 'profile.php?id=XXXX' anker inside the HTML (which might fail, but > this doesn't matter). The nice thing is that the JavaScript does have > access to the fragment, hence can parse it and resolve the context (or > use the fragment for subsequent requests). > > Thats more or less a standard technique since the early days of > JavaScript. The most simplistic form you will find a lot is: > <a href="#" onclick="doTheRealStuff()">do it ...</a> > > Greets, > Helge > --http://www.helgehess.eu/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
