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

Weitere ähnliche Inhalte

Andere mochten auch

September Leaves & Lowstar 30.10.09
September Leaves & Lowstar 30.10.09September Leaves & Lowstar 30.10.09
September Leaves & Lowstar 30.10.09Kavantgarde
 
Lecture 6 Footnotes&amp; Answers
Lecture 6  Footnotes&amp; AnswersLecture 6  Footnotes&amp; Answers
Lecture 6 Footnotes&amp; Answersis4030.ray
 
Lecture 2 Footnotes&Answers
Lecture 2  Footnotes&AnswersLecture 2  Footnotes&Answers
Lecture 2 Footnotes&Answersis4030.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 ShirtKavantgarde
 
Lecture 10 Answers
Lecture 10 AnswersLecture 10 Answers
Lecture 10 Answersis4030.ray
 
Lecture 4 Footnotes&amp;Answers
Lecture 4  Footnotes&amp;AnswersLecture 4  Footnotes&amp;Answers
Lecture 4 Footnotes&amp;Answersis4030.ray
 
Geometric Figures (2nd-3rd Grade)
Geometric Figures (2nd-3rd Grade)Geometric Figures (2nd-3rd Grade)
Geometric Figures (2nd-3rd Grade)aecpolo
 

Andere mochten auch (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)
 

Ähnlich wie 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 allStu King
 
XML processing with perl
XML processing with perlXML processing with perl
XML processing with perlJoe Jiang
 
XML Training Presentation
XML Training PresentationXML Training Presentation
XML Training PresentationSarah Corney
 
Lecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPLecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPyucefmerhi
 
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 #8Tatsuhiko 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 webSachin Khosla
 
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 WebIlya Grigorik
 
Intro 1 sept_14_2010
Intro 1 sept_14_2010Intro 1 sept_14_2010
Intro 1 sept_14_2010Andrey L
 
Website Integration with QuickBase - Joshua McGinnis
Website Integration with QuickBase - Joshua McGinnisWebsite Integration with QuickBase - Joshua McGinnis
Website Integration with QuickBase - Joshua McGinnisQuickBase, Inc.
 
Introduction to Web Design
Introduction to Web DesignIntroduction to Web Design
Introduction to Web Designwebhostingguy
 
Streaming map reduce
Streaming map reduceStreaming map reduce
Streaming map reducedanirayan
 
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-2011Peter Lubbers
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web designStephen Pollard
 
An Introduction to Solr
An Introduction to SolrAn Introduction to Solr
An Introduction to Solrtomhill
 

Ähnlich wie 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.

Hinweis der Redaktion

  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