Sorry, I should’ve been more clear. When I mean locally, I mean that my mapSearch.html is inside my cordova’s folder, and not hosted on a remote server. Whatever remote server url I use, it wont load. I hope that makes the problem clearer.
Posts made by rogerroger
RE: Ons-tab tabbar element loading external site
Ons-tab tabbar element loading external site
Hi, I’m trying to load an external html file in an ons tab-bar, something like:
<ons-tab label=“Map” icon=“fa-map-o” page=“https://example.com/mapSearch.html” id=“tab3”></ons-tab>
If I host the mapSearch.html locally everything works as expected, but I’m using a google maps API key which I need to restrict with a specific referer, so I need to source the mapSearch.html from a specific domain. Any ideas on how could I achieve this?
Cant center ons-list-item text in Android
Hi, I’m having a problem centering text inside an ons-list-item in Android. I’m trying to do this with the <div class=“center”>, but it just wont work. I was able to center it using ons-column, but this dissables the tappable effect I wanted to assing to the ons-list-item. As far as i’ve seen, this also affects the web view, and I’m seeing this bug even in Onsen’s sample page:
(The lists title shows perfectly under ios, but left-aligned on android’s view).
I saw this thread
where Fran Diox recommends assigning the css manually with text-align: center, but this isn’t working for me either. Is there any solution to center the text in Android, or assign the tappable effect to an ons-column?