SlideShare a Scribd company logo
Oracle Application Express
            &


         Christian Rokitta
                         .nl




               OGh APEX Dag
               26 Maart 2012

                               1
2
Over mij



17 jaar     17 jaar   2 jaar




            1 week
Agenda
Waarom
• Waarom mobile website (vs native App)?
  – HTML  APEX
  – Kosten voor mobile we applicatie lager dan
    platform specifieke Apps
• Waarom jQuery Mobile?
  – jQuery Framework
  – Makkelijk in APEX in/toe te passen
  – Makkelijk
  – Makkelijker in 4.2
Te vroeg?
APEX Templates
                                               Definitie

                           Referentie                      SQL;
                               #Position#                  PL/SQL;


<HTML/>
                                   #Substitution#

                                                Render
 {CSS}
                        PAGE

                                            <HTML/>
                                        JavaScript();



JavaScript();   Actie
jQuery Quick Intro
•   JavaScript Library
•   Vereenvoudigd JavaScript programmeren
•   Makkelijk te leren
•   Principe: select  actie
•   Build-in: event en effect methods, AJAX




                                              8
jQuery Syntax Voorbeelden
Basic syntax is: $(selector).action()

• Dollar Sign is de jQuery aanroep
• Selector: "query" HTML elementen
• action() die op het element uitgevoerd wordt

Voorbeelden:
•   $("p.test").hide() - alle paragraphs met class="test“ verbergen
•   $("#test").hide() - element met id="test" verbergen
•   $("p").css("background-color","yellow"); - CSS selector
•   $("[href!='#']") – alle elemente met href attribuut die != “#” zijn
•   $("div#intro .head") – alle elem. met class = intro binnen het DIV elem. met id
    = head



                                                                                 9
• Alles mbt webontwikkeling
    – HTML(5), CSS(3), jQuery, XML, AJAX, JSON, Webse
      rvices, ...
•   Tutorials
•   Examples
•   References
•   "Try it yourself"


                                                    10
“A unified user interface system that works
  seamlessly across all popular mobile device
  platforms, built on the jQuery and jQuery UI
foundation. Focused on a lightweight codebase
    built on progressive enhancement with a
        flexible, easily themeable design.”
jQuery Mobile Componenten
13
Basic jQuery Mobile "page" structure
             <!DOCTYPE html>
             <html>
               <head>
               <title>Page Title</title>

    Header    <meta name="viewport" content="width=device-width, initial-scale=1">

               <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0rc2/jquer
               <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4
               <script type="text/javascript" src="http://code.jquery.com/mobile/1.0rc
             </head>
             <body>

    Body     <div data-role="page">

              <div data-role="header">
                <h1>Page Title</h1>
              </div><!-- /header -->

              <div data-role="content">
                <p>Page content goes here.</p>
    Footer    </div><!-- /content -->

              <div data-role="footer">
                <h4>Page Footer</h4>
              </div><!-- /footer -->

             </div><!-- /page -->

             </body>
             </html>
<!DOCTYPE html>
<html lang="&BROWSER_LANGUAGE.">
<head>
   <title>#TITLE#</title>
                                                                       In APEX:
   <meta name="viewport" content="width=device-width, initial-scale=1"> Page Template
   #HEAD#
   <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.css"
   <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
   <script type="text/javascript" src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.m
</head>
<body #ONLOAD#>
  #FORM_OPEN#
  <div data-role="page">
          <div data-role="header">
                    <h1>#TITLE#</h1>
          </div><!-- /header -->
  #GLOBAL_NOTIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#
  #REGION_POSITION_01#
  ...
  #REGION_POSITION_07#
  #BOX_BODY#
          <div data-role="footer">
                    #REGION_POSITION_08#
          </div><!-- /footer -->
  </div><!-- /page -->
  #FORM_CLOSE#
</body>
</html>
http://ogh.rokit.nl




                      16
jQM Customization


<div data-role="header" data-position="inline">
 <a href="index.html" data-icon="delete">Cancel</a>
 <h1>Edit Contact</h1>
 <a href="index.html" data-icon="check" data-theme="b">Save</a>
</div>
data- attribute
 Gespecialiseerde (gespecificeerd in) Templates
                       vs
     opgeven als region/element attribute

<a href="#LINK#" data-role="button" #BUTTON_ATTRIBUTES#>#LABEL#</a>




                                                                  18
jQM Buttons
• Styling links as buttons
  <a href="index.html" data-role="button">Link button</a>


