framework7

Open full view…

loadPage() help

Cassio Rossi
Fri, 25 Jul 2014 13:05:01 GMT

Hi. I have a index page with a side panel. In this side panel I have a search field. I want to move to another page when the user finishes typing the search and press ENTER. I tried: $$('.list-block .list-content-search').on('search', function(){ mainView.loadPage('bigfilter.html'); }); But what is loading is the index page again. What I'm doing wrong? How to achieve this action? My mainView is (my .view-main @index.html: var mainView = myApp.addView('.view-main', { // Because we use fixed-through navbar we can enable dynamic navbar dynamicNavbar: true });

Cassio Rossi
Fri, 25 Jul 2014 13:15:50 GMT

Ok. I managed. I just add a ACTION to the form and execute a JS function

Amit Kulkarni
Fri, 29 Aug 2014 04:43:40 GMT

i am trying to do exactly same. can you please share me code sniplet

fk73
Fri, 19 Sep 2014 13:01:29 GMT

Yes, I also would like to understand how you solved that issue. Thanks!

Vladimir Kharlampidi
Fri, 19 Sep 2014 16:12:32 GMT

> @fk73 > Yes, I also would like to understand how you solved that issue. Thanks! Do you have the same issue?