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.