Mobideck / appdeck

AppDeck is a mobile hybrid application engine for iOS and Android.
http://www.appdeck.mobi/
47 stars 22 forks source link

Menu with anchor #48

Open myannr opened 8 years ago

myannr commented 8 years ago

Hi, Thank you so much for this amazing project. I am trying to create a menu with anchor (so I will load just one page and display the content faster). But I don't manage to do it.

Is there a way to do it easily?

Regards

ghost commented 8 years ago

Hi, ;) you need something like that ? http://stackoverflow.com/questions/7717527/smooth-scrolling-when-clicking-an-anchor-link WIth it http://jsfiddle.net/9SDLw/

myannr commented 8 years ago

Hi, thank you for your reply but it's not really that.

I use the "menu.html" file for my menu, as propose in appDeck, but I do not want the page to be loaded in the menu page.

Then, I do not want it to be animated, just be displayed.

but if I use href='#myid" in the menu page, nothing happened.

I did not want the page to be loaded each time. In my country, with do not have fast internet, so I want a light app.

Regards

mdekermadec commented 8 years ago

I think that you should use message API:

http://www.appdeck.mobi/doc/api_message

This allow communication between page in your app.

myannr commented 8 years ago

I have ever try but as the app does not work on theemulator (it does not charge thesamething as Android) so I cannot see the console to know if I made errors.

I did not manage to do it.

I will try again but I would like to have a console in my cellphone to help me.

mdekermadec commented 8 years ago

We will release soon an updated version of AppDeck for Android with a console in it.