SlideShare a Scribd company logo
What are frames? How do they work? What’s good? What’s bad? Frames and forms
More than html Problems with HTML Repetitive entry of navigation Maintaining menus Selecting options more than clicking User inputs Getting information Navigation Frames User input forms
Frames Problem: You want the same navigation on every page. You want to scroll content separately. Solution: Create multiple areas, one navigation and another for content. Frame Layout – Rows and Columns  Instead of <body> uses <frameset> Little pages within the browser that know about each other
Frame basics Columns and Rows <frameset cols=&quot;33%,50%,17%&quot; rows=&quot;*,200&quot;> <frame src=&quot;frame1.html&quot;> <frame src=&quot;frame2.html&quot;> <frame src=&quot;frame3.gif&quot;> <frame name=&quot;area4&quot; src=&quot;frame4.html&quot;> <frame name=&quot;area5&quot; src=&quot;frame5.html&quot;> <frame src=&quot;frame6.html&quot;> </frameset> 1 2 3 4 5 6 200 33 17 *
Frame Targets <frameset cols=&quot;33%,50%,17%&quot; rows=&quot;*,200&quot;> ... <frame  name=&quot;area4&quot;  src=&quot;frame4.html&quot;> <frame name=&quot;area5&quot; src=&quot;frame5.html&quot;> </frameset> <P>Changing Area 4 to  <ul> <li><A href=&quot;Great.html&quot;  target=&quot;area4&quot; >Great</A>, or back to</li> <li><A href=&quot;frame4.html&quot;  target=&quot;area4&quot; >Area 4</A></li> </ul> ... </P> frameset.html frame6.html
Frame Targets Names and Targets Name a frame and use the name as a target Content and navigation separate Reserved Names _blank Always open a new window _self Open in current frame (default) _parent Open one level up _top Open in current window
Frame Appearance Managing look Border 3D border default Other border types Resizing Move the frames around Scrolling Scrollbar on by default Remove scrollbars for control Margins Just like with Tables you can insert whitespace marginwidth=“20”
Nested Frames Frames can be nested  This allows complex layouts Also can occur because the page displayed has frames in it <frameset cols=&quot;33%,50%,17%&quot; rows=&quot;*,200&quot;> <frame src=''frame1.html''> <frameset cols=''*,* '' > <frame s name=&quot;area2-1&quot; src=&quot;frame2-1.html&quot;> <frame s name=&quot;area2-2&quot; src=&quot;frame2-2.html&quot;> </frameset> <frame name=&quot;area3&quot; src=&quot;frame3.html&quot;> <frame name=&quot;area4&quot; src=&quot;frame4.html&quot;> <frame name=&quot;area5&quot; src=&quot;frame5.html&quot;> <frame name=&quot;area6&quot; src=&quot;frame6.html&quot;> </frameset>
Frames - Good and Bad Frames are great for some things Allow separate navigation area Allow other site display – Google Great for sites were people need multiple windows Frames are bad being deprecated. Frames were popular before search engines! Search engines allow entry to any part of a site Back button does not work Navigation broken
When to use frames Use frame sparingly Do not use in pages which will be widely accessed and are quick in/quick out. Avoid frames for publicly available pages Intranets OK as every comes in at the same place. Frames are good for reference pages, where a static menu is important. There are alternatives  php, asp, server-side includes, some javascript tricks) but these are all more sophisticated.
User Input Problem: Html static, only provides what you have written User limited to clicking as input Solution Add tools for uses to do more than click Get the server to do more work Get the client to do more work Forms Get – add to the end of the URL Post – send a block of additional text like the header Mailto – write an email with the data you selected
User Input processing server client Get http://www.google.co.nz/search?hl=en&q=comp112&btnG=Google+Search&meta= hl=en& q=comp112& btnG=Google+Search& meta=
User Input server client Result <html> <head> <meta HTTP-EQUIV=&quot;content-type&quot; CONTENT=&quot;text/html; charset=UTF-8&quot;> <title>comp112 - Google Search</title> <style><!--
Server-Side Processing Deal with more than just “get”. Advantages Current/Dynamic Maintainability Delivery of ordinary HTML No redundant storage Disadvantages Increases server load Security issues May be impossible for clients to get identical information later
Client-Side processing Content is processed by the client. Example: Javascript, Flash. Advantages No extra load on the server Instant responsiveness (after initial download) Disadvantages More data sent Makes the internals of your site transparent or able to be saved locally Requires browser support
Forms Two part The visible part shown to the user The stuff behind the scenes, the submission and the processing by the server Client side Display options Javascript to check valid options Server side Examine request Generate information requested Send html file to the browser.
Example <form  id=&quot;papernav&quot; method= &quot; get &quot; action=&quot;http://www.cs.otago.ac.nz/cs-bin/procind&quot;> <p>Select a paper from the menu to go straight  to that course's web page: <select name=&quot;papercode&quot; size=1> <option>---</option>   <option>COMP103</option> <option>COMP112</option> … <option>COSC470</option> <option>TELE402</option> </select> <input type=&quot;submit&quot; value=&quot;Go&quot;> </p> </form>
Types of input Example < form  action=&quot;http://localhost/&quot;  method=&quot;get&quot; > <P> First name:  <input type=&quot;text&quot; name=&quot;firstname&quot;> <BR> Last name:  <input type=&quot;text&quot; name=&quot;lastname&quot;> <BR> email: < input type=&quot;text&quot; name=&quot;email&quot;> <BR> <input type=&quot;radio&quot; name=&quot;sex&quot; value=&quot;Male&quot;>  Male<BR> <input type=&quot;radio&quot; name=&quot;sex&quot; value=&quot;Female&quot;> Female </p> <p> <legend>Browsers You have used</legend><br>   <input name=&quot;check1&quot;  type=&quot;checkbox&quot;     value=&quot;Safari&quot; > Safari   <input name=&quot;check1&quot;  type=&quot;checkbox&quot;    value=&quot;Mozilla&quot; > Mozilla   <input name=&quot;check1&quot;  type=&quot;checkbox&quot;    value=&quot;IE&quot; > IE   <input name=&quot;check1&quot;  type=&quot;checkbox&quot;    value=&quot;Lynx&quot; > Lynx<br> <input type=&quot;submit&quot; value=&quot;Send&quot;> <input type=&quot;reset&quot;> </P> </form>
Types of input Types “ radio” - Select only  ONE option “ checkbox” - As many as you like “ text” - used for general text input “ select” - Menus with options “ input” - Select a file Special buttons “ submit” go to the new page “ reset” remove all the data
Get vs Post Get Bookmark links Easy to see what is happening Simple to process and track Post Better for large amounts of information Not displayed so a little more secure Back button warnings
Processing The request needs to be processed Server processing CGI Common Gateway Interface Read the URL or the post information Process the information Send back an HTML page  Simple processing Enter a number – is it in the right range Have you entered all the data Client side  processing Javascript
Summary Frames  Multiple pages in one window Targets allow menu/content split Slowly being removed Server side vs Client side Processing When and where Forms Elements Radio buttons, check boxes Method: get, post Action: which page
Ad

More Related Content

What's hot (20)

Web design 2 - Basic HTML 2010
Web design 2 - Basic HTML 2010Web design 2 - Basic HTML 2010
Web design 2 - Basic HTML 2010
Matthew Mobbs
 
Code This, Not That: 10 Do's and Don'ts For Learning HTML
Code This, Not That: 10 Do's and Don'ts For Learning HTMLCode This, Not That: 10 Do's and Don'ts For Learning HTML
Code This, Not That: 10 Do's and Don'ts For Learning HTML
HubSpot
 
Beginners guide-to-coding-updated
Beginners guide-to-coding-updatedBeginners guide-to-coding-updated
Beginners guide-to-coding-updated
SaidLezzar
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
Css Founder
 
Day1
Day1Day1
Day1
Avanish Sanchi
 
Web 2.0 = Accessibility 2.0?
Web 2.0 = Accessibility 2.0?Web 2.0 = Accessibility 2.0?
Web 2.0 = Accessibility 2.0?
Jared Smith
 
WEB DESIGNING MODULE
WEB DESIGNING MODULEWEB DESIGNING MODULE
WEB DESIGNING MODULE
mar jun
 
CSS3 and a brief introduction to Google Maps API v3
CSS3 and a brief introduction to Google Maps API v3 CSS3 and a brief introduction to Google Maps API v3
CSS3 and a brief introduction to Google Maps API v3
Jeffrey Barke
 
Html
HtmlHtml
Html
G.C Reddy
 
Blogging Is More Than An Online Diary
Blogging Is  More Than An  Online  DiaryBlogging Is  More Than An  Online  Diary
Blogging Is More Than An Online Diary
hyacinthus
 
Html 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally ChohanHtml 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally Chohan
ballychohanuk
 
Html basics
Html basicsHtml basics
Html basics
Christoph Trappe
 
HTML email best practices
HTML email best practicesHTML email best practices
HTML email best practices
Jeffrey Barke
 
Ruining The User Experience (The Rich Web Experience '07)
Ruining The User Experience (The Rich Web Experience '07)Ruining The User Experience (The Rich Web Experience '07)
Ruining The User Experience (The Rich Web Experience '07)
Aaron Gustafson
 
Introduction to Web Technology
Introduction to Web TechnologyIntroduction to Web Technology
Introduction to Web Technology
Rob Bertholf
 
Ruining The User Experience (The Ajax Experience Boston 2007)
Ruining The User Experience (The Ajax Experience Boston 2007)Ruining The User Experience (The Ajax Experience Boston 2007)
Ruining The User Experience (The Ajax Experience Boston 2007)
Aaron Gustafson
 
Introduction to html fundamental concepts
Introduction to html fundamental conceptsIntroduction to html fundamental concepts
Introduction to html fundamental concepts
Tsebo Shaun Masilo
 
Intr To Html & Xhtml
Intr To Html & XhtmlIntr To Html & Xhtml
Intr To Html & Xhtml
Digital Insights - Digital Marketing Agency
 
Trello - University of St Andrews web team
Trello - University of St Andrews web teamTrello - University of St Andrews web team
Trello - University of St Andrews web team
Gareth Saunders
 
Rey Bango - HTML5: polyfills and shims
Rey Bango -  HTML5: polyfills and shimsRey Bango -  HTML5: polyfills and shims
Rey Bango - HTML5: polyfills and shims
StarTech Conference
 
Web design 2 - Basic HTML 2010
Web design 2 - Basic HTML 2010Web design 2 - Basic HTML 2010
Web design 2 - Basic HTML 2010
Matthew Mobbs
 
Code This, Not That: 10 Do's and Don'ts For Learning HTML
Code This, Not That: 10 Do's and Don'ts For Learning HTMLCode This, Not That: 10 Do's and Don'ts For Learning HTML
Code This, Not That: 10 Do's and Don'ts For Learning HTML
HubSpot
 
Beginners guide-to-coding-updated
Beginners guide-to-coding-updatedBeginners guide-to-coding-updated
Beginners guide-to-coding-updated
SaidLezzar
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
Css Founder
 
Web 2.0 = Accessibility 2.0?
Web 2.0 = Accessibility 2.0?Web 2.0 = Accessibility 2.0?
Web 2.0 = Accessibility 2.0?
Jared Smith
 
WEB DESIGNING MODULE
WEB DESIGNING MODULEWEB DESIGNING MODULE
WEB DESIGNING MODULE
mar jun
 
CSS3 and a brief introduction to Google Maps API v3
CSS3 and a brief introduction to Google Maps API v3 CSS3 and a brief introduction to Google Maps API v3
CSS3 and a brief introduction to Google Maps API v3
Jeffrey Barke
 
Blogging Is More Than An Online Diary
Blogging Is  More Than An  Online  DiaryBlogging Is  More Than An  Online  Diary
Blogging Is More Than An Online Diary
hyacinthus
 
Html 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally ChohanHtml 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally Chohan
ballychohanuk
 
HTML email best practices
HTML email best practicesHTML email best practices
HTML email best practices
Jeffrey Barke
 
Ruining The User Experience (The Rich Web Experience '07)
Ruining The User Experience (The Rich Web Experience '07)Ruining The User Experience (The Rich Web Experience '07)
Ruining The User Experience (The Rich Web Experience '07)
Aaron Gustafson
 
Introduction to Web Technology
Introduction to Web TechnologyIntroduction to Web Technology
Introduction to Web Technology
Rob Bertholf
 
Ruining The User Experience (The Ajax Experience Boston 2007)
Ruining The User Experience (The Ajax Experience Boston 2007)Ruining The User Experience (The Ajax Experience Boston 2007)
Ruining The User Experience (The Ajax Experience Boston 2007)
Aaron Gustafson
 
Introduction to html fundamental concepts
Introduction to html fundamental conceptsIntroduction to html fundamental concepts
Introduction to html fundamental concepts
Tsebo Shaun Masilo
 
Trello - University of St Andrews web team
Trello - University of St Andrews web teamTrello - University of St Andrews web team
Trello - University of St Andrews web team
Gareth Saunders
 
Rey Bango - HTML5: polyfills and shims
Rey Bango -  HTML5: polyfills and shimsRey Bango -  HTML5: polyfills and shims
Rey Bango - HTML5: polyfills and shims
StarTech Conference
 

Viewers also liked (6)

Problem frames
Problem framesProblem frames
Problem frames
Joseph Raj
 
Lecture11 A Image
Lecture11 A ImageLecture11 A Image
Lecture11 A Image
Sur College of Applied Sciences
 
Lecture 10 Image Format
Lecture 10  Image FormatLecture 10  Image Format
Lecture 10 Image Format
Sur College of Applied Sciences
 
Lecture 11 B Security
Lecture 11 B SecurityLecture 11 B Security
Lecture 11 B Security
Sur College of Applied Sciences
 
Bending
BendingBending
Bending
Amar Gohel
 
3.1 structure analysis and design note.
3.1 structure analysis and design note.3.1 structure analysis and design note.
3.1 structure analysis and design note.
Mohotasimur Anik
 
Ad

Similar to Lecture1 B Frames&Forms (20)

HTML5 Overview
HTML5 OverviewHTML5 Overview
HTML5 Overview
reybango
 
KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7
phuphax
 
HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09
pemaquid
 
What I brought back from Austin
What I brought back from AustinWhat I brought back from Austin
What I brought back from Austin
Lisa Adkins
 
Flex For Flash Developers Ff 2006 Final
Flex For Flash Developers Ff 2006 FinalFlex For Flash Developers Ff 2006 Final
Flex For Flash Developers Ff 2006 Final
ematrix
 
Intro Html
Intro HtmlIntro Html
Intro Html
Chidanand Byahatti
 
Ajax ons2
Ajax ons2Ajax ons2
Ajax ons2
Chad Davis
 
Quick Referance to WML
Quick Referance to WMLQuick Referance to WML
Quick Referance to WML
Nitin Saswade
 
JWU Guest Talk: JavaScript and AJAX
JWU Guest Talk: JavaScript and AJAXJWU Guest Talk: JavaScript and AJAX
JWU Guest Talk: JavaScript and AJAX
Hilary Mason
 
Lecture 6 - Comm Lab: Web @ ITP
Lecture 6 - Comm Lab: Web @ ITPLecture 6 - Comm Lab: Web @ ITP
Lecture 6 - Comm Lab: Web @ ITP
yucefmerhi
 
Html5
Html5Html5
Html5
anubavam-techkt
 
HTML5 with examples
HTML5 with examplesHTML5 with examples
HTML5 with examples
gopivthmk
 
Living in the Cloud: Hosting Data & Apps Using the Google Infrastructure
Living in the Cloud: Hosting Data & Apps Using the Google InfrastructureLiving in the Cloud: Hosting Data & Apps Using the Google Infrastructure
Living in the Cloud: Hosting Data & Apps Using the Google Infrastructure
Pamela Fox
 
Living in the Cloud: Hosting Data & Apps Using the Google Infrastructure
Living in the Cloud: Hosting Data & Apps Using the Google InfrastructureLiving in the Cloud: Hosting Data & Apps Using the Google Infrastructure
Living in the Cloud: Hosting Data & Apps Using the Google Infrastructure
guest517f2f
 
YL Intro html
YL Intro htmlYL Intro html
YL Intro html
dilom1986
 
Mobile web with jQuery Mobile
Mobile web with jQuery MobileMobile web with jQuery Mobile
Mobile web with jQuery Mobile
Andreas Bjärlestam
 
Grddl In A Nutshell V1
Grddl In A Nutshell V1Grddl In A Nutshell V1
Grddl In A Nutshell V1
Fabien Gandon
 
Html5
Html5Html5
Html5
dotNETUserGroupDnipro
 
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
Chris Toohey
 
DevDays09 Internet Explorer 8
DevDays09 Internet Explorer 8DevDays09 Internet Explorer 8
DevDays09 Internet Explorer 8
Konstantinos Pantos
 
HTML5 Overview
HTML5 OverviewHTML5 Overview
HTML5 Overview
reybango
 
KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7
phuphax
 
HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09
pemaquid
 
What I brought back from Austin
What I brought back from AustinWhat I brought back from Austin
What I brought back from Austin
Lisa Adkins
 
Flex For Flash Developers Ff 2006 Final
Flex For Flash Developers Ff 2006 FinalFlex For Flash Developers Ff 2006 Final
Flex For Flash Developers Ff 2006 Final
ematrix
 
Quick Referance to WML
Quick Referance to WMLQuick Referance to WML
Quick Referance to WML
Nitin Saswade
 
JWU Guest Talk: JavaScript and AJAX
JWU Guest Talk: JavaScript and AJAXJWU Guest Talk: JavaScript and AJAX
JWU Guest Talk: JavaScript and AJAX
Hilary Mason
 
Lecture 6 - Comm Lab: Web @ ITP
Lecture 6 - Comm Lab: Web @ ITPLecture 6 - Comm Lab: Web @ ITP
Lecture 6 - Comm Lab: Web @ ITP
yucefmerhi
 
HTML5 with examples
HTML5 with examplesHTML5 with examples
HTML5 with examples
gopivthmk
 
Living in the Cloud: Hosting Data & Apps Using the Google Infrastructure
Living in the Cloud: Hosting Data & Apps Using the Google InfrastructureLiving in the Cloud: Hosting Data & Apps Using the Google Infrastructure
Living in the Cloud: Hosting Data & Apps Using the Google Infrastructure
Pamela Fox
 
Living in the Cloud: Hosting Data & Apps Using the Google Infrastructure
Living in the Cloud: Hosting Data & Apps Using the Google InfrastructureLiving in the Cloud: Hosting Data & Apps Using the Google Infrastructure
Living in the Cloud: Hosting Data & Apps Using the Google Infrastructure
guest517f2f
 
YL Intro html
YL Intro htmlYL Intro html
YL Intro html
dilom1986
 
Grddl In A Nutshell V1
Grddl In A Nutshell V1Grddl In A Nutshell V1
Grddl In A Nutshell V1
Fabien Gandon
 
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
Chris Toohey
 
Ad

More from Sur College of Applied Sciences (6)

Lecture 8 Video
Lecture 8 VideoLecture 8 Video
Lecture 8 Video
Sur College of Applied Sciences
 
Lecture 5 XML
Lecture 5  XMLLecture 5  XML
Lecture 5 XML
Sur College of Applied Sciences
 
Lecture2 CSS 3
Lecture2   CSS 3Lecture2   CSS 3
Lecture2 CSS 3
Sur College of Applied Sciences
 
Lecture2 CSS1
Lecture2  CSS1Lecture2  CSS1
Lecture2 CSS1
Sur College of Applied Sciences
 
Navigation1 A
Navigation1 ANavigation1 A
Navigation1 A
Sur College of Applied Sciences
 
Lecture 3 Javascript1
Lecture 3  Javascript1Lecture 3  Javascript1
Lecture 3 Javascript1
Sur College of Applied Sciences
 

Recently uploaded (20)

Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM & Mia eStudios
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon DolabaniHistory Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
fruinkamel7m
 
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
Dr. Nasir Mustafa
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)
jemille6
 
puzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tensepuzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tense
OlgaLeonorTorresSnch
 
The History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptxThe History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
Drugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdfDrugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdf
crewot855
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
Cultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptxCultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptx
UmeshTimilsina1
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM & Mia eStudios
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon DolabaniHistory Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
History Of The Monastery Of Mor Gabriel Philoxenos Yuhanon Dolabani
fruinkamel7m
 
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
Dr. Nasir Mustafa
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
The role of wall art in interior designing
The role of wall art in interior designingThe role of wall art in interior designing
The role of wall art in interior designing
meghaark2110
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
Ajanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of HistoryAjanta Paintings: Study as a Source of History
Ajanta Paintings: Study as a Source of History
Virag Sontakke
 
What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)
jemille6
 
puzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tensepuzzle Irregular Verbs- Simple Past Tense
puzzle Irregular Verbs- Simple Past Tense
OlgaLeonorTorresSnch
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
Drugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdfDrugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdf
crewot855
 
Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...Classification of mental disorder in 5th semester bsc. nursing and also used ...
Classification of mental disorder in 5th semester bsc. nursing and also used ...
parmarjuli1412
 
Cultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptxCultivation Practice of Onion in Nepal.pptx
Cultivation Practice of Onion in Nepal.pptx
UmeshTimilsina1
 

Lecture1 B Frames&Forms

  • 1. What are frames? How do they work? What’s good? What’s bad? Frames and forms
  • 2. More than html Problems with HTML Repetitive entry of navigation Maintaining menus Selecting options more than clicking User inputs Getting information Navigation Frames User input forms
  • 3. Frames Problem: You want the same navigation on every page. You want to scroll content separately. Solution: Create multiple areas, one navigation and another for content. Frame Layout – Rows and Columns Instead of <body> uses <frameset> Little pages within the browser that know about each other
  • 4. Frame basics Columns and Rows <frameset cols=&quot;33%,50%,17%&quot; rows=&quot;*,200&quot;> <frame src=&quot;frame1.html&quot;> <frame src=&quot;frame2.html&quot;> <frame src=&quot;frame3.gif&quot;> <frame name=&quot;area4&quot; src=&quot;frame4.html&quot;> <frame name=&quot;area5&quot; src=&quot;frame5.html&quot;> <frame src=&quot;frame6.html&quot;> </frameset> 1 2 3 4 5 6 200 33 17 *
  • 5. Frame Targets <frameset cols=&quot;33%,50%,17%&quot; rows=&quot;*,200&quot;> ... <frame name=&quot;area4&quot; src=&quot;frame4.html&quot;> <frame name=&quot;area5&quot; src=&quot;frame5.html&quot;> </frameset> <P>Changing Area 4 to <ul> <li><A href=&quot;Great.html&quot; target=&quot;area4&quot; >Great</A>, or back to</li> <li><A href=&quot;frame4.html&quot; target=&quot;area4&quot; >Area 4</A></li> </ul> ... </P> frameset.html frame6.html
  • 6. Frame Targets Names and Targets Name a frame and use the name as a target Content and navigation separate Reserved Names _blank Always open a new window _self Open in current frame (default) _parent Open one level up _top Open in current window
  • 7. Frame Appearance Managing look Border 3D border default Other border types Resizing Move the frames around Scrolling Scrollbar on by default Remove scrollbars for control Margins Just like with Tables you can insert whitespace marginwidth=“20”
  • 8. Nested Frames Frames can be nested This allows complex layouts Also can occur because the page displayed has frames in it <frameset cols=&quot;33%,50%,17%&quot; rows=&quot;*,200&quot;> <frame src=''frame1.html''> <frameset cols=''*,* '' > <frame s name=&quot;area2-1&quot; src=&quot;frame2-1.html&quot;> <frame s name=&quot;area2-2&quot; src=&quot;frame2-2.html&quot;> </frameset> <frame name=&quot;area3&quot; src=&quot;frame3.html&quot;> <frame name=&quot;area4&quot; src=&quot;frame4.html&quot;> <frame name=&quot;area5&quot; src=&quot;frame5.html&quot;> <frame name=&quot;area6&quot; src=&quot;frame6.html&quot;> </frameset>
  • 9. Frames - Good and Bad Frames are great for some things Allow separate navigation area Allow other site display – Google Great for sites were people need multiple windows Frames are bad being deprecated. Frames were popular before search engines! Search engines allow entry to any part of a site Back button does not work Navigation broken
  • 10. When to use frames Use frame sparingly Do not use in pages which will be widely accessed and are quick in/quick out. Avoid frames for publicly available pages Intranets OK as every comes in at the same place. Frames are good for reference pages, where a static menu is important. There are alternatives php, asp, server-side includes, some javascript tricks) but these are all more sophisticated.
  • 11. User Input Problem: Html static, only provides what you have written User limited to clicking as input Solution Add tools for uses to do more than click Get the server to do more work Get the client to do more work Forms Get – add to the end of the URL Post – send a block of additional text like the header Mailto – write an email with the data you selected
  • 12. User Input processing server client Get http://www.google.co.nz/search?hl=en&q=comp112&btnG=Google+Search&meta= hl=en& q=comp112& btnG=Google+Search& meta=
  • 13. User Input server client Result <html> <head> <meta HTTP-EQUIV=&quot;content-type&quot; CONTENT=&quot;text/html; charset=UTF-8&quot;> <title>comp112 - Google Search</title> <style><!--
  • 14. Server-Side Processing Deal with more than just “get”. Advantages Current/Dynamic Maintainability Delivery of ordinary HTML No redundant storage Disadvantages Increases server load Security issues May be impossible for clients to get identical information later
  • 15. Client-Side processing Content is processed by the client. Example: Javascript, Flash. Advantages No extra load on the server Instant responsiveness (after initial download) Disadvantages More data sent Makes the internals of your site transparent or able to be saved locally Requires browser support
  • 16. Forms Two part The visible part shown to the user The stuff behind the scenes, the submission and the processing by the server Client side Display options Javascript to check valid options Server side Examine request Generate information requested Send html file to the browser.
  • 17. Example <form id=&quot;papernav&quot; method= &quot; get &quot; action=&quot;http://www.cs.otago.ac.nz/cs-bin/procind&quot;> <p>Select a paper from the menu to go straight to that course's web page: <select name=&quot;papercode&quot; size=1> <option>---</option> <option>COMP103</option> <option>COMP112</option> … <option>COSC470</option> <option>TELE402</option> </select> <input type=&quot;submit&quot; value=&quot;Go&quot;> </p> </form>
  • 18. Types of input Example < form action=&quot;http://localhost/&quot; method=&quot;get&quot; > <P> First name: <input type=&quot;text&quot; name=&quot;firstname&quot;> <BR> Last name: <input type=&quot;text&quot; name=&quot;lastname&quot;> <BR> email: < input type=&quot;text&quot; name=&quot;email&quot;> <BR> <input type=&quot;radio&quot; name=&quot;sex&quot; value=&quot;Male&quot;> Male<BR> <input type=&quot;radio&quot; name=&quot;sex&quot; value=&quot;Female&quot;> Female </p> <p> <legend>Browsers You have used</legend><br> <input name=&quot;check1&quot; type=&quot;checkbox&quot; value=&quot;Safari&quot; > Safari <input name=&quot;check1&quot; type=&quot;checkbox&quot; value=&quot;Mozilla&quot; > Mozilla <input name=&quot;check1&quot; type=&quot;checkbox&quot; value=&quot;IE&quot; > IE <input name=&quot;check1&quot; type=&quot;checkbox&quot; value=&quot;Lynx&quot; > Lynx<br> <input type=&quot;submit&quot; value=&quot;Send&quot;> <input type=&quot;reset&quot;> </P> </form>
  • 19. Types of input Types “ radio” - Select only ONE option “ checkbox” - As many as you like “ text” - used for general text input “ select” - Menus with options “ input” - Select a file Special buttons “ submit” go to the new page “ reset” remove all the data
  • 20. Get vs Post Get Bookmark links Easy to see what is happening Simple to process and track Post Better for large amounts of information Not displayed so a little more secure Back button warnings
  • 21. Processing The request needs to be processed Server processing CGI Common Gateway Interface Read the URL or the post information Process the information Send back an HTML page Simple processing Enter a number – is it in the right range Have you entered all the data Client side processing Javascript
  • 22. Summary Frames Multiple pages in one window Targets allow menu/content split Slowly being removed Server side vs Client side Processing When and where Forms Elements Radio buttons, check boxes Method: get, post Action: which page
  翻译: