Hi,

I´m developing a web site that does make searches for restaurants both
on the normal browser and in iPhone.

The goal is to have fully iPhone optimised site following
recommendations from apple.
That means:
·Using edge-to-edge instead of select menus.
·Using rounded rectangle layout
·Use special href links links for phone,mail,maps,youtube.

Ok, I´m almost done with everything thanks to the IUI framework and
some apple CSS, but there´s something I don´t know how to handle:

In my regular site I have a form with 4 "select" statements that I
want to replace with edge to edge menus when the page is viewed in the
iPhone.
Ok, I know how populate the contents of the select statements with PHP
and echo them like Unordered Lists. Then the user click on one of
these items in the list and the items inside the list slide in. In
that moment the user has to select one of the items and it should be
saved somewhere and go back to the beginning of the menu. But in IUI
the item you select goes to another example or to a end page.

1-Somebody can tell me how can I save the list item that the user
clicks on? I would like to save that one and 3 more parameters in PHP
and then perform the search using their values.

2-When the selection is done and the value of the list item is saved,
how can I go back to the beginning of the page with the same animation
of the back button when it´s clicked?

This is how it should look:

<body onclick="console.log('Hello', event.target);">
    <div class="toolbar">
        <h1 id="pageTitle"></h1>
        <a id="backButton" class="button" href="#"></a>
        <a class="button" href="#searchForm">Search</a>
    </div>

    <ul id="home" title="Music" selected="true">
        <li><a href="#artists">Artists</a></li>
    </ul>

    <ul id="artists" title="Artists">
        <li class="group">B</li>
        <li id="The Beatles" onlclick="save_the_id_of_this_li()"><a
href="go_to_the_beginning()">The Beatles</a></li>
    </ul>

Thank you for your help!


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