Cross Platform Mobile Development
SUMMER SCHOOL
Slide curs-10
Slide curs-10
Slide curs-10
Slide curs-10
Slide curs-10
Slide curs-10
Slide curs-10
HTML
HTML nodes
<tag id=”id” class=”class1 class2 class3” style=”inline CSS definition” attribute=”value”>
</tag>
The attributes for each type of tag are set by the HTML standard.
With HTML5 and up developers are allowed to set custom attributes prefixed by “data-”
<tag data-cnp=”19002…..”>
</tag>
CSS
css-selector{
property:value;
property:value;
}
Example:
a{
color:green; /*this will make all links on a page green*/
}
CSS selectors
element#id.class[attribute=value]:pseudo-class
parent>direct-children
parent childrean_and_grandchildren
example:
#container>.partial.blue>p
JavaScript
- dynamic typing (vs static)
- prototype based (vs class based)
- functional programmin
- anonymous functions
jQuery
$(cssSelector) //returns a jQuery Element
Add/remove classes:
$(cssSelector).addClass(newClass); $(cssSelector).removeClass(newClass); $(cssSelector).toggleClass(newClass);
Add/Read/Remove attributes
$(cssSelector).attr(“attribute_name”, value); $(cssSelector).attr(“attribute_name”);
$(cssSelector).removeAttr(“attribute_name”);
Get/Edit HTML contents
$(cssSelector).html(); $(cssSelector).html(new_content_as_string);
Create new nodes:
var div = $(“<div>”); //new empty div node
var p = $(“<p>A paragraph</p>”); //new p node with content inside
var clone = $(some css selector).clone(); //returns a jQuery element creating by cloning the original
Applying selection upon selection
$(css Selector).find(another css Selector);
some_var.find(css subSelector); // works if some_var is a jQuery element;
Events:
$(selector).click(callback);
$(selector).load(callback);
$(selector).submit(callback);
$(selector).unbind(eventType);
IoT template
PhoneGap Build
Mobile friendly frameworks
- jQuery mobile (mobile sites and apps framework)
- BootStrap (library that helps creating UI fast) - Highly Recommended
- Backbone (library used to create web/mobile apps)
- AngularJS (another ibrary used to create web/mobile apps)
- ionic (replaces phoengapwith it’s own binaries but still built on cordova) a little too card for beginners
- Sencha Touch (huge library of widgets for mobile devices) (needs paid license if used for commercial app)

More Related Content

PPTX
J query resh
PPT
PPTX
Client Web
PPT
Advanced Skinning with DotNetNuke 5
PPTX
Jqueryppt (1)
PPTX
2.java script dom
PDF
jQuery -Chapter 2 - Selectors and Events
J query resh
Client Web
Advanced Skinning with DotNetNuke 5
Jqueryppt (1)
2.java script dom
jQuery -Chapter 2 - Selectors and Events

What's hot (18)

PPTX
Internet and Web Technology (CLASS-10) [Node.js] | NIC/NIELIT Web Technology
PPTX
Fly High With Angular - How to build an app using Angular
PDF
JSLab. Ингвар Степанян. "React в разработке нативных WinRT/Windows Phone прил...
PPTX
React for WinRT apps
PPT
Don't Worry jQuery is very Easy:Learning Tips For jQuery
PDF
Javascript session june 2013 (iii) jquery json
PDF
Web Components: The future of Web Application Development
PPT
jQuery Mobile with HTML5
PPTX
Java script
PPSX
Sencha Touch basic concepts, pros and cons
KEY
Web storage
PPT
jQuery Beginner
ODP
MobileCity:Core Data
PPTX
Web technology javascript
PPTX
e-suap - client technologies- english version
PPTX
PDF
Short intro to JQuery and Modernizr
Internet and Web Technology (CLASS-10) [Node.js] | NIC/NIELIT Web Technology
Fly High With Angular - How to build an app using Angular
JSLab. Ингвар Степанян. "React в разработке нативных WinRT/Windows Phone прил...
React for WinRT apps
Don't Worry jQuery is very Easy:Learning Tips For jQuery
Javascript session june 2013 (iii) jquery json
Web Components: The future of Web Application Development
jQuery Mobile with HTML5
Java script
Sencha Touch basic concepts, pros and cons
Web storage
jQuery Beginner
MobileCity:Core Data
Web technology javascript
e-suap - client technologies- english version
Short intro to JQuery and Modernizr
Ad

Viewers also liked (6)

PDF
Una escuela para toodos
PPTX
Hotline warmline-fraudline
PDF
KINBRE_award
PDF
Turn Your Credit Card Processing Into An Investment
PDF
Manual aeg lavadora l76480fl
PDF
River basin (Daerah Aliran Sungai)
Una escuela para toodos
Hotline warmline-fraudline
KINBRE_award
Turn Your Credit Card Processing Into An Investment
Manual aeg lavadora l76480fl
River basin (Daerah Aliran Sungai)
Ad

Similar to Slide curs-10 (20)

PPTX
Css Selectors
PPT
J query b_dotnet_ug_meet_12_may_2012
PPT
Advanced Skinning With DotNetNuke
PDF
Styling Components with JavaScript: MelbCSS Edition
PDF
Jquery presentation
PPTX
Angular Data Binding
PDF
Styling components with JavaScript
PPTX
jQuery, CSS3 and ColdFusion
PDF
How to Mess Up Your Angular UI Components
PDF
GDI Seattle - Intro to JavaScript Class 4
PPTX
Uniface Lectures Webinar - Building Responsive Applications with Uniface: Dev...
KEY
Evrone.ru / BEM for RoR
PDF
Vaadin Components @ Angular U
PPTX
Knockout.js
PPT
Java script -23jan2015
PDF
Creating lightweight JS Apps w/ Web Components and lit-html
PDF
jQuery - Chapter 4 - DOM Handling
PPTX
Svcc 2013-d3
PPTX
SVCC 2013 D3.js Presentation (10/05/2013)
PDF
AEM Sightly Template Language
Css Selectors
J query b_dotnet_ug_meet_12_may_2012
Advanced Skinning With DotNetNuke
Styling Components with JavaScript: MelbCSS Edition
Jquery presentation
Angular Data Binding
Styling components with JavaScript
jQuery, CSS3 and ColdFusion
How to Mess Up Your Angular UI Components
GDI Seattle - Intro to JavaScript Class 4
Uniface Lectures Webinar - Building Responsive Applications with Uniface: Dev...
Evrone.ru / BEM for RoR
Vaadin Components @ Angular U
Knockout.js
Java script -23jan2015
Creating lightweight JS Apps w/ Web Components and lit-html
jQuery - Chapter 4 - DOM Handling
Svcc 2013-d3
SVCC 2013 D3.js Presentation (10/05/2013)
AEM Sightly Template Language

Slide curs-10