- This topic has 6 replies, 4 voices, and was last updated 11 years ago by Morgan1984.
-
AuthorPosts
-
YannMemberHello,
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
YannEDIT: i build a quick example of my problem.
Attachments:
You must be logged in to view attached files.
support-michaelKeymasterWe 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.
YannMemberI 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
support-octavioMemberHi 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.
YannMemberHello Octavion
Perfect, it’s working
Thanks very much
Yann
Morgan1984MemberIs there a way that i can open this Menu from every screen in my app ?
Morgan1984MemberSo that i didnt add this to every screen page ?
-
AuthorPosts