mwf forms and messages
play

MWF Forms and Messages Form follows function - that has been - PowerPoint PPT Presentation

MWF Forms and Messages Form follows function - that has been misunderstood. Form and function should be one, joined in a spiritual union. -- Frank Lloyd Wright MWF Forms and Messages Forms Where were at Examples Crawl basic techniques


  1. MWF Forms and Messages

  2. Form follows function - that has been misunderstood. Form and function should be one, joined in a spiritual union. -- Frank Lloyd Wright

  3. MWF Forms and Messages Forms Where we’re at Examples Crawl – basic techniques Walk – more advanced Run – PHP API Messages Questions (and maybe answers!)

  4. MWF Forms WHERE WE’RE AT

  5. HTML 1 forms

  6. HTML 2 forms

  7. HTML 3 forms

  8. HTML 4 forms

  9. HTML 5 forms

  10. HTML 5 forms New input types New attributes New form elements

  11. Supported on mobile? Yes, with a little help.

  12. MWF Forms Crawl

  13. Crawl: My first MWF form <form class="short"> <h2>Short Form</h2> <input type="text" name="text-input" /> <input class="primary" type="submit" value="Search" /> </form>

  14. Crawl: My first MWF form

  15. MWF Forms Walk

  16. Walk: Forms polyfill

  17. Walk: Forms polyfill Shim: piece of material, used to fill small gaps or spaces between objects. Also: a small library that transparently intercepts an API and changes the parameters passed, handles the operation itself, or redirects the operation elsewhere. Polyfill: downloadable code which provides facilities that are not built-in to a web browser.

  18. Walk: Forms polyfill

  19. Using the forms polyfill <script src="//{MOBILE_DOMAIN}/assets/js.php?full_libs=formsPolyfills “ type="text/javascript “> </script>

  20. Polyfill vs. non-polyfill Android 2.1 w/o polyfill Android 2.1 with polyfill

  21. Walk: My first MWF HTML5 form <label> <span class="required">Placeholder</span> <input id="input-10" name="input-10" required="required" placeholder="Please enter text here“ /> </label>

  22. Walk: My first HTML5 form

  23. Walk: More complex forms <label> <span>Label Text</span> <div class="option"> <label> <input type="checkbox" value="1" name="checkbox-input" />One </label> <label> <input type="checkbox" value="2" name="checkbox-input" />Two </label> </div> </label>

  24. Walk: More complex forms

  25. Walk: New HTML5 input types Number, color, range, telephone, email, date, time, etc.

  26. Walk: New HTML5 input types Input handling varies wildly

  27. MWF Forms Run

  28. PHP forms API echo Site_Decorator::form() ->set_short() ->set_title('Short Form') ->add_input($text_input) ->add_input(Site_Decorator::input()->type_submit() ->set_param('value', 'Search')) ->render();

  29. MWF Forms Messages

  30. What are messages? Notifications in-line or block messages modal dialog Use them to Confirm Alert Error Inform

  31. Inline messages

  32. The source … In-line <span class=“message info”>info</span> Block <div class=“message error”>error</div>

  33. Modal dialog

  34. Behind the curtain … When you want to bring the message to the front of the screen as a modal, use Messages JS. mwf.messages.model ({id:” alert- msg”}); mwf.messages.modal({ text: “A dynamic info message”, type: “info” });

  35. Questions!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend