Customizing SMF > SMF Coding Discussion
[WIP] jQuery Mobile Mode
nend:
Figured out the problem, my function was only getting called once since it was hooked to the onload event. Since jQuery Mobile uses asynchronous loading the onload event only gets called once. I put my new code in each div container in the DOM to be executed with every load of a new page.
Simple, should of known though asynchronous that is, my fault.
hakcenter:
I'm really interested in this project.
I don't mind tapatalk.. Just rather have something free for my user base. If you need help or want to collaborate let me know.
nend:
The code in this post should do the job http://www.simplemachines.org/community/index.php?topic=469498.msg3290572#msg3290572
As for the customization, that was for my Android app. I got it to work but it made it incompatible with web. ;D
Jokerâ„¢:
Well there is a frame know as backbone JS.
We were also facing a similar history issue with android and iOS while developing an App. At that moment we discovered that backbone JS passes a parameter with every url route/redirect as "replace : true".
"replace" basically replaces your routed page with the current page, while helps you to avoid building cyclic references in the history. You can read more about it here.
You can do something similar in your app too.
nend:
It is a little complex but in Android you can set up a JavaScript interface which can share information back and forth with the web view. Basically all I did was get the server side to pass this information on to the app.
I have a 100% working Android Application, history works perfect and everything.
However I am not offering the Java code for the Android app and server side code for SMF for the app at this time.
There are allot of reasons though why I am not going to do this right now. Even if I did offer the source code it will take at least a novice Java developer to edit it and compile it into a Android Application. Basically if I released it I will have to custom tailor every app and/or give support on how to do it.
I just really need to think about this, all coding work has finished on this project. Now just have to figure out what to release. I know the code I posted a few post down is perfect, if anyone wants to throw that in a mod that is just fine with me. Although like my first point, I am not going to release the Java code base at this time.
Navigation
[0] Message Index
[*] Previous page
Go to full version