Thanks for your detailed answer, I will try and let you know.

On Sep 4, 4:25 am, Sean Gilligan <[email protected]> wrote:
> Sean Gilligan wrote:
> > dogan kaya berktas wrote:
> >> Any ideas ?
>
> Oops.  Just noticed that you said 'B' is pulled with ajax.  That's not
> going to work without some kind of extension to iUI.  The problems is
> that the url URL in your browser history is something like:
>
> http://site.com/page.html#_B
>
> When you hit the browser back button it will reload that URL, but it
> won't know what Ajax URL anchor 'B' was loaded from.
>
> If you look at Issue #107 in the Issued DB you'll see that comment #1
> explains the issue.  In comment #2 I state that the new feature in 0.30
> doesn't address the Ajax problem.   Comment #5 proposes a solution that
> uses a coding convention that says the Ajax page must be loaded from a
> URL derived from the anchor.
>
> In other words after iUI discovers there is no 'view' with id='B' in the
> DOM of the main page, it would then make an ajax call to load B.frag (or
> B.html, etc)  Alternatively you could create some kind of table that
> maps from an anchor/id to an ajax URL.
>
> Here is a link to the source change in 
> Mercurial:http://code.google.com/p/iui/source/detail?r=bd391970be27846ccd0ee7ba...
> If you click the 'diff' link you can see what was changed to add the
> feature.  You'll see that if getPageFromLoc() doesn't return a page, it
> gives up.  You could create write a function getAjaxUrlFromLoc() that
> returns a URL.  You should then be able to call iui.showPageByHref to
> load that URL.
>
> Sorry this is a little rambling, but I know you've been waiting.
>
> -- Sean

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to