• Form Buttons
  automatically in jQM styled buttons:
  button of input elementen van type
  submit, reset, button, of image.
  Geen data-role="button" attribute nodig.
Links in jQuery Mobile
• Default link behavior: Ajax
  – Automagically (normal link code: href=“...”, Hijax )
  – handle page requests in a single-page model
• Linking without Ajax
  – data-rel="external", data-ajax="false" of target attrib.
• “Back” Button (data-rel="back")
  – Back in history (ignoring href)
  – data-direction="reverse"
• end

                                                               20
jQM Lists
Basic List
<ul data-role="listview" data-theme="g">
 <li><a href="acura.html">Acura</a></li>
 <li><a href="audi.html">Audi</a></li>
 <li><a href="bmw.html">BMW</a></li>
</ul>
in APEX
        Named Column (row template)
<ul data-role="listview">

<li>
   <strong>#RANK#. #NAME#</strong>
   <span class="ui-li-count">#POINTS#</span>
</li>

</ul>
               <li>
                  <strong>#1#. #2#</strong>
                  <span class="ui-li-count">#3#</span>
               </li>
jQM Form Elements
HTML5 Input Item Types




   www.apex-plugin.com   24
25
jQM Support in 4.2
                 (may or may not be a feature in ...)



• HTML5 form input support (email, url, date, ...)
  als sub-type

• Multiple UI Themes per applicatie

• data- attributes “declaratief”

• jQM List-View Support

                                                        26
jQM support in 4.1
apex_040100.wwv_flow_platform.set_preference
   ('MOBILE_DEVELOPMENT_ENABLED','Y');
                    (uitvoeren als SYS, Blogpost Marc Sewtz:
http://marcsewtz.blogspot.com/2011/11/getting-started-with-mobile-in-apex.html)




                                                                          27
http://m.fifapex.net




http://www.fifapex.net                      28
Vragen




         29
Contact



Blog:          http://rokitta.blogspot.com
LinkedIn:      http://nl.linkedin.com/in/rokit
Website:       http://www.rokit.nl
themes4apex:   http://www.themes4apex.nl
Twitter:       @crokitta
Email:         christian@rokitta.nl

More Related Content

PPTX
SPSNH 2014 - The SharePoint & jQueryGuide
PPTX
Introduction to using jQuery with SharePoint
PPTX
The SharePoint & jQuery Guide - Updated 1/14/14
PPTX
SharePoint & jQuery Guide - SPSNashville 2014
PDF
Advanced JQuery Mobile tutorial with Phonegap
PPT
jQuery Mobile with HTML5
PPTX
SPTechCon DevDays - SharePoint & jQuery
PDF
jQuery Mobile: Progressive Enhancement with HTML5
SPSNH 2014 - The SharePoint & jQueryGuide
Introduction to using jQuery with SharePoint
The SharePoint & jQuery Guide - Updated 1/14/14
SharePoint & jQuery Guide - SPSNashville 2014
Advanced JQuery Mobile tutorial with Phonegap
jQuery Mobile with HTML5
SPTechCon DevDays - SharePoint & jQuery
jQuery Mobile: Progressive Enhancement with HTML5

What's hot (20)

PDF
Local storage in Web apps
PPTX
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
PDF
Handlebars and Require.js
PPTX
SPTechCon - Share point and jquery essentials
PDF
HTML5 and CSS3 refresher
PPTX
Challenges going mobile
PPTX
Go Fullstack: JSF for Public Sites (CONFESS 2012)
PDF
Styling components with JavaScript
PPTX
Go Fullstack: JSF for Public Sites (CONFESS 2013)
PDF
What is jQuery?
PPTX
SPTechCon Dev Days - Third Party jQuery Libraries
PDF
Front-end Rails-приложений приложений, основанный на БЭМ
PPTX
Introduction to Client Side Dev in SharePoint Workshop
PDF
Styling Components with JavaScript: MelbCSS Edition
PPTX
Introduction to jQuery Mobile
PPTX
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
PPTX
Introduction to jquery mobile with Phonegap
PPTX
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
PPTX
(Updated) SharePoint & jQuery Guide
PPTX
Transform SharePoint default list forms with HTML, CSS and JavaScript
Local storage in Web apps
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
Handlebars and Require.js
SPTechCon - Share point and jquery essentials
HTML5 and CSS3 refresher
Challenges going mobile
Go Fullstack: JSF for Public Sites (CONFESS 2012)
Styling components with JavaScript
Go Fullstack: JSF for Public Sites (CONFESS 2013)
What is jQuery?
SPTechCon Dev Days - Third Party jQuery Libraries
Front-end Rails-приложений приложений, основанный на БЭМ
Introduction to Client Side Dev in SharePoint Workshop
Styling Components with JavaScript: MelbCSS Edition
Introduction to jQuery Mobile
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
Introduction to jquery mobile with Phonegap
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
(Updated) SharePoint & jQuery Guide
Transform SharePoint default list forms with HTML, CSS and JavaScript
Ad

Similar to Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012 (20)

PPTX
Apex & jQuery Mobile
PDF
Building iPhone Web Apps using "classic" Domino
PDF
Mobile themes, QR codes, and shortURLs
PPTX
Javascript first-class citizenery
PPTX
SharePoint and jQuery Essentials
PDF
Introduction to AngularJS
PPTX
Html5 and web technology update
PDF
E2 appspresso hands on lab
PDF
E3 appspresso hands on lab
PDF
Nuxt.JS Introdruction
PDF
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
PPTX
PPTX
SharePoint 2010 Training Session 6
PPTX
Quickstartguidetojavascriptframeworksforsharepointapps spsbe-2015-15041903264...
PPTX
Quick start guide to java script frameworks for sharepoint apps spsbe-2015
PPT
AngularJS Mobile Warsaw 20-10-2014
PDF
Javascript MVC & Backbone Tips & Tricks
KEY
Taking your Web App for a walk
KEY
Slow kinda sucks
PPTX
MVC & SQL_In_1_Hour
Apex & jQuery Mobile
Building iPhone Web Apps using "classic" Domino
Mobile themes, QR codes, and shortURLs
Javascript first-class citizenery
SharePoint and jQuery Essentials
Introduction to AngularJS
Html5 and web technology update
E2 appspresso hands on lab
E3 appspresso hands on lab
Nuxt.JS Introdruction
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
SharePoint 2010 Training Session 6
Quickstartguidetojavascriptframeworksforsharepointapps spsbe-2015-15041903264...
Quick start guide to java script frameworks for sharepoint apps spsbe-2015
AngularJS Mobile Warsaw 20-10-2014
Javascript MVC & Backbone Tips & Tricks
Taking your Web App for a walk
Slow kinda sucks
MVC & SQL_In_1_Hour
Ad

Recently uploaded (20)

PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
Teaching material agriculture food technology
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Spectroscopy.pptx food analysis technology
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Getting Started with Data Integration: FME Form 101
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Assigned Numbers - 2025 - Bluetooth® Document
20250228 LYD VKU AI Blended-Learning.pptx
cuic standard and advanced reporting.pdf
Unlocking AI with Model Context Protocol (MCP)
Teaching material agriculture food technology
NewMind AI Weekly Chronicles - August'25-Week II
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Spectral efficient network and resource selection model in 5G networks
Group 1 Presentation -Planning and Decision Making .pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation_ Review paper, used for researhc scholars
Machine learning based COVID-19 study performance prediction
Spectroscopy.pptx food analysis technology
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Getting Started with Data Integration: FME Form 101
MYSQL Presentation for SQL database connectivity
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation

Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012

  • 1. Oracle Application Express & Christian Rokitta .nl OGh APEX Dag 26 Maart 2012 1
  • 2. 2
  • 3. Over mij 17 jaar 17 jaar 2 jaar 1 week
  • 5. Waarom • Waarom mobile website (vs native App)? – HTML  APEX – Kosten voor mobile we applicatie lager dan platform specifieke Apps • Waarom jQuery Mobile? – jQuery Framework – Makkelijk in APEX in/toe te passen – Makkelijk – Makkelijker in 4.2
  • 7. APEX Templates Definitie Referentie SQL; #Position# PL/SQL; <HTML/> #Substitution# Render {CSS} PAGE <HTML/> JavaScript(); JavaScript(); Actie
  • 8. jQuery Quick Intro • JavaScript Library • Vereenvoudigd JavaScript programmeren • Makkelijk te leren • Principe: select  actie • Build-in: event en effect methods, AJAX 8
  • 9. jQuery Syntax Voorbeelden Basic syntax is: $(selector).action() • Dollar Sign is de jQuery aanroep • Selector: "query" HTML elementen • action() die op het element uitgevoerd wordt Voorbeelden: • $("p.test").hide() - alle paragraphs met class="test“ verbergen • $("#test").hide() - element met id="test" verbergen • $("p").css("background-color","yellow"); - CSS selector • $("[href!='#']") – alle elemente met href attribuut die != “#” zijn • $("div#intro .head") – alle elem. met class = intro binnen het DIV elem. met id = head 9
  • 10. • Alles mbt webontwikkeling – HTML(5), CSS(3), jQuery, XML, AJAX, JSON, Webse rvices, ... • Tutorials • Examples • References • "Try it yourself" 10
  • 11. “A unified user interface system that works seamlessly across all popular mobile device platforms, built on the jQuery and jQuery UI foundation. Focused on a lightweight codebase built on progressive enhancement with a flexible, easily themeable design.”
  • 13. 13
  • 14. Basic jQuery Mobile "page" structure <!DOCTYPE html> <html> <head> <title>Page Title</title> Header <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0rc2/jquer <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4 <script type="text/javascript" src="http://code.jquery.com/mobile/1.0rc </head> <body> Body <div data-role="page"> <div data-role="header"> <h1>Page Title</h1> </div><!-- /header --> <div data-role="content"> <p>Page content goes here.</p> Footer </div><!-- /content --> <div data-role="footer"> <h4>Page Footer</h4> </div><!-- /footer --> </div><!-- /page --> </body> </html>
  • 15. <!DOCTYPE html> <html lang="&BROWSER_LANGUAGE."> <head> <title>#TITLE#</title> In APEX: <meta name="viewport" content="width=device-width, initial-scale=1"> Page Template #HEAD# <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.css" <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script type="text/javascript" src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.m </head> <body #ONLOAD#> #FORM_OPEN# <div data-role="page"> <div data-role="header"> <h1>#TITLE#</h1> </div><!-- /header --> #GLOBAL_NOTIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE# #REGION_POSITION_01# ... #REGION_POSITION_07# #BOX_BODY# <div data-role="footer"> #REGION_POSITION_08# </div><!-- /footer --> </div><!-- /page --> #FORM_CLOSE# </body> </html>
  • 17. jQM Customization <div data-role="header" data-position="inline"> <a href="index.html" data-icon="delete">Cancel</a> <h1>Edit Contact</h1> <a href="index.html" data-icon="check" data-theme="b">Save</a> </div>
  • 18. data- attribute Gespecialiseerde (gespecificeerd in) Templates vs opgeven als region/element attribute <a href="#LINK#" data-role="button" #BUTTON_ATTRIBUTES#>#LABEL#</a> 18
  • 19. jQM Buttons • Styling links as buttons <a href="index.html" data-role="button">Link button</a> • Form Buttons automatically in jQM styled buttons: button of input elementen van type submit, reset, button, of image. Geen data-role="button" attribute nodig.
  • 20. Links in jQuery Mobile • Default link behavior: Ajax – Automagically (normal link code: href=“...”, Hijax ) – handle page requests in a single-page model • Linking without Ajax – data-rel="external", data-ajax="false" of target attrib. • “Back” Button (data-rel="back") – Back in history (ignoring href) – data-direction="reverse" • end 20
  • 21. jQM Lists Basic List <ul data-role="listview" data-theme="g"> <li><a href="acura.html">Acura</a></li> <li><a href="audi.html">Audi</a></li> <li><a href="bmw.html">BMW</a></li> </ul>
  • 22. in APEX Named Column (row template) <ul data-role="listview"> <li> <strong>#RANK#. #NAME#</strong> <span class="ui-li-count">#POINTS#</span> </li> </ul> <li> <strong>#1#. #2#</strong> <span class="ui-li-count">#3#</span> </li>
  • 24. HTML5 Input Item Types www.apex-plugin.com 24
  • 25. 25
  • 26. jQM Support in 4.2 (may or may not be a feature in ...) • HTML5 form input support (email, url, date, ...) als sub-type • Multiple UI Themes per applicatie • data- attributes “declaratief” • jQM List-View Support 26
  • 27. jQM support in 4.1 apex_040100.wwv_flow_platform.set_preference ('MOBILE_DEVELOPMENT_ENABLED','Y'); (uitvoeren als SYS, Blogpost Marc Sewtz: http://marcsewtz.blogspot.com/2011/11/getting-started-with-mobile-in-apex.html) 27
  • 29. Vragen 29
  • 30. Contact Blog: http://rokitta.blogspot.com LinkedIn: http://nl.linkedin.com/in/rokit Website: http://www.rokit.nl themes4apex: http://www.themes4apex.nl Twitter: @crokitta Email: [email protected]