New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the best way to load dynamic page in a view? #76
Comments
Thanks, George. You have some page with loader:
When page is loaded you do custom Ajax request and just replace page content with new one:
So you don't need at all to load another page, do everything here |
Closing as seems to be solved |
I think if the for example: var popupView = null;
var cachedUrl = '';
// pop-up tool
function loadPopupPage(pageUrl) {
if( cachedUrl != pageUrl ) {
$$.get(pageUrl,function(pageContent){
$$('.popup-view').find('.page-content').html(pageContent);
});
}
cachedUrl = pageUrl;
myApp.popup('.popup-view');
} I need to handle the cache myself, if the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi Vlad,
Compliments about your Framework7! It looks amazing!
Just one question about loading dynamic pages in a view.
We would like to load a page that is initially empty with loader, that kicks off an Ajax call to load its content. When content arrives the page should be emptied and the loader replaced with the real content. Preferably afterwards we would like also to implement a pull to refresh.
What will be the best way to do so? Currently if the page is initially empty and then content is loaded with loadContent it becomes another page .. so the back button returns to the loader page instead of replacing the current...
Thanks,
George
The text was updated successfully, but these errors were encountered: