SlideShare a Scribd company logo
Responsive Layout Frameworks for
      XPages Application UI
                        Chris Toohey
                     December 12, 2012

Chris Toohey | www.dominoGuru.com
What we’ll cover…

•    What is a Responsive Layout?
•    Industry-standard Responsive Layout Frameworks.
•    Tips for Getting Started!
•    Pros and Cons of Responsive Layouts
      – Responsive Layout vs. Progressive Enhancement




    Chris Toohey | www.dominoGuru.com
What is a Responsive Layout?

• Refers to “Responsive web design”, or RWD.
• Single design that “responds” to available screen size
  and/or client type.
   –   Standard Web Browsers
   –   Mobile Device Browsers
   –   Tablet Browsers
   –   “Other” Browsers

 Chris Toohey | www.dominoGuru.com
What is a Responsive Layout?

• “Fluid Grid System” [Often 12 “Grid” Layout]




 Chris Toohey | www.dominoGuru.com
Industry-standard Responsive Layout Frameworks.




Chris Toohey | www.dominoGuru.com
Industry-standard Responsive Layout Frameworks.




Chris Toohey | www.dominoGuru.com
Tips for Getting Started!

• Resource Placement
       • Code Libraries (Client Side JavaScript)
       • Image Resources
       • Stylesheet Resources




   – Pay attention to the directory structure of resources!
       • Use “alias” for pseudo-directory positioning.

 Chris Toohey | www.dominoGuru.com
Tips for Getting Started!

• Add bootstrap.css & bootstrap-responsive.css
  to XPage Resources
   – Gives you selectable styleClasses!
• “Grid” means spanN
   – Use “spans” & “offsets”
     for positioning elements.

 Chris Toohey | www.dominoGuru.com
Tips for Getting Started!

• Create a simple “layout.xsp” Custom Control
  <?xml version="1.0" encoding="UTF-8"?>
  <xp:view
  xmlns:xp="http://www.ibm.com/xsp/core">

  <xp:this.resources>
           <xp:script src="http://code.jquery.com/jquery-latest.js" clientSide="true" />
           <xp:script src="/bootstrap.js" clientSide="true" />
           <xp:styleSheet href="/bootstrap.min.css" />
           <xp:styleSheet href="/bootstrap-responsive.min.css" />
           <xp:metaData name="viewport" content="width=device-width, initial-scale=1.0" />
  </xp:this.resources>

  <xp:div styleClass="container-fluid">
           <xp:div styleClass="row-fluid">
                    <xp:callback facetName="header" />
           </xp:div>
           <xp:div styleClass="row-fluid">
                    <xp:div styleClass="span2">
                                     <xp:callback facetName="navigation" />
                    </xp:div>
                    <xp:div styleClass="span10">
                                     <xp:callback facetName="content" />
                    </xp:div>
           </xp:div>
  </xp:div>

  </xp:view>                                                                                 Standard Browser Layout
 Chris Toohey | www.dominoGuru.com
Tips for Getting Started!

• Create a simple “layout.xsp” Custom Control
  <?xml version="1.0" encoding="UTF-8"?>
  <xp:view
  xmlns:xp="http://www.ibm.com/xsp/core">

  <xp:this.resources>
           <xp:script src="http://code.jquery.com/jquery-latest.js" clientSide="true" />
           <xp:script src="/bootstrap.js" clientSide="true" />
           <xp:styleSheet href="/bootstrap.min.css" />
           <xp:styleSheet href="/bootstrap-responsive.min.css" />
           <xp:metaData name="viewport" content="width=device-width, initial-scale=1.0" />
  </xp:this.resources>

  <xp:div styleClass="container-fluid">
           <xp:div styleClass="row-fluid">
                    <xp:callback facetName="header" />
           </xp:div>
           <xp:div styleClass="row-fluid">
                    <xp:div styleClass="span2">
                                     <xp:callback facetName="navigation" />
                    </xp:div>
                    <xp:div styleClass="span10">
                                     <xp:callback facetName="content" />
                    </xp:div>
           </xp:div>
  </xp:div>

  </xp:view>                                                                                 Mobile Browser Layout
 Chris Toohey | www.dominoGuru.com
Pros and Cons of Responsive Layouts

