Hi,
AFAIK you should only use one toolbar definition or you have to use
target="_self" on the links to force a reload of the page with the new
toolbar def. Thats because if you click on a link the next page is loaded
and appended to the current markup - if there is a second toolbar def. they
get overlayed. If you wanna see whats going on - download firebug for
firefox and check the html before and after you click on a link - you see
whats going on then.
If you need a button on a special page only i would append it via javascript
- that will remove your issues.
As example:
page1.html:
<div class="toolbar">
<h1 id="pageTitle"></h1>
<a id="backButton" class="button" href="#"></a>
<a class="button" href="#Search_form">Search</a>
</div>
<ul title="Title" selected="true">..... content .... </ul>
page2.html:
<ul title="Title 2" selected="true">..... content .... </ul>
cheers
Max
2009/7/27 XML Dude <[email protected]>
>
> Hi all,
>
> I have been developing an iPhone app using IUI, which is a fantastic
> little library.
>
> Pretty much everything is now going smoothly except for a couple of
> glitches. Specifically I am having a problem with the toolbar when
> navigating using the back button.
>
> The back button is working as expected, however it is the other button
> on the toolbar that is causing issues.
> Firstly I navigate to a page which has the following toolbar def:
>
> <div class="toolbar">
> <h1 id="pageTitle"></h1>
> <a id="backButton" class="button" href="#"></a>
> <a class="button" href="#Search_form">Search</a>
> </div>
> <ul title="Title" selected="true">..... content .... </ul>
>
> Then I click on one of the list items which takes me to a page which
> has a toolbar def of:
>
> <div class="toolbar">
> <h1 id="pageTitle"></h1>
> <a id="backButton" class="button" href="#"></a>
> <a class="button" href="#Edit_form">Edit</a>
> </div>
> <ul title="Title 2" selected="true">..... content .... </ul>
>
> The problem is that the "Search" button from the first page remains on
> the toolbar, the "Edit" button is now placed on top of it, but you can
> still see part of the "Search" button behind.
>
> Also, if I navigate back to a page which has no right button defined,
> the button from the previous page still appears.
>
> So basically, the right button is never removed when navigating away
> from a page and appears on the next page when it should not.
>
> The other issue is that when I navigate back, there are two toolbar
> background images stacked on top of one another. If I keep navigating
> back and forth, eventually the toolbar background fills the whole
> screen.
>
> I have been looking at the source code to try and figure out where the
> issue lies, but if anyone could give a pointer or two that would be
> most appreciated.
>
> Regards,
>
> Chris
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---