Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. magestik
    M
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    magestik

    @magestik

    1
    Reputation
    10
    Posts
    1041
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    magestik Follow

    Posts made by magestik

    • RE: [Onsen UI 1 and 2] Why the google map/ or leaflet does not appear on other pages without being on the main template.

      Thank’s for your reply I made some changes like putting page id an changging the “show” event to “pageinit” and it’s working now :smile:

      posted in Onsen UI
      M
      magestik
    • [Onsen UI 1 and 2] Why the google map/ or leaflet does not appear on other pages without being on the main template.

      I have a project with three page templates that have the home, page1 and page2 and I want to show the map on page2 but the map only appears on the home page.

      How do I make the map appear in page2?

      I used this code to get the id of the template but doesn’t work

      document.addEventListener("show", function (event) {
                      if (event.target.id == "page2") {
      					
      					mapateste();                   
       	}
       }, false);
      
      <ons-template id="page2.html">
              <ons-page>
                  
      			<ons-toolbar>
      			  <div class="left"><ons-back-button>Back</ons-back-button></div>
      			  <div class="center">Page 2</div>
      			</ons-toolbar>
      
          			
      				
      
               <div id="map" class="map"></div>   
      
              </ons-page>
          </ons-template>
      

      The code doesn’t show any error but the map doesn’t appear on page2.

      posted in Onsen UI
      M
      magestik
    • RE: [Onsen UI 2.x ] Side Menu and stack based navigation in the same app.

      Thanks, it 'll help me:smile:

      posted in Onsen UI
      M
      magestik
    • RE: [Onsen UI 2.x ] Side Menu and stack based navigation in the same app.

      Yep it’s working, I’m going to sleep because I live in Europe and tomorrow I 'll work very early . thank you for your patience.:smiley:

      posted in Onsen UI
      M
      magestik
    • RE: [Onsen UI 2.x ] Side Menu and stack based navigation in the same app.

      Thank you for your help, your project is ok but I need also to put links in the home page like another menu to call another pages. How can I do that?. But I want to keep the side menu also

      posted in Onsen UI
      M
      magestik
    • RE: [Onsen UI 2.x ] Side Menu and stack based navigation in the same app.

      if you dont mind I’d like to see your full code, html and js.
      Thanks.

      posted in Onsen UI
      M
      magestik
    • [Onsen UI 2.x ] Side Menu and stack based navigation in the same app.

      How can I combine Side Menu and stack based navigation in the same app.

      If possible show me a code exemple please.

      posted in Onsen UI
      M
      magestik
    • RE: [Onsen UI 1.x] Onsen ui and InAppBrowser

      I solved with this code:

      document.onclick = function (e) {
              e = e ||  window.event;
              var element = e.target || e.srcElement;
       
              if (element.tagName == 'A') {
                  window.open(element.href, "_blank", "location=yes");
                  return false;
              }
          };
      

      Thanks for your help.

      posted in Onsen UI
      M
      magestik
    • RE: [Onsen UI 1.x] Onsen ui and InAppBrowser

      Thanks for the reply, after opening in a new window I can’t go back to my application, I want to know how can I use the inappbrowser plugin to go back?

      <div class="data">
                  {{event.links}}// How can I open it in InAppBrowser plugin?
        </div>
      
      posted in Onsen UI
      M
      magestik
    • [Onsen UI 1.x] Onsen ui and InAppBrowser

      I’m getting content from a web service and within the content it contain links that I need them to open in a external windon and back to my application. How can I do this? I need code example that works please.

      posted in Onsen UI
      M
      magestik