SlideShare ist ein Scribd-Unternehmen logo
1 von 30
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

Weitere ähnliche Inhalte

Was ist angesagt?

SPTechCon - Share point and jquery essentials
SPTechCon - Share point and jquery essentialsSPTechCon - Share point and jquery essentials
SPTechCon - Share point and jquery essentials
Mark Rackley
 
SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery Libraries
Mark Rackley
 

Was ist angesagt? (20)

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

Ähnlich wie Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012

E2 appspresso hands on lab
E2 appspresso hands on labE2 appspresso hands on lab
E2 appspresso hands on lab
NAVER D2
 
E3 appspresso hands on lab
E3 appspresso hands on labE3 appspresso hands on lab
E3 appspresso hands on lab
NAVER D2
 
SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6
Usman Zafar Malik
 
Javascript MVC & Backbone Tips & Tricks
Javascript MVC & Backbone Tips & TricksJavascript MVC & Backbone Tips & Tricks
Javascript MVC & Backbone Tips & Tricks
Hjörtur Hilmarsson
 
MVC & SQL_In_1_Hour
MVC & SQL_In_1_HourMVC & SQL_In_1_Hour
MVC & SQL_In_1_Hour
Dilip Patel
 

Ähnlich wie Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012 (20)

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

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

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: christian@rokitta.nl