Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 142239

How to use Framework7 without its routing system?

$
0
0

Framework7 seems to constraint me to set a route variable. But I need its just

1 - listen clicks
2 - make ajax request and
3 - push the new view with some transition I would have defined.

Lets's assume this link <a href="/users/5/profile">My profile</a>.
I need to make an ajax request on click and display the content as a new view.
I would think of this following code:

// binding logic would be here

app.request.get('/users/5/profile', function (data) {
    console.log(data); // I need data is displayed as a new view
});

Viewing all articles
Browse latest Browse all 142239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>