際際滷

際際滷Share a Scribd company logo
Desarrollo de Aplicaciones Cross-
Platform para Dispositivos Moviles
Building Cross-Platform Mobile Applications
M.S.C. Raquel V叩squez Ram鱈rez
M.S.C. Cristian A. Rodr鱈guez Enr鱈quez
Contenido	
 油
≒ Manejo	
 油de	
 油Base	
 油de	
 油Datos	
 油(Client	
 油Side)	
 油
≒ Almacenamiento	
 油Local	
 油
Permanente	
 油
Sesi坦n	
 油
Usando	
 油Base	
 油de	
 油Datos	
 油
≒ Conclusiones	
 油
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 02 of 15
HTML 5: Data Storage
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 03 of 15
HTML5 offers two types of data storage on the client:
≒ Storage via a database containing the tables
described in SQL
≒ Storage through localStorage and sessionStorage
objects, to store information made up of strings.
Permanent Storage and Session Storage
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 04 of 15
Para habilitar el Storage se utilizan dos objetos de
JavaScript:
≒ localStorage: Permite el almacenamiento permanente
≒ sessionStorage: Permite el almacenamiento en la sesi坦n
Permanent Storage
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 05 of 15
localStorage.lname = Sarrion;
localStorage.fname = Eric;
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 06 of 15
Session Storage
sessionStorage.lname = Sarrion;
sessionStorage.fname = Eric;
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 07 of 15
Usando una Base de Datos
Como se puede observar el almacenamiento temporal y
permanente no provee las facilidades de las bases de datos
SQL.
Gracias a HTML 5 es posible usar bases de SQL de forma local.
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 08 of 15
Creando la Base de Datos
var	
 油db	
 油=	
 油openDatabase	
 油(Test,	
 油1.0,	
 油Test,	
 油65535);	
 油
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 09 of 15
Transaction
db.transacKon	
 油(funcKon	
 油(transacKon)	
 油	
 油
{	
 油
	
 油	
 油	
 油	
 油var	
 油sql	
 油=	
 油SQL	
 油query;	
 油
	
 油	
 油	
 油	
 油transacKon.executeSql	
 油(sql,	
 油[parameters]	
 油/	
 油unde鍖ned,	
 油	
 油
	
 油	
 油	
 油	
 油funcKon	
 油()	
 油
	
 油	
 油	
 油	
 油{	
 油	
 油
	
 油	
 油	
 油	
 油	
 油	
 油	
 油	
 油//	
 油JavaScript	
 油code	
 油to	
 油execute	
 油if	
 油the	
 油query	
 油was	
 油successful	
 油
	
 油	
 油	
 油	
 油},	
 油	
 油
	
 油	
 油	
 油	
 油funcKon	
 油()	
 油
	
 油	
 油	
 油	
 油{	
 油	
 油
	
 油	
 油	
 油	
 油	
 油	
 油	
 油	
 油//	
 油JavaScript	
 油code	
 油to	
 油execute	
 油if	
 油the	
 油query	
 油failed	
 油
	
 油	
 油	
 油	
 油}	
 油);	
 油
});	
 油
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 10 of 15
Usando la Base de Datos
≒ Crear Base de Datos
≒ Insertar
≒ Listar (SELECT)
≒ Eliminar Tabla
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 11 of 15
CREATE TABLE
db.transacKon	
 油(funcKon	
 油(transacKon)	
 油	
 油
	
 油	
 油{	
 油
	
 油	
 油	
 油	
 油var	
 油sql	
 油=	
 油"CREATE	
 油TABLE	
 油customers	
 油"	
 油+	
 油
	
 油	
 油	
 油	
 油	
 油	
 油	
 油	
 油"	
 油(id	
 油INTEGER	
 油NOT	
 油NULL	
 油PRIMARY	
 油KEY	
 油AUTOINCREMENT,	
 油"	
 油+	
 油
	
 油	
 油	
 油	
 油	
 油	
 油	
 油	
 油"lname	
 油VARCHAR(100)	
 油NOT	
 油NULL,	
 油"	
 油+	
 油	
 油
	
 油	
 油	
 油	
 油	
 油	
 油	
 油	
 油"fname	
 油VARCHAR(100)	
 油NOT	
 油NULL)"	
 油
	
 油	
 油	
 油	
 油transacKon.executeSql	
 油(sql,	
 油unde鍖ned,	
 油funcKon	
 油()	
 油
	
 油	
 油	
 油	
 油{	
 油	
 油
	
 油	
 油	
 油	
 油	
 油	
 油alert	
 油("Table	
 油created");	
 油
	
 油	
 油	
 油	
 油},	
 油error);	
 油
	
 油	
 油});	
 油
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 12 of 15
DROP TABLE
db.transacKon	
 油(funcKon	
 油(transacKon)	
 油	
 油
	
 油	
 油{	
 油
	
 油	
 油	
 油	
 油var	
 油sql	
 油=	
 油"DROP	
 油TABLE	
 油customers";	
 油
	
 油	
 油	
 油	
 油transacKon.executeSql	
 油(sql,	
 油unde鍖ned,	
 油ok,	
 油error);	
 油
	
 油	
 油}	
 油
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 13 of 15
INSERT INTO
db.transacKon	
 油(funcKon	
 油(transacKon)	
 油	
 油
	
 油	
 油{	
 油
	
 油	
 油	
 油	
 油var	
 油sql	
 油=	
 油"INSERT	
 油INTO	
 油customers	
 油(lname,	
 油fname)	
 油VALUES	
 油(?,	
 油?)";	
 油
	
 油	
 油	
 油	
 油transacKon.executeSql	
 油(sql,	
 油[lname,	
 油fname],	
 油funcKon	
 油()	
 油
	
 油	
 油	
 油	
 油{	
 油	
 油
	
 油	
 油	
 油	
 油	
 油	
 油alert	
 油("Customer	
 油inserted");	
 油
	
 油	
 油	
 油	
 油},	
 油error);	
 油
	
 油	
 油}	
 油
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 14 of 15
Base de Datos Server Side (Elementos)
var	
 油sql	
 油=	
 油"SELECT	
 油*	
 油FROM	
 油customers";	
 油
transacKon.executeSql	
 油(sql,	
 油unde鍖ned,	
 油	
 油
Conclusiones	
 油
≒ jQuery provee los elementos necesarios para
desarrollar aplicaciones para dispositivos m坦viles
≒ Desarrollo gil
≒ Si se desea sincronizar datos con un servidor, se
requiere usar una base de datos local y sincronizar
cuando se disponga de conexi坦n mediante una
consulta constante del estado de la conexi坦n (Push?)
≒ Optimizaci坦n de Aplicaciones Web
Building Cross-Plaftform Mobile Applications  jQuery Mobile
際際滷 15 of 15

More Related Content

Similar to 05 Building cross-platform mobile applications with jQuery Mobile / Desarrollo de Aplicaciones Cross-Platform para Dispositivos Moviles (20)

handout-05b
handout-05bhandout-05b
handout-05b
tutorialsruby
Couchbase@live person meetup july 22nd
Couchbase@live person meetup   july 22ndCouchbase@live person meetup   july 22nd
Couchbase@live person meetup july 22nd
Ido Shilon
From Web App Model Design to Production with Wakanda
From Web App Model Design to Production with WakandaFrom Web App Model Design to Production with Wakanda
From Web App Model Design to Production with Wakanda
Alexandre Morgaut
03 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
03 Building cross platform mobile applications with PhoneGap / Desarrollo de ...03 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
03 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
Cristian Rodr鱈guez Enr鱈quez
Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)
Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)
Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)
Red Hat Developers
Silverlight 2 for Developers - TechEd New Zealand 2008
Silverlight 2 for Developers - TechEd New Zealand 2008Silverlight 2 for Developers - TechEd New Zealand 2008
Silverlight 2 for Developers - TechEd New Zealand 2008
Jonas Folles淡
Jsf intro
Jsf introJsf intro
Jsf intro
vantinhkhuc
What 100M downloads taught us about iOS architectures
What 100M downloads taught us about iOS architecturesWhat 100M downloads taught us about iOS architectures
What 100M downloads taught us about iOS architectures
Francesco Di Lorenzo
[Codecamp 2016] Going functional with flyd and react
[Codecamp 2016] Going functional with flyd and react [Codecamp 2016] Going functional with flyd and react
[Codecamp 2016] Going functional with flyd and react
gcazaciuc
Liferay Devcon Presentation on Dynamic Forms with Liferay Workflow
Liferay Devcon Presentation on Dynamic Forms with Liferay WorkflowLiferay Devcon Presentation on Dynamic Forms with Liferay Workflow
Liferay Devcon Presentation on Dynamic Forms with Liferay Workflow
Willem Vermeer
Liferay Devcon presentation on Workflow & Dynamic Forms
Liferay Devcon presentation on Workflow & Dynamic FormsLiferay Devcon presentation on Workflow & Dynamic Forms
Liferay Devcon presentation on Workflow & Dynamic Forms
Willem Vermeer
Sanjeev_Kumar_Paul- Resume-Latest
Sanjeev_Kumar_Paul- Resume-LatestSanjeev_Kumar_Paul- Resume-Latest
Sanjeev_Kumar_Paul- Resume-Latest
Sanjeev Kumar Paul
Rapid prototyping of eclipse rcp applications - Eclipsecon Europe 2017
Rapid prototyping of eclipse rcp applications - Eclipsecon Europe 2017Rapid prototyping of eclipse rcp applications - Eclipsecon Europe 2017
Rapid prototyping of eclipse rcp applications - Eclipsecon Europe 2017
Patrik Suzzi
Js in quick books
Js in quick booksJs in quick books
Js in quick books
QuickBooks Online
Mobile for SharePoint with Windows Phone
Mobile for SharePoint with Windows PhoneMobile for SharePoint with Windows Phone
Mobile for SharePoint with Windows Phone
Edgewater
React JS and Redux
React JS and ReduxReact JS and Redux
React JS and Redux
Glib Kechyn
20150812 4螳襷 磯狩企慨 windows 10 螳覦
20150812  4螳襷 磯狩企慨 windows 10  螳覦20150812  4螳襷 磯狩企慨 windows 10  螳覦
20150812 4螳襷 磯狩企慨 windows 10 螳覦
Resume_Sandip_Mohod_Java_9_plus_years_exp
Resume_Sandip_Mohod_Java_9_plus_years_expResume_Sandip_Mohod_Java_9_plus_years_exp
Resume_Sandip_Mohod_Java_9_plus_years_exp
Sandip Mohod
Rits Brown Bag - Salesforce Lightning
Rits Brown Bag - Salesforce LightningRits Brown Bag - Salesforce Lightning
Rits Brown Bag - Salesforce Lightning
Right IT Services
Dropwizard Introduction
Dropwizard IntroductionDropwizard Introduction
Dropwizard Introduction
Anthony Chen
Couchbase@live person meetup july 22nd
Couchbase@live person meetup   july 22ndCouchbase@live person meetup   july 22nd
Couchbase@live person meetup july 22nd
Ido Shilon
From Web App Model Design to Production with Wakanda
From Web App Model Design to Production with WakandaFrom Web App Model Design to Production with Wakanda
From Web App Model Design to Production with Wakanda
Alexandre Morgaut
03 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
03 Building cross platform mobile applications with PhoneGap / Desarrollo de ...03 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
03 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
Cristian Rodr鱈guez Enr鱈quez
Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)
Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)
Full Stack Development With Node.Js And NoSQL (Nic Raboy & Arun Gupta)
Red Hat Developers
Silverlight 2 for Developers - TechEd New Zealand 2008
Silverlight 2 for Developers - TechEd New Zealand 2008Silverlight 2 for Developers - TechEd New Zealand 2008
Silverlight 2 for Developers - TechEd New Zealand 2008
Jonas Folles淡
What 100M downloads taught us about iOS architectures
What 100M downloads taught us about iOS architecturesWhat 100M downloads taught us about iOS architectures
What 100M downloads taught us about iOS architectures
Francesco Di Lorenzo
[Codecamp 2016] Going functional with flyd and react
[Codecamp 2016] Going functional with flyd and react [Codecamp 2016] Going functional with flyd and react
[Codecamp 2016] Going functional with flyd and react
gcazaciuc
Liferay Devcon Presentation on Dynamic Forms with Liferay Workflow
Liferay Devcon Presentation on Dynamic Forms with Liferay WorkflowLiferay Devcon Presentation on Dynamic Forms with Liferay Workflow
Liferay Devcon Presentation on Dynamic Forms with Liferay Workflow
Willem Vermeer
Liferay Devcon presentation on Workflow & Dynamic Forms
Liferay Devcon presentation on Workflow & Dynamic FormsLiferay Devcon presentation on Workflow & Dynamic Forms
Liferay Devcon presentation on Workflow & Dynamic Forms
Willem Vermeer
Sanjeev_Kumar_Paul- Resume-Latest
Sanjeev_Kumar_Paul- Resume-LatestSanjeev_Kumar_Paul- Resume-Latest
Sanjeev_Kumar_Paul- Resume-Latest
Sanjeev Kumar Paul
Rapid prototyping of eclipse rcp applications - Eclipsecon Europe 2017
Rapid prototyping of eclipse rcp applications - Eclipsecon Europe 2017Rapid prototyping of eclipse rcp applications - Eclipsecon Europe 2017
Rapid prototyping of eclipse rcp applications - Eclipsecon Europe 2017
Patrik Suzzi
Mobile for SharePoint with Windows Phone
Mobile for SharePoint with Windows PhoneMobile for SharePoint with Windows Phone
Mobile for SharePoint with Windows Phone
Edgewater
React JS and Redux
React JS and ReduxReact JS and Redux
React JS and Redux
Glib Kechyn
20150812 4螳襷 磯狩企慨 windows 10 螳覦
20150812  4螳襷 磯狩企慨 windows 10  螳覦20150812  4螳襷 磯狩企慨 windows 10  螳覦
20150812 4螳襷 磯狩企慨 windows 10 螳覦
Resume_Sandip_Mohod_Java_9_plus_years_exp
Resume_Sandip_Mohod_Java_9_plus_years_expResume_Sandip_Mohod_Java_9_plus_years_exp
Resume_Sandip_Mohod_Java_9_plus_years_exp
Sandip Mohod
Rits Brown Bag - Salesforce Lightning
Rits Brown Bag - Salesforce LightningRits Brown Bag - Salesforce Lightning
Rits Brown Bag - Salesforce Lightning
Right IT Services
Dropwizard Introduction
Dropwizard IntroductionDropwizard Introduction
Dropwizard Introduction
Anthony Chen

