Sorry for this extra post;

I've found out that when I trigger goTo(); my url does not get updated
which could be the reason why goBack(); does not work proper

So the earlier jQT.goTo($('#home'), 'flip'); trigers the #home data to
load on screen, but the url itself stays on the #test page how can i
update this proper?

Thx in advance

On Oct 1, 9:22 am, Jwie <[email protected]> wrote:
> Yes this works
> But this gives me problems when going back 1 page
>
> for example;
>
> <a class="back" href="#bck">Back</a>
>
> $('a[href="#bck"]').click(function(){
>         console.log("Trigger go back");
>         jQT.goBack(1);
>         });
>
> this works as expected on normal navigation but, when i load data from
> the internal database the go back needs 2 clicks to respond properly
>
> I would like to achieve the following
>
> listen for click
> load date from internal DB when click occurs
> parse results to display page
> trigger goTo();
>
> it all goes well except that the back click need to clicks to work
> tested it with
> goBack(1) => need 2 clicks
> goBack(2) => does nothing on first click second click gives me error
> (TypeError: Result of expression 'hist[0]' [undefined] is not an
> object.)
> goBack('#home') => does nothing on first click second click gives
> error (TypeError: Result of expression 'hist[0]' [undefined] is not an
> object.)
>
> What am I doing wrong here?
>
> On Oct 1, 7:34 am, David Kaneda <[email protected]> wrote:
>
>
>
> > Joey,
>
> > Yes, technically in r88, goTo is actually built to accept a jQuery  
> > object, so you would do:
> > jQT.goTo($('#home'), 'flip');
>
> > This is definitely an oversight, though — I'll be adding support for  
> > string IDs very soon.
>
> > Thanks,
> > Dave
>
> > On Sep 30, 2009, at 11:18 PM, Jwie wrote:
>
> > > Hi,
>
> > > I have a small issue with the latest svn version r88.
> > > Just to be sure that it isn't a fault on my behalf, I would like to
> > > know how you guys call this functions goTo();
>
> > > Every time I try to trigger it like "jQT.goTo('#home', 'flip');" there
> > > comes an error like
> > >     Result of expression 'toPage.trigger' [undefined] is not a
> > > function.    jqtouch.js:277
>
> > > Am I doing something wrong here? or is this just normal behavior since
> > > it's svn..
> > > If this is expected behavior, can someone point out an svn revision
> > > that has a working goTo() or goToPage()
>
> > > Thx in advance
>
> > ..............................................................
>
> > Interface Design & Developmentwww.davidkaneda.com
> > 610 724 8033

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