SlideShare a Scribd company logo
IS4 030 - Website Design for e-Commerce  By  SMIEEE, SMACM, MACS E-mail: raylau@cityu.edu.hk Room: P7919 Consultation Hours: 3:30 - 5:30pm Monday Lecture Seven –JavaScript   and XML
While Loop <p>Explanation:</p> <p><b>i</b>  equal to 0.</p> <p>While <b>i</b> is less than , or equal to, 5, the loop will continue to run.</p> <p><b>i</b> will increase by 1 each time the loop runs.</p> </body> </html> Question: How many number will be displayed on the Web page?
Array ,[object Object],Edison Guil CustName[0] CustName[1] The CustName array Computer Main Memory (RAM) Sa Question: What is the advantage of using array instead of using ordinary variables?
HTML DOM - Form ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
indexof Method ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

Viewers also liked

September Leaves & Lowstar 30.10.09
September Leaves & Lowstar 30.10.09September Leaves & Lowstar 30.10.09
September Leaves & Lowstar 30.10.09
Kavantgarde
 
Lecture 6 Footnotes&amp; Answers
Lecture 6  Footnotes&amp; AnswersLecture 6  Footnotes&amp; Answers
Lecture 6 Footnotes&amp; Answers
is4030.ray
 
Lecture 2 Footnotes&Answers
Lecture 2  Footnotes&AnswersLecture 2  Footnotes&Answers
Lecture 2 Footnotes&Answers
is4030.ray
 
Junior Boys 13.11.09
Junior Boys 13.11.09Junior Boys 13.11.09
Junior Boys 13.11.09Kavantgarde
 
Teenage Kicks Funeral Party
Teenage Kicks Funeral PartyTeenage Kicks Funeral Party
Teenage Kicks Funeral PartyKavantgarde
 
Miss Prism & The Girl In The Dirty Shirt
Miss Prism & The Girl In The Dirty ShirtMiss Prism & The Girl In The Dirty Shirt
Miss Prism & The Girl In The Dirty Shirt
Kavantgarde
 
Lecture 10 Answers
Lecture 10 AnswersLecture 10 Answers
Lecture 10 Answers
is4030.ray
 
Lecture 4 Footnotes&amp;Answers
Lecture 4  Footnotes&amp;AnswersLecture 4  Footnotes&amp;Answers
Lecture 4 Footnotes&amp;Answers
is4030.ray
 
Geometric Figures (2nd-3rd Grade)
Geometric Figures (2nd-3rd Grade)Geometric Figures (2nd-3rd Grade)
Geometric Figures (2nd-3rd Grade)
aecpolo
 

Viewers also liked (9)

September Leaves & Lowstar 30.10.09
September Leaves & Lowstar 30.10.09September Leaves & Lowstar 30.10.09
September Leaves & Lowstar 30.10.09
 
Lecture 6 Footnotes&amp; Answers
Lecture 6  Footnotes&amp; AnswersLecture 6  Footnotes&amp; Answers
Lecture 6 Footnotes&amp; Answers
 
Lecture 2 Footnotes&Answers
Lecture 2  Footnotes&AnswersLecture 2  Footnotes&Answers
Lecture 2 Footnotes&Answers
 
Junior Boys 13.11.09
Junior Boys 13.11.09Junior Boys 13.11.09
Junior Boys 13.11.09
 
Teenage Kicks Funeral Party
Teenage Kicks Funeral PartyTeenage Kicks Funeral Party
Teenage Kicks Funeral Party
 
Miss Prism & The Girl In The Dirty Shirt
Miss Prism & The Girl In The Dirty ShirtMiss Prism & The Girl In The Dirty Shirt
Miss Prism & The Girl In The Dirty Shirt
 
Lecture 10 Answers
Lecture 10 AnswersLecture 10 Answers
Lecture 10 Answers
 
Lecture 4 Footnotes&amp;Answers
Lecture 4  Footnotes&amp;AnswersLecture 4  Footnotes&amp;Answers
Lecture 4 Footnotes&amp;Answers
 
Geometric Figures (2nd-3rd Grade)
Geometric Figures (2nd-3rd Grade)Geometric Figures (2nd-3rd Grade)
Geometric Figures (2nd-3rd Grade)
 

Similar to Lecture 7 Answers

HTML5 - One spec to rule them all
HTML5 - One spec to rule them allHTML5 - One spec to rule them all
HTML5 - One spec to rule them all
Stu King
 
XML processing with perl
XML processing with perlXML processing with perl
XML processing with perl
Joe Jiang
 
XML Training Presentation
XML Training PresentationXML Training Presentation
XML Training Presentation
Sarah Corney
 
Lecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPLecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITP
yucefmerhi
 
Web Scraper Shibuya.pm tech talk #8
Web Scraper Shibuya.pm tech talk #8Web Scraper Shibuya.pm tech talk #8
Web Scraper Shibuya.pm tech talk #8
Tatsuhiko Miyagawa
 
Html 5 a step towards semantic web
Html 5   a step towards semantic webHtml 5   a step towards semantic web
Html 5 a step towards semantic web
Sachin Khosla
 
Why RDFa?
Why RDFa?Why RDFa?
Why RDFa?
SergeyChernyshev
 
Lecture1 B Frames&Forms
Lecture1 B  Frames&FormsLecture1 B  Frames&Forms
Lecture1 B Frames&Forms
Sur College of Applied Sciences
 
Real-time Ruby for the Real-time Web
Real-time Ruby for the Real-time WebReal-time Ruby for the Real-time Web
Real-time Ruby for the Real-time Web
Ilya Grigorik
 
Intro 1 sept_14_2010
Intro 1 sept_14_2010Intro 1 sept_14_2010
Intro 1 sept_14_2010
Andrey L
 
Website Integration with QuickBase - Joshua McGinnis
Website Integration with QuickBase - Joshua McGinnisWebsite Integration with QuickBase - Joshua McGinnis
Website Integration with QuickBase - Joshua McGinnis
QuickBase, Inc.
 
Introduction to RDFa
Introduction to RDFaIntroduction to RDFa
Introduction to RDFa
SergeyChernyshev
 
Html tags
Html tagsHtml tags
Html tags
Gaurav Jaiswal
 
Introduction to Web Design
Introduction to Web DesignIntroduction to Web Design
Introduction to Web Design
webhostingguy
 
Streaming map reduce
Streaming map reduceStreaming map reduce
Streaming map reduce
danirayan
 
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter Lubbers
 
How to Create and Submit an XML SItemap
How to Create and Submit an XML SItemapHow to Create and Submit an XML SItemap
How to Create and Submit an XML SItemap
Wiideman Consulting Group
 
Html5
Html5 Html5
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
Stephen Pollard
 
An Introduction to Solr
An Introduction to SolrAn Introduction to Solr
An Introduction to Solr
tomhill
 

Similar to Lecture 7 Answers (20)

HTML5 - One spec to rule them all
HTML5 - One spec to rule them allHTML5 - One spec to rule them all
HTML5 - One spec to rule them all
 
XML processing with perl
XML processing with perlXML processing with perl
XML processing with perl
 
XML Training Presentation
XML Training PresentationXML Training Presentation
XML Training Presentation
 
Lecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPLecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITP
 
Web Scraper Shibuya.pm tech talk #8
Web Scraper Shibuya.pm tech talk #8Web Scraper Shibuya.pm tech talk #8
Web Scraper Shibuya.pm tech talk #8
 
Html 5 a step towards semantic web
Html 5   a step towards semantic webHtml 5   a step towards semantic web
Html 5 a step towards semantic web
 
Why RDFa?
Why RDFa?Why RDFa?
Why RDFa?
 
Lecture1 B Frames&Forms
Lecture1 B  Frames&FormsLecture1 B  Frames&Forms
Lecture1 B Frames&Forms
 
Real-time Ruby for the Real-time Web
Real-time Ruby for the Real-time WebReal-time Ruby for the Real-time Web
Real-time Ruby for the Real-time Web
 
Intro 1 sept_14_2010
Intro 1 sept_14_2010Intro 1 sept_14_2010
Intro 1 sept_14_2010
 
Website Integration with QuickBase - Joshua McGinnis
Website Integration with QuickBase - Joshua McGinnisWebsite Integration with QuickBase - Joshua McGinnis
Website Integration with QuickBase - Joshua McGinnis
 
Introduction to RDFa
Introduction to RDFaIntroduction to RDFa
Introduction to RDFa
 
Html tags
Html tagsHtml tags
Html tags
 
Introduction to Web Design
Introduction to Web DesignIntroduction to Web Design
Introduction to Web Design
 
Streaming map reduce
Streaming map reduceStreaming map reduce
Streaming map reduce
 
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011
 
How to Create and Submit an XML SItemap
How to Create and Submit an XML SItemapHow to Create and Submit an XML SItemap
How to Create and Submit an XML SItemap
 
Html5
Html5 Html5
Html5
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
 
An Introduction to Solr
An Introduction to SolrAn Introduction to Solr
An Introduction to Solr
 

Lecture 7 Answers

  • 1. IS4 030 - Website Design for e-Commerce By SMIEEE, SMACM, MACS E-mail: raylau@cityu.edu.hk Room: P7919 Consultation Hours: 3:30 - 5:30pm Monday Lecture Seven –JavaScript and XML
  • 2. While Loop <p>Explanation:</p> <p><b>i</b> equal to 0.</p> <p>While <b>i</b> is less than , or equal to, 5, the loop will continue to run.</p> <p><b>i</b> will increase by 1 each time the loop runs.</p> </body> </html> Question: How many number will be displayed on the Web page?
  • 3.
  • 4.
  • 5.

Editor's Notes

  1. 6 numbers form 0 to 5!
  2. 1. You don ’ t need to think of many different names; 2. Special methods for array (e.g., sorting) is available to deal with the data items;
  3. Raymond
  4. The output is 4