framework7

Open full view…

add header value in template loading requests

sirmansoor
Sat, 27 Sep 2014 06:15:15 GMT

Hi Guys, Thanks for making such an easy to use framework. I want to ask following simple question 1. When Framework7 requests a template page (e.g. contact.html) from web server, is it possible to add some header information in the request as I need to set the authorization header in it? 2. When the app is built by phone gap for native use, does it still makes the web server calls for template pages (html) or some how picks it locally?

Vladimir Kharlampidi
Sat, 27 Sep 2014 09:02:12 GMT

--- $(document).on('ajaxStart', function (e){ var xhr = e.details.xhr; // modify/add xhr headers here })

Vladimir Kharlampidi
Sat, 27 Sep 2014 09:03:00 GMT

In phone gap, if you put these html pages locally (with app), then it will pick it locally