More from Cristian Rodr鱈guez Enr鱈quez (7)

LiDIA: An integration architecture to query Linked Open Data from multiple da...
LiDIA: An integration architecture to query Linked Open Data from multiple da...LiDIA: An integration architecture to query Linked Open Data from multiple da...
LiDIA: An integration architecture to query Linked Open Data from multiple da...
Cristian Rodr鱈guez Enr鱈quez
02 Building cross platform mobile applications with PhoneGap / Desarrollo de ...02 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
02 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
Cristian Rodr鱈guez Enr鱈quez
01 Building cross platform mobile applications with PhoneGap / Desarrollo de ...01 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
01 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
Cristian Rodr鱈guez Enr鱈quez
04 Building cross-platform mobile applications with jQuery Mobile / Desarroll...04 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
04 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
Cristian Rodr鱈guez Enr鱈quez
03 Building cross-platform mobile applications with jQuery Mobile / Desarroll...03 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
03 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
Cristian Rodr鱈guez Enr鱈quez
01 Building cross-platform mobile applications with jQuery Mobile01 Building cross-platform mobile applications with jQuery Mobile
01 Building cross-platform mobile applications with jQuery Mobile
Cristian Rodr鱈guez Enr鱈quez
Propuesta de integraci坦n para el consumo de m炭ltiples datasets de linked dataPropuesta de integraci坦n para el consumo de m炭ltiples datasets de linked data
Propuesta de integraci坦n para el consumo de m炭ltiples datasets de linked data
Cristian Rodr鱈guez Enr鱈quez
LiDIA: An integration architecture to query Linked Open Data from multiple da...
LiDIA: An integration architecture to query Linked Open Data from multiple da...LiDIA: An integration architecture to query Linked Open Data from multiple da...
LiDIA: An integration architecture to query Linked Open Data from multiple da...
Cristian Rodr鱈guez Enr鱈quez
02 Building cross platform mobile applications with PhoneGap / Desarrollo de ...02 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
02 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
Cristian Rodr鱈guez Enr鱈quez
01 Building cross platform mobile applications with PhoneGap / Desarrollo de ...01 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
01 Building cross platform mobile applications with PhoneGap / Desarrollo de ...
Cristian Rodr鱈guez Enr鱈quez
04 Building cross-platform mobile applications with jQuery Mobile / Desarroll...04 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
04 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
Cristian Rodr鱈guez Enr鱈quez
03 Building cross-platform mobile applications with jQuery Mobile / Desarroll...03 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
03 Building cross-platform mobile applications with jQuery Mobile / Desarroll...
Cristian Rodr鱈guez Enr鱈quez
01 Building cross-platform mobile applications with jQuery Mobile01 Building cross-platform mobile applications with jQuery Mobile
01 Building cross-platform mobile applications with jQuery Mobile
Cristian Rodr鱈guez Enr鱈quez
Propuesta de integraci坦n para el consumo de m炭ltiples datasets de linked dataPropuesta de integraci坦n para el consumo de m炭ltiples datasets de linked data
Propuesta de integraci坦n para el consumo de m炭ltiples datasets de linked data
Cristian Rodr鱈guez Enr鱈quez