• “Let them eat cake!”
   – Most RWD frameworks deliver all markup, and let
     the client render the UI.
       • Mobile Access can
         mean less bandwidth
       • [Potentially] slower
       • Less control over UI/UX!

 Chris Toohey | www.dominoGuru.com
Pros and Cons of Responsive Layouts

• What is Progressive Enhancement?
   Combination of Graceful Degredation and
     leveraging client type specific functionlity.




 Chris Toohey | www.dominoGuru.com
Pros and Cons of Responsive Layouts

• What is Progressive Enhancement?
   Combination of Graceful Degredation and
     leveraging client type specific functionlity.




 Chris Toohey | www.dominoGuru.com
Pros and Cons of Responsive Layouts

• What is Progressive Enhancement?
   Combination of Graceful Degredation and
     leveraging client type specific functionlity.




 Chris Toohey | www.dominoGuru.com
Pros and Cons of Responsive Layouts

• Ask yourself two important questions:
   – Who will use my application?
   – How will they use my application?
• Content Delivery vs. Interactive Applications
   – Most RWD success stories are from publications…


 Chris Toohey | www.dominoGuru.com
Pros and Cons of Responsive Layouts




Chris Toohey | www.dominoGuru.com
Pros and Cons of Responsive Layouts




Chris Toohey | www.dominoGuru.com
Pros and Cons of Responsive Layouts

 Be Warned!
 If we used the standard RWD
 “refactor” tactics, you‘d be asking
 for the 2nd Personal Email Address
 11 lines before the New Contact’s
 Phone Number…




Chris Toohey | www.dominoGuru.com
Pros and Cons of Responsive Layouts

 Be Warned!
 If we used the standard RWD
 “refactor” tactics, you‘d be asking
 for the 2nd Personal Email Address
 11 lines before the New Contact’s
 Phone Number…




Chris Toohey | www.dominoGuru.com
Takeaways…
• Twitter Bootstrap
   – http://twitter.github.com/bootstrap/
• Combine RWD with Progressive Enhancement
   – Better User Experiences with XPages applications
   – Leveraging the features of while accounting for
     potential limitations of the user client / device.

 Chris Toohey | www.dominoGuru.com
Ad

More Related Content

What's hot (20)

MWLUG 2016 : AD117 : Xpages & jQuery DataTables
MWLUG 2016 : AD117 : Xpages & jQuery DataTablesMWLUG 2016 : AD117 : Xpages & jQuery DataTables
MWLUG 2016 : AD117 : Xpages & jQuery DataTables
Michael Smith
 
Rapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPressRapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPress
Nathaniel Taintor
 
jQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPagesjQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPages
Mark Roden
 
Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2
Anil Sagar
 
XPages Binary Output
XPages Binary OutputXPages Binary Output
XPages Binary Output
JohnFoldager
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
Mike Wilcox
 
Component Driven Design and Development
Component Driven Design and DevelopmentComponent Driven Design and Development
Component Driven Design and Development
Cristina Chumillas
 
Angular mobile angular_u
Angular mobile angular_uAngular mobile angular_u
Angular mobile angular_u
Doris Chen
 
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. FoundationBattle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Rachel Cherry
 
Drupal 6 to 7 migration guide
Drupal 6 to 7 migration guideDrupal 6 to 7 migration guide
Drupal 6 to 7 migration guide
Ebizon
 
jQuery Comes to XPages
jQuery Comes to XPagesjQuery Comes to XPages
jQuery Comes to XPages
Teamstudio
 
Best Practice Checklist for Building a Drupal Website
Best Practice Checklist for Building a Drupal WebsiteBest Practice Checklist for Building a Drupal Website
Best Practice Checklist for Building a Drupal Website
Acquia
 
State of jQuery June 2013 - Portland
State of jQuery June 2013 - PortlandState of jQuery June 2013 - Portland
State of jQuery June 2013 - Portland
dmethvin
 
Practical tipsmakemobilefaster oscon2016
Practical tipsmakemobilefaster oscon2016Practical tipsmakemobilefaster oscon2016
Practical tipsmakemobilefaster oscon2016
Doris Chen
 
Drupal Frontend Performance and Scalability
Drupal Frontend Performance and ScalabilityDrupal Frontend Performance and Scalability
Drupal Frontend Performance and Scalability
Ashok Modi
 
Responsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and TechniquesResponsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and Techniques
Vitaly Friedman
 
Agile documentation with Confluence and Sparx Enterprise Architect
Agile documentation with Confluence and Sparx Enterprise ArchitectAgile documentation with Confluence and Sparx Enterprise Architect
Agile documentation with Confluence and Sparx Enterprise Architect
Per Spilling
 
Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)
Nicholas Zakas
 
What's New in Bootstrap 5
What's New in Bootstrap 5What's New in Bootstrap 5
What's New in Bootstrap 5
Jubair Ahmed Junjun
 
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Mediacurrent
 
MWLUG 2016 : AD117 : Xpages & jQuery DataTables
MWLUG 2016 : AD117 : Xpages & jQuery DataTablesMWLUG 2016 : AD117 : Xpages & jQuery DataTables
MWLUG 2016 : AD117 : Xpages & jQuery DataTables
Michael Smith
 
Rapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPressRapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPress
Nathaniel Taintor
 
jQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPagesjQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPages
Mark Roden
 
Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2
Anil Sagar
 
XPages Binary Output
XPages Binary OutputXPages Binary Output
XPages Binary Output
JohnFoldager
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
Mike Wilcox
 
Component Driven Design and Development
Component Driven Design and DevelopmentComponent Driven Design and Development
Component Driven Design and Development
Cristina Chumillas
 
Angular mobile angular_u
Angular mobile angular_uAngular mobile angular_u
Angular mobile angular_u
Doris Chen
 
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. FoundationBattle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Rachel Cherry
 
Drupal 6 to 7 migration guide
Drupal 6 to 7 migration guideDrupal 6 to 7 migration guide
Drupal 6 to 7 migration guide
Ebizon
 
jQuery Comes to XPages
jQuery Comes to XPagesjQuery Comes to XPages
jQuery Comes to XPages
Teamstudio
 
Best Practice Checklist for Building a Drupal Website
Best Practice Checklist for Building a Drupal WebsiteBest Practice Checklist for Building a Drupal Website
Best Practice Checklist for Building a Drupal Website
Acquia
 
State of jQuery June 2013 - Portland
State of jQuery June 2013 - PortlandState of jQuery June 2013 - Portland
State of jQuery June 2013 - Portland
dmethvin
 
Practical tipsmakemobilefaster oscon2016
Practical tipsmakemobilefaster oscon2016Practical tipsmakemobilefaster oscon2016
Practical tipsmakemobilefaster oscon2016
Doris Chen
 
Drupal Frontend Performance and Scalability
Drupal Frontend Performance and ScalabilityDrupal Frontend Performance and Scalability
Drupal Frontend Performance and Scalability
Ashok Modi
 
Responsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and TechniquesResponsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and Techniques
Vitaly Friedman
 
Agile documentation with Confluence and Sparx Enterprise Architect
Agile documentation with Confluence and Sparx Enterprise ArchitectAgile documentation with Confluence and Sparx Enterprise Architect
Agile documentation with Confluence and Sparx Enterprise Architect
Per Spilling
 
Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)
Nicholas Zakas
 
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Mediacurrent
 

Similar to Responsive Layout Frameworks for XPages Application UI (20)

Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
Joe Seifi
 
Responsive design: techniques and tricks to prepare your websites for the mul...
Responsive design: techniques and tricks to prepare your websites for the mul...Responsive design: techniques and tricks to prepare your websites for the mul...
Responsive design: techniques and tricks to prepare your websites for the mul...
Andreas Bovens
 
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your designSCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
Frédéric Harper
 
Responsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get StartedResponsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get Started
jennybchicken
 
Bootstrap Framework
Bootstrap Framework Bootstrap Framework
Bootstrap Framework
Yaowaluck Promdee
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
Ron Reiter
 
HTML CSS & Javascript
HTML CSS & JavascriptHTML CSS & Javascript
HTML CSS & Javascript
David Lindkvist
 
Business of Front-end Web Development
Business of Front-end Web DevelopmentBusiness of Front-end Web Development
Business of Front-end Web Development
Rachel Andrew
 
Web Development for UX Designers
Web Development for UX DesignersWeb Development for UX Designers
Web Development for UX Designers
Ashlimarie
 
Let's dig into the Omega Theme!
Let's dig into the Omega Theme!Let's dig into the Omega Theme!
Let's dig into the Omega Theme!
Mediacurrent
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
Thomas Carney
 
Responsive websites. Toolbox
Responsive websites. ToolboxResponsive websites. Toolbox
Responsive websites. Toolbox
Wojtek Zając
 
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Christian Rokitta
 
Mobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web DesignMobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web Design
Cantina
 
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12
touchtitans
 
Building Responsive Websites with Drupal
Building Responsive Websites with DrupalBuilding Responsive Websites with Drupal
Building Responsive Websites with Drupal
Suzanne Dergacheva
 
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Suzanne Dergacheva
 
Front end development best practices
Front end development best practicesFront end development best practices
Front end development best practices
Karolina Coates
 
Clean separation
Clean separationClean separation
Clean separation
atorreno
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
Joe Seifi
 
Responsive design: techniques and tricks to prepare your websites for the mul...
Responsive design: techniques and tricks to prepare your websites for the mul...Responsive design: techniques and tricks to prepare your websites for the mul...
Responsive design: techniques and tricks to prepare your websites for the mul...
Andreas Bovens
 
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your designSCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
Frédéric Harper
 
Responsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get StartedResponsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get Started
jennybchicken
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
Ron Reiter
 
Business of Front-end Web Development
Business of Front-end Web DevelopmentBusiness of Front-end Web Development
Business of Front-end Web Development
Rachel Andrew
 
Web Development for UX Designers
Web Development for UX DesignersWeb Development for UX Designers
Web Development for UX Designers
Ashlimarie
 
Let's dig into the Omega Theme!
Let's dig into the Omega Theme!Let's dig into the Omega Theme!
Let's dig into the Omega Theme!
Mediacurrent
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
Thomas Carney
 
Responsive websites. Toolbox
Responsive websites. ToolboxResponsive websites. Toolbox
Responsive websites. Toolbox
Wojtek Zając
 
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Christian Rokitta
 
Mobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web DesignMobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web Design
Cantina
 
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12
touchtitans
 
Building Responsive Websites with Drupal
Building Responsive Websites with DrupalBuilding Responsive Websites with Drupal
Building Responsive Websites with Drupal
Suzanne Dergacheva
 
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Suzanne Dergacheva
 
Front end development best practices
Front end development best practicesFront end development best practices
Front end development best practices
Karolina Coates
 
Clean separation
Clean separationClean separation
Clean separation
atorreno
 
Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3Create Responsive Website Design with Bootstrap 3
Create Responsive Website Design with Bootstrap 3
Wahyu Putra
 
Ad

