Navigation

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

    Dan

    @Dan

    1
    Reputation
    3
    Posts
    843
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Dan Follow

    Posts made by Dan

    • Onsen UI 2.0 Validating Forms

      Hello all,

      I’ve been working with the latest version of Onsen UI 2.0 and wanted recommendations on a good form validation framework. I am only using jquery in my project.

      Thanks!
      Daniel

      posted in Onsen UI
      D
      Dan
    • RE: I'm new! Onsen 2.0 questions

      Thank you both for your helpful responses!

      Fran, I added the init event listener to the document yes, I use the init event listener to instantiate a plugin or bind events to a specific page once it’s done loading. Ex :

          document.addEventListener("init", function (e) {
              if (e.target.id == "schedule") {
                  $('.inputDate').mobiscroll().date({ theme: 'ios', minDate: new Date(), dateFormat: 'yy-mm-dd' });
              }
          });
      

      Is this the correct approach?
      From what I am understanding, once a page is popped out, the event listeners remain and need to be manually removed.

      Dan

      posted in Onsen UI
      D
      Dan
    • I'm new! Onsen 2.0 questions

      Hello all,

      I’m really enjoying working with Onsen and have a few questions I hope someone can answer.

      1. I added an “init” event listener to be able to bind element events when a page is initialized. I was wondering :
        When a page is popped out of the stack, what exactly happens to the page? Do all the events get unbinded to free up memory? Do I have to rebind events if the page is re-called?

      2. Should all the javascript files for each page be loaded at once when the app starts? Or placed in each individual page somehow?

      3. Do all html pages need to have the ons-navigator component for navigation? Or can the ons-navigator be placed only on the startup page?

      4. Since Onsen 2.0, I don’t need to use angular. Could someone recommend a good lightweight 2 way binding framework?

      Thanks everyone!
      Daniel

      posted in Onsen UI
      D
      Dan