Recently uploaded (20)

Solutions for Radiation Threats: The Zytekno Catalog
Solutions for Radiation Threats: The Zytekno CatalogSolutions for Radiation Threats: The Zytekno Catalog
Solutions for Radiation Threats: The Zytekno Catalog
omnicnc
"AI-Driven Automation for High-Performing Teams: Optimize Routine Tasks & Lea...
"AI-Driven Automation for High-Performing Teams: Optimize Routine Tasks & Lea..."AI-Driven Automation for High-Performing Teams: Optimize Routine Tasks & Lea...
"AI-Driven Automation for High-Performing Teams: Optimize Routine Tasks & Lea...
Fwdays
Diving into LTI: From the basics to Deep Linking
Diving into LTI: From the basics to Deep LinkingDiving into LTI: From the basics to Deep Linking
Diving into LTI: From the basics to Deep Linking
Rustici Software
The nature of technolog and Computer networks.pptx
The nature of technolog and Computer networks.pptxThe nature of technolog and Computer networks.pptx
The nature of technolog and Computer networks.pptx
vallidevi6
AEM Branding Rollout: How to Minimize Downtime & Improve Efficiency
AEM Branding Rollout: How to Minimize Downtime & Improve EfficiencyAEM Branding Rollout: How to Minimize Downtime & Improve Efficiency
AEM Branding Rollout: How to Minimize Downtime & Improve Efficiency
Nikhil Gupta
"Conflicts within a Team: Not an Enemy, But an Opportunity for Growth", Orest...
"Conflicts within a Team: Not an Enemy, But an Opportunity for Growth", Orest..."Conflicts within a Team: Not an Enemy, But an Opportunity for Growth", Orest...
"Conflicts within a Team: Not an Enemy, But an Opportunity for Growth", Orest...
Fwdays
Networking For Ethical Hacking (Hackers)
Networking For Ethical Hacking (Hackers)Networking For Ethical Hacking (Hackers)
Networking For Ethical Hacking (Hackers)
Hackopedia Utkarsh Thakur
Tesla strategy for development in modern era.pptx
Tesla strategy for development in modern era.pptxTesla strategy for development in modern era.pptx
Tesla strategy for development in modern era.pptx
hibahassan160702
Spin Glass Models of Neural Networks: The Curie-Weiss Model from Statistical ...
Spin Glass Models of Neural Networks: The Curie-Weiss Model from Statistical ...Spin Glass Models of Neural Networks: The Curie-Weiss Model from Statistical ...
Spin Glass Models of Neural Networks: The Curie-Weiss Model from Statistical ...
Charles Martin
[NYC Scrum] 4 bad ideas about productivity... and what Agilists should do ins...
[NYC Scrum] 4 bad ideas about productivity... and what Agilists should do ins...[NYC Scrum] 4 bad ideas about productivity... and what Agilists should do ins...
[NYC Scrum] 4 bad ideas about productivity... and what Agilists should do ins...
Jason Yip
[QUICK TALK] "Why Some Teams Grow Better Under Pressure", Oleksandr Marchenko...
[QUICK TALK] "Why Some Teams Grow Better Under Pressure", Oleksandr Marchenko...[QUICK TALK] "Why Some Teams Grow Better Under Pressure", Oleksandr Marchenko...
[QUICK TALK] "Why Some Teams Grow Better Under Pressure", Oleksandr Marchenko...
Fwdays
Blending AI in Enterprise Architecture.pdf
Blending AI in Enterprise Architecture.pdfBlending AI in Enterprise Architecture.pdf
Blending AI in Enterprise Architecture.pdf
Calvin Hendryx-Parker
UiPath NY AI Series: Session 2: UiPath Generative AI Capabilities
UiPath NY AI Series: Session 2: UiPath Generative AI CapabilitiesUiPath NY AI Series: Session 2: UiPath Generative AI Capabilities
UiPath NY AI Series: Session 2: UiPath Generative AI Capabilities
DianaGray10
SOC as a Service 24/7 Threat Monitoring and Response
SOC as a Service  24/7 Threat Monitoring and ResponseSOC as a Service  24/7 Threat Monitoring and Response
SOC as a Service 24/7 Threat Monitoring and Response
Cybercops
UiPath Automation Developer Associate Training Series 2025 - Session 5
UiPath Automation Developer Associate Training Series 2025 - Session 5UiPath Automation Developer Associate Training Series 2025 - Session 5
UiPath Automation Developer Associate Training Series 2025 - Session 5
DianaGray10
[QUICK TALK] "How to study to acquire a skill, not a certificate?", Uliana Du...
[QUICK TALK] "How to study to acquire a skill, not a certificate?", Uliana Du...[QUICK TALK] "How to study to acquire a skill, not a certificate?", Uliana Du...
[QUICK TALK] "How to study to acquire a skill, not a certificate?", Uliana Du...
Fwdays
UIUX Design Course in Coimbatore with Internship
UIUX Design Course in Coimbatore with InternshipUIUX Design Course in Coimbatore with Internship
UIUX Design Course in Coimbatore with Internship
Nextskill Technologies
Think Like and Architect Series: Session 1 of 9 Declarative Design
Think Like and Architect Series: Session 1 of 9 Declarative DesignThink Like and Architect Series: Session 1 of 9 Declarative Design
Think Like and Architect Series: Session 1 of 9 Declarative Design
Walter Spinrad
Slack Social Meetup Connect, Collaborate & Grow!.pptx
Slack Social Meetup Connect, Collaborate & Grow!.pptxSlack Social Meetup Connect, Collaborate & Grow!.pptx
Slack Social Meetup Connect, Collaborate & Grow!.pptx
SanjeetMishra29
Benefits of Using Ultrasonic Level Transmitters for Control
Benefits of Using Ultrasonic Level Transmitters for ControlBenefits of Using Ultrasonic Level Transmitters for Control
Benefits of Using Ultrasonic Level Transmitters for Control
nikeson80
Solutions for Radiation Threats: The Zytekno Catalog
Solutions for Radiation Threats: The Zytekno CatalogSolutions for Radiation Threats: The Zytekno Catalog
Solutions for Radiation Threats: The Zytekno Catalog
omnicnc
"AI-Driven Automation for High-Performing Teams: Optimize Routine Tasks & Lea...
"AI-Driven Automation for High-Performing Teams: Optimize Routine Tasks & Lea..."AI-Driven Automation for High-Performing Teams: Optimize Routine Tasks & Lea...
"AI-Driven Automation for High-Performing Teams: Optimize Routine Tasks & Lea...
Fwdays
Diving into LTI: From the basics to Deep Linking
Diving into LTI: From the basics to Deep LinkingDiving into LTI: From the basics to Deep Linking
Diving into LTI: From the basics to Deep Linking
Rustici Software
The nature of technolog and Computer networks.pptx
The nature of technolog and Computer networks.pptxThe nature of technolog and Computer networks.pptx
The nature of technolog and Computer networks.pptx
vallidevi6
AEM Branding Rollout: How to Minimize Downtime & Improve Efficiency
AEM Branding Rollout: How to Minimize Downtime & Improve EfficiencyAEM Branding Rollout: How to Minimize Downtime & Improve Efficiency
AEM Branding Rollout: How to Minimize Downtime & Improve Efficiency
Nikhil Gupta
"Conflicts within a Team: Not an Enemy, But an Opportunity for Growth", Orest...
"Conflicts within a Team: Not an Enemy, But an Opportunity for Growth", Orest..."Conflicts within a Team: Not an Enemy, But an Opportunity for Growth", Orest...
"Conflicts within a Team: Not an Enemy, But an Opportunity for Growth", Orest...
Fwdays
Tesla strategy for development in modern era.pptx
Tesla strategy for development in modern era.pptxTesla strategy for development in modern era.pptx
Tesla strategy for development in modern era.pptx
hibahassan160702
Spin Glass Models of Neural Networks: The Curie-Weiss Model from Statistical ...
Spin Glass Models of Neural Networks: The Curie-Weiss Model from Statistical ...Spin Glass Models of Neural Networks: The Curie-Weiss Model from Statistical ...
Spin Glass Models of Neural Networks: The Curie-Weiss Model from Statistical ...
Charles Martin
[NYC Scrum] 4 bad ideas about productivity... and what Agilists should do ins...
[NYC Scrum] 4 bad ideas about productivity... and what Agilists should do ins...[NYC Scrum] 4 bad ideas about productivity... and what Agilists should do ins...
[NYC Scrum] 4 bad ideas about productivity... and what Agilists should do ins...
Jason Yip
[QUICK TALK] "Why Some Teams Grow Better Under Pressure", Oleksandr Marchenko...
[QUICK TALK] "Why Some Teams Grow Better Under Pressure", Oleksandr Marchenko...[QUICK TALK] "Why Some Teams Grow Better Under Pressure", Oleksandr Marchenko...
[QUICK TALK] "Why Some Teams Grow Better Under Pressure", Oleksandr Marchenko...
Fwdays
Blending AI in Enterprise Architecture.pdf
Blending AI in Enterprise Architecture.pdfBlending AI in Enterprise Architecture.pdf
Blending AI in Enterprise Architecture.pdf
Calvin Hendryx-Parker
UiPath NY AI Series: Session 2: UiPath Generative AI Capabilities
UiPath NY AI Series: Session 2: UiPath Generative AI CapabilitiesUiPath NY AI Series: Session 2: UiPath Generative AI Capabilities
UiPath NY AI Series: Session 2: UiPath Generative AI Capabilities
DianaGray10
SOC as a Service 24/7 Threat Monitoring and Response
SOC as a Service  24/7 Threat Monitoring and ResponseSOC as a Service  24/7 Threat Monitoring and Response
SOC as a Service 24/7 Threat Monitoring and Response
Cybercops
UiPath Automation Developer Associate Training Series 2025 - Session 5
UiPath Automation Developer Associate Training Series 2025 - Session 5UiPath Automation Developer Associate Training Series 2025 - Session 5
UiPath Automation Developer Associate Training Series 2025 - Session 5
DianaGray10
[QUICK TALK] "How to study to acquire a skill, not a certificate?", Uliana Du...
[QUICK TALK] "How to study to acquire a skill, not a certificate?", Uliana Du...[QUICK TALK] "How to study to acquire a skill, not a certificate?", Uliana Du...
[QUICK TALK] "How to study to acquire a skill, not a certificate?", Uliana Du...
Fwdays
UIUX Design Course in Coimbatore with Internship
UIUX Design Course in Coimbatore with InternshipUIUX Design Course in Coimbatore with Internship
UIUX Design Course in Coimbatore with Internship
Nextskill Technologies
Think Like and Architect Series: Session 1 of 9 Declarative Design
Think Like and Architect Series: Session 1 of 9 Declarative DesignThink Like and Architect Series: Session 1 of 9 Declarative Design
Think Like and Architect Series: Session 1 of 9 Declarative Design
Walter Spinrad
Slack Social Meetup Connect, Collaborate & Grow!.pptx
Slack Social Meetup Connect, Collaborate & Grow!.pptxSlack Social Meetup Connect, Collaborate & Grow!.pptx
Slack Social Meetup Connect, Collaborate & Grow!.pptx
SanjeetMishra29
Benefits of Using Ultrasonic Level Transmitters for Control
Benefits of Using Ultrasonic Level Transmitters for ControlBenefits of Using Ultrasonic Level Transmitters for Control
Benefits of Using Ultrasonic Level Transmitters for Control
nikeson80

05 Building cross-platform mobile applications with jQuery Mobile / Desarrollo de Aplicaciones Cross-Platform para Dispositivos Moviles

  • 1. Desarrollo de Aplicaciones Cross- Platform para Dispositivos Moviles Building Cross-Platform Mobile Applications M.S.C. Raquel V叩squez Ram鱈rez M.S.C. Cristian A. Rodr鱈guez Enr鱈quez
  • 2. Contenido 油 ≒ Manejo 油de 油Base 油de 油Datos 油(Client 油Side) 油 ≒ Almacenamiento 油Local 油 Permanente 油 Sesi坦n 油 Usando 油Base 油de 油Datos 油 ≒ Conclusiones 油 Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 02 of 15
  • 3. HTML 5: Data Storage Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 03 of 15 HTML5 offers two types of data storage on the client: ≒ Storage via a database containing the tables described in SQL ≒ Storage through localStorage and sessionStorage objects, to store information made up of strings.
  • 4. Permanent Storage and Session Storage Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 04 of 15 Para habilitar el Storage se utilizan dos objetos de JavaScript: ≒ localStorage: Permite el almacenamiento permanente ≒ sessionStorage: Permite el almacenamiento en la sesi坦n
  • 5. Permanent Storage Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 05 of 15 localStorage.lname = Sarrion; localStorage.fname = Eric;
  • 6. Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 06 of 15 Session Storage sessionStorage.lname = Sarrion; sessionStorage.fname = Eric;
  • 7. Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 07 of 15 Usando una Base de Datos Como se puede observar el almacenamiento temporal y permanente no provee las facilidades de las bases de datos SQL. Gracias a HTML 5 es posible usar bases de SQL de forma local.
  • 8. Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 08 of 15 Creando la Base de Datos var 油db 油= 油openDatabase 油(Test, 油1.0, 油Test, 油65535); 油
  • 9. Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 09 of 15 Transaction db.transacKon 油(funcKon 油(transacKon) 油 油 { 油 油 油 油 油var 油sql 油= 油SQL 油query; 油 油 油 油 油transacKon.executeSql 油(sql, 油[parameters] 油/ 油unde鍖ned, 油 油 油 油 油 油funcKon 油() 油 油 油 油 油{ 油 油 油 油 油 油 油 油 油 油// 油JavaScript 油code 油to 油execute 油if 油the 油query 油was 油successful 油 油 油 油 油}, 油 油 油 油 油 油funcKon 油() 油 油 油 油 油{ 油 油 油 油 油 油 油 油 油 油// 油JavaScript 油code 油to 油execute 油if 油the 油query 油failed 油 油 油 油 油} 油); 油 }); 油
  • 10. Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 10 of 15 Usando la Base de Datos ≒ Crear Base de Datos ≒ Insertar ≒ Listar (SELECT) ≒ Eliminar Tabla
  • 11. Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 11 of 15 CREATE TABLE db.transacKon 油(funcKon 油(transacKon) 油 油 油 油{ 油 油 油 油 油var 油sql 油= 油"CREATE 油TABLE 油customers 油" 油+ 油 油 油 油 油 油 油 油 油" 油(id 油INTEGER 油NOT 油NULL 油PRIMARY 油KEY 油AUTOINCREMENT, 油" 油+ 油 油 油 油 油 油 油 油 油"lname 油VARCHAR(100) 油NOT 油NULL, 油" 油+ 油 油 油 油 油 油 油 油 油 油"fname 油VARCHAR(100) 油NOT 油NULL)" 油 油 油 油 油transacKon.executeSql 油(sql, 油unde鍖ned, 油funcKon 油() 油 油 油 油 油{ 油 油 油 油 油 油 油 油alert 油("Table 油created"); 油 油 油 油 油}, 油error); 油 油 油}); 油
  • 12. Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 12 of 15 DROP TABLE db.transacKon 油(funcKon 油(transacKon) 油 油 油 油{ 油 油 油 油 油var 油sql 油= 油"DROP 油TABLE 油customers"; 油 油 油 油 油transacKon.executeSql 油(sql, 油unde鍖ned, 油ok, 油error); 油 油 油} 油
  • 13. Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 13 of 15 INSERT INTO db.transacKon 油(funcKon 油(transacKon) 油 油 油 油{ 油 油 油 油 油var 油sql 油= 油"INSERT 油INTO 油customers 油(lname, 油fname) 油VALUES 油(?, 油?)"; 油 油 油 油 油transacKon.executeSql 油(sql, 油[lname, 油fname], 油funcKon 油() 油 油 油 油 油{ 油 油 油 油 油 油 油 油alert 油("Customer 油inserted"); 油 油 油 油 油}, 油error); 油 油 油} 油
  • 14. Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 14 of 15 Base de Datos Server Side (Elementos) var 油sql 油= 油"SELECT 油* 油FROM 油customers"; 油 transacKon.executeSql 油(sql, 油unde鍖ned, 油 油
  • 15. Conclusiones 油 ≒ jQuery provee los elementos necesarios para desarrollar aplicaciones para dispositivos m坦viles ≒ Desarrollo gil ≒ Si se desea sincronizar datos con un servidor, se requiere usar una base de datos local y sincronizar cuando se disponga de conexi坦n mediante una consulta constante del estado de la conexi坦n (Push?) ≒ Optimizaci坦n de Aplicaciones Web Building Cross-Plaftform Mobile Applications jQuery Mobile 際際滷 15 of 15