Responsive Layout Frameworks for XPages Application UI

  • 1. Responsive Layout Frameworks for XPages Application UI Chris Toohey December 12, 2012 Chris Toohey | www.dominoGuru.com
  • 2. What we’ll cover… • What is a Responsive Layout? • Industry-standard Responsive Layout Frameworks. • Tips for Getting Started! • Pros and Cons of Responsive Layouts – Responsive Layout vs. Progressive Enhancement Chris Toohey | www.dominoGuru.com
  • 3. What is a Responsive Layout? • Refers to “Responsive web design”, or RWD. • Single design that “responds” to available screen size and/or client type. – Standard Web Browsers – Mobile Device Browsers – Tablet Browsers – “Other” Browsers Chris Toohey | www.dominoGuru.com
  • 4. What is a Responsive Layout? • “Fluid Grid System” [Often 12 “Grid” Layout] Chris Toohey | www.dominoGuru.com
  • 5. Industry-standard Responsive Layout Frameworks. Chris Toohey | www.dominoGuru.com
  • 6. Industry-standard Responsive Layout Frameworks. Chris Toohey | www.dominoGuru.com
  • 7. Tips for Getting Started! • Resource Placement • Code Libraries (Client Side JavaScript) • Image Resources • Stylesheet Resources – Pay attention to the directory structure of resources! • Use “alias” for pseudo-directory positioning. Chris Toohey | www.dominoGuru.com
  • 8. Tips for Getting Started! • Add bootstrap.css & bootstrap-responsive.css to XPage Resources – Gives you selectable styleClasses! • “Grid” means spanN – Use “spans” & “offsets” for positioning elements. Chris Toohey | www.dominoGuru.com
  • 9. Tips for Getting Started! • Create a simple “layout.xsp” Custom Control <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:this.resources> <xp:script src="http://code.jquery.com/jquery-latest.js" clientSide="true" /> <xp:script src="/bootstrap.js" clientSide="true" /> <xp:styleSheet href="/bootstrap.min.css" /> <xp:styleSheet href="/bootstrap-responsive.min.css" /> <xp:metaData name="viewport" content="width=device-width, initial-scale=1.0" /> </xp:this.resources> <xp:div styleClass="container-fluid"> <xp:div styleClass="row-fluid"> <xp:callback facetName="header" /> </xp:div> <xp:div styleClass="row-fluid"> <xp:div styleClass="span2"> <xp:callback facetName="navigation" /> </xp:div> <xp:div styleClass="span10"> <xp:callback facetName="content" /> </xp:div> </xp:div> </xp:div> </xp:view> Standard Browser Layout Chris Toohey | www.dominoGuru.com
  • 10. Tips for Getting Started! • Create a simple “layout.xsp” Custom Control <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:this.resources> <xp:script src="http://code.jquery.com/jquery-latest.js" clientSide="true" /> <xp:script src="/bootstrap.js" clientSide="true" /> <xp:styleSheet href="/bootstrap.min.css" /> <xp:styleSheet href="/bootstrap-responsive.min.css" /> <xp:metaData name="viewport" content="width=device-width, initial-scale=1.0" /> </xp:this.resources> <xp:div styleClass="container-fluid"> <xp:div styleClass="row-fluid"> <xp:callback facetName="header" /> </xp:div> <xp:div styleClass="row-fluid"> <xp:div styleClass="span2"> <xp:callback facetName="navigation" /> </xp:div> <xp:div styleClass="span10"> <xp:callback facetName="content" /> </xp:div> </xp:div> </xp:div> </xp:view> Mobile Browser Layout Chris Toohey | www.dominoGuru.com
  • 11. Pros and Cons of Responsive Layouts • “Let them eat cake!” – Most RWD frameworks deliver all markup, and let the client render the UI. • Mobile Access can mean less bandwidth • [Potentially] slower • Less control over UI/UX! Chris Toohey | www.dominoGuru.com
  • 12. Pros and Cons of Responsive Layouts • What is Progressive Enhancement? Combination of Graceful Degredation and leveraging client type specific functionlity. Chris Toohey | www.dominoGuru.com
  • 13. Pros and Cons of Responsive Layouts • What is Progressive Enhancement? Combination of Graceful Degredation and leveraging client type specific functionlity. Chris Toohey | www.dominoGuru.com
  • 14. Pros and Cons of Responsive Layouts • What is Progressive Enhancement? Combination of Graceful Degredation and leveraging client type specific functionlity. Chris Toohey | www.dominoGuru.com
  • 15. Pros and Cons of Responsive Layouts • Ask yourself two important questions: – Who will use my application? – How will they use my application? • Content Delivery vs. Interactive Applications – Most RWD success stories are from publications… Chris Toohey | www.dominoGuru.com
  • 16. Pros and Cons of Responsive Layouts Chris Toohey | www.dominoGuru.com
  • 17. Pros and Cons of Responsive Layouts Chris Toohey | www.dominoGuru.com
  • 18. Pros and Cons of Responsive Layouts Be Warned! If we used the standard RWD “refactor” tactics, you‘d be asking for the 2nd Personal Email Address 11 lines before the New Contact’s Phone Number… Chris Toohey | www.dominoGuru.com
  • 19. Pros and Cons of Responsive Layouts Be Warned! If we used the standard RWD “refactor” tactics, you‘d be asking for the 2nd Personal Email Address 11 lines before the New Contact’s Phone Number… Chris Toohey | www.dominoGuru.com
  • 20. Takeaways… • Twitter Bootstrap – http://twitter.github.com/bootstrap/ • Combine RWD with Progressive Enhancement – Better User Experiences with XPages applications – Leveraging the features of while accounting for potential limitations of the user client / device. Chris Toohey | www.dominoGuru.com