Mobile Dropdown menu problems (Button refreshes page)

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
1/22/2013 1:37:38 PM
Gravatar
Total Posts 2

Mobile Dropdown menu problems (Button refreshes page)

I am trying to add a mobile friendly menu to a site that I am reskinning, using the technique posted here: 

http://astuteo.com/mobilemenu/demo

The menu has a button. The button is set to display none on the desktop. On mobile view, the button shows. When the button is clicked the menu should toggle open (this is achieved via a CSS style.) 

In mojoportal, clicking the button causes the menu to open, but it also causes the page to refresh. That is maddening. 

Preliminary research indicates that the problem may come from the fact that the javascript is being triggered by use of a button, rather than some other element. Is that true? Is there an easy work around? 


Any help would be appreciated. 

1/22/2013 1:42:16 PM
Gravatar
Total Posts 2

Re: Mobile Dropdown menu problems (Button refreshes page)

I solved my own problem, after having posted. 

Very sorry to have bothered everyone. 

 

If anyone stumble across this looking for a solution themselves, the way I did it was to change the <button> to a <div> 

It seems that the <button> was being read as an input in some kind of master page form or something. 

Really, it was beyond me. But it works. 


Sorry to bother you. 

1/22/2013 2:09:09 PM
Gravatar
Total Posts 18439

Re: Mobile Dropdown menu problems (Button refreshes page)

Have you had a look at our add on Mobile Kit Pro? It has a custom menu control that works pretty well on phone size screens.

You must sign in to post in the forums. This thread is closed to new posts.