try this!

<li class="foo"><a href="/ajax/foo.php?newID=myID">Foo</a></li>

and on your foo.php page you have

<div id="<?php echo "newID" . $_GET['newID']; ?>" class="panel"> // !
dont forget class="panel" or it will not be styled

</div>

This will dynamically set your new div and page to #_newIDmyID and the
back button now goes back to #_home or #_whatever. Also you can always
use target="_replace" but then the page does not slide.

Hope this helps.

Jason Navarrro




On Jan 28, 6:17 pm, "Steve Finkelstein" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm experiencing what seems to be a really ugly bug in iUI. It's
> either that, or it's my application. Everytime I click on one of my
> list items to bring in a new list, I get the following inserting into
> my DOM.
>
> <div id="__1__" style="left: 100%;">
>
> and when I click the back button and click on the same list again,
> another one gets added:
>
> <div id="__2__" style="left: 100%;">
>
> and the one that's selected:
>
> <div id="__4__" style="left: 0%;" selected="true">
>
> This is all the same <li> that I keep clicking on that looks something like:
>
>         <li class="foo"><a href="/ajax/foo.php">Foo</a></li>
>
> The problem with the above is, it replicates my entire foo.php into
> these container divs, and then any javascript I have that's using code
> such as getElementById gets completely broken since you're only
> supposed to have one id="" per page. I can write some logic to remove
> those divs, but I'd rather know
>
> a) How they're happening
> b) Is it my code that's wrong?
> c) How to prevent it or submit a fix
>
> Has anyone else noticed this oddity?
>
> /sf



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