Not sure, but a quick idea: did you try adding type="button" to the button? Without that it could be treated as a submit button, and if you had something like <form><button>test</button></form> that button would effectively cause the page to reload. If you use <button type="button"></button> then clicking the button will have no side effects.
On Wed, Apr 3, 2013 at 4:24 AM, Mar <[email protected]> wrote: > Hi everyone > > I'm here again, Well I keep making the same lifestyle app for FirefoxOS. > And I found a strange error. I have a principal div(1) with > data-role='page', which has a section with role='region', which has a > header(2), which has a button with a span with the icon menu(3). > When I click the menu-icon(3) it open the role='dialog' form(4) which has > all my menu. In this menu(4) I have some buttons(5) which show other > data-role="page" divs(6). > The problem is in those data-role="page" divs(6), when I click a button(7) > here, it does something that they must do, not always the same sometimes > more sometimes less, then the page is refreshed and in the log no errors > are shown. > This is a critical error for me, because when the page is refreshed, I > lose the session. > > I'm afraid it's hard to understand my explanation but I do my best, sorry. > Am I doing something wrong? > Is it a known bug? > What can I do to resolve it? Any idea? > I think the problem it could be related to the divs scope which changes > when the menu is opened. > > Thanks for your time. > Regards, Mar > ______________________________**_________________ > dev-webapps mailing list > [email protected] > https://lists.mozilla.org/**listinfo/dev-webapps<https://lists.mozilla.org/listinfo/dev-webapps> > _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps
