facebook

Specific menu (like facebook)

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #343091 Reply

    Yann
    Member

    Hello,
    i have a little problem. i made a slide menu (like facebook) with sidr plugin.
    i modified root page to display menu , i added this under the last div and just above </body tag

    <div id="sidr-left">
      <!-- Your content -->
      <ul>
        <li><a href="#" onclick="closemenuleft()">Close</a></li>
        <li class="active" onclick="menu1()"><a href="#">Menu 1</a></li>
        <li><a href="#" onclick="menu2()">Menu 2</a></li>
      </ul>
    </div>

    and i made this function

    
    function menu1()
    {
     phoneui.gotoPage( "m1-page1", phoneui.transitions.slideLeft ); 
    
    }

    When i click on menu 1 nothing happen, and there are no error in my console…
    if i put a button in my project and i add a js function : menu1() my page slide correctly
    I don’t understand why the same function run as well if i add a button in my project bur do not run if i put my function directly in my root file
    Any idea?
    thanks
    Yann

    EDIT: i build a quick example of my problem.

    Attachments:
    You must be logged in to view attached files.
    #343156 Reply

    support-michael
    Keymaster

    We have not had a chance to look at your example. Unfortunately for this case our support policy is to address bugs and widget questions before we get commit resources to debugging a user’s code. It hard to say what might be goofed. The phoneui framework initializes components and could be overriding your event handlers. The guideline is to limit your html/rendering code to html widget containers. Outside of that widget mobione assumes it own the remainder of the UI. We have a support-rounds tomorrow and there is a question for the dev team on this topic.

    #343170 Reply

    Yann
    Member

    I did like this because MobiOne is not able to make a slider menu like facebook.
    I tried to put my code in an HTML widget but it does not work.
    Thanks for your help
    Yann

    #343988 Reply

    Hi Yann,

    I had taken a look at your sample project before in an internal build of milestone 3 expecting it would work but it didn’t, had to leave it for a while to focus on 2.5 production release. Our policy is more of a guideline and we have wanted to give your project some attention. I had a few mins and fired it up to see if I could understand what might be giving a problem. Please see this screencast with results. Is this working the way you envisioned it? : http://screencast.com/t/frsaiooQ

    I have attached a modificated version of your sample project. Note changes on menu1 function: added a call to closemenuleft function and used a timer to call phoneui.gotoPage function.

    Hope this is helpful.

    Attachments:
    You must be logged in to view attached files.
    #343991 Reply

    Yann
    Member

    Hello Octavion
    Perfect, it’s working
    Thanks very much
    Yann

    #344002 Reply

    Morgan1984
    Member

    Is there a way that i can open this Menu from every screen in my app ?

    #344035 Reply

    Morgan1984
    Member

    So that i didnt add this to every screen page ?

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Specific menu (like facebook)

You must be logged in to post in the forum log in