SlideShare a Scribd company logo
1 of 3
Download to read offline
WT Assignment III
Due date: 09 March 2017 8:00AM
Task 1:
Create a library book lost voucher form that should look like given below. (use assignment.html
for starting)
Note:
 Properly indent the code (jQuery or HTML), if there is no readability in the code you can
loose upto 20% of marks. Only Task 1 should be submitted, do task 2 for your own
practice.
 Use jQuery Cheat Sheet for selecting proper function
this is the info box … add or remove the class using jquery to get error or info affect …
Librarian Copy
Voucher no: 19030
Due Date: Date here
Member Name: ABC
Member ID: 14CS01
Member Address: Address
Member Type: Type list
Book Lost: Name of the Book
Book Author: author
Fine: 1000
Total Payable: 1000
Member Copy
Voucher no: 19030
Due Date: Date here
Member Name: ABC
Member ID: 14CS01
Member Address: Address
Member Type: Type
Book Lost: Name of the Book
Book Lost: Name of the Book
Fine: 1000
Total Payable: 1000
 On single click of the red contents there must appear a textbox for editing the contents
o Member type is a select list with items (Staff, Student, Faculty)
o For Due Date use jQuery Date Picker (see helping material for date picker at the
end)
Print
 After editing text; box must disappear and contents will be placed as simple
 Contents given in blue should automatically change
 Contents given in black are static & must not change
 Only edit will happen to Librarian copy (no edits for member copy)
 Member copy should update itself when there is a change in librarian copy
 Every field must be validated when field loose the focus
o If there is an error show in the info paragraph and change the paragraph class to
error
o Voucher no must be integer and greater than 100
o due date must not empty
o Name must be 3-15 characters
o Member ID must be like NNWW5NNN (where N is digit and W is A-Z), use
regular expression for that (see helping material for regular expression at the end)
o Member Address must be 3-20 characters
o Name of book can be 3-20 characters
o Fine amount can be 1.00-5000.00 (float)
 On click of print button
o Validate the full voucher (there is no textbox like things, you have to get HTML
contents) and if there is an error show error list in the info paragraph and change
that paragraph class to error
o If everything is correct
 Change info paragraph class to success and show wait print dialog is
opening …
 use window.print() function to show print dialog to user
 use chrome to test that and save it in PDF cool!
You have to do this using jQuery.
For date picker see www.eyecon.ro/datepicker/ OR http://jqueryui.com/datepicker/
For regular expressions see http://eloquentjavascript.net/09_regexp.html AND
https://www.tutorialspoint.com/javascript/javascript_regexp_object.htm AND
https://code.tutsplus.com/tutorials/you-dont-know-anything-about-regular-expressions-a-
complete-guide--net-7869
Task 2:
Often users want advance search in every site also there is simple search box. Provide
convenience to users that instead of opening new page for advance search just open the form
right there (on advance search click and again click on advance search form should be hidden).
Use fade in/out effects for transitions.
Search: OR Advance Search
Search: OR Advance Search
It is a div. Place some form controls here.
This effect is also used to hide menu, or drop down menus etc.

More Related Content

More from maamir farooq (20)

Ooad lab1
Ooad lab1Ooad lab1
Ooad lab1
 
Lesson 03
Lesson 03Lesson 03
Lesson 03
 
Lesson 02
Lesson 02Lesson 02
Lesson 02
 
Php client libray
Php client librayPhp client libray
Php client libray
 
Swiftmailer
SwiftmailerSwiftmailer
Swiftmailer
 
Lect15
Lect15Lect15
Lect15
 
Lec 7
Lec 7Lec 7
Lec 7
 
Lec 6
Lec 6Lec 6
Lec 6
 
Lec 5
Lec 5Lec 5
Lec 5
 
J query 1.7 cheat sheet
J query 1.7 cheat sheetJ query 1.7 cheat sheet
J query 1.7 cheat sheet
 
Java script summary
Java script summaryJava script summary
Java script summary
 
Lec 3
Lec 3Lec 3
Lec 3
 
Lec 2
Lec 2Lec 2
Lec 2
 
Lec 1
Lec 1Lec 1
Lec 1
 
Css summary
Css summaryCss summary
Css summary
 
Manual of image processing lab
Manual of image processing labManual of image processing lab
Manual of image processing lab
 
Session management
Session managementSession management
Session management
 
Data management
Data managementData management
Data management
 
Content provider
Content providerContent provider
Content provider
 
Android sq lite database tutorial
Android sq lite database tutorialAndroid sq lite database tutorial
Android sq lite database tutorial
 

Recently uploaded

CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 

Assignment

  • 1. WT Assignment III Due date: 09 March 2017 8:00AM Task 1: Create a library book lost voucher form that should look like given below. (use assignment.html for starting) Note:  Properly indent the code (jQuery or HTML), if there is no readability in the code you can loose upto 20% of marks. Only Task 1 should be submitted, do task 2 for your own practice.  Use jQuery Cheat Sheet for selecting proper function this is the info box … add or remove the class using jquery to get error or info affect … Librarian Copy Voucher no: 19030 Due Date: Date here Member Name: ABC Member ID: 14CS01 Member Address: Address Member Type: Type list Book Lost: Name of the Book Book Author: author Fine: 1000 Total Payable: 1000 Member Copy Voucher no: 19030 Due Date: Date here Member Name: ABC Member ID: 14CS01 Member Address: Address Member Type: Type Book Lost: Name of the Book Book Lost: Name of the Book Fine: 1000 Total Payable: 1000  On single click of the red contents there must appear a textbox for editing the contents o Member type is a select list with items (Staff, Student, Faculty) o For Due Date use jQuery Date Picker (see helping material for date picker at the end) Print
  • 2.  After editing text; box must disappear and contents will be placed as simple  Contents given in blue should automatically change  Contents given in black are static & must not change  Only edit will happen to Librarian copy (no edits for member copy)  Member copy should update itself when there is a change in librarian copy  Every field must be validated when field loose the focus o If there is an error show in the info paragraph and change the paragraph class to error o Voucher no must be integer and greater than 100 o due date must not empty o Name must be 3-15 characters o Member ID must be like NNWW5NNN (where N is digit and W is A-Z), use regular expression for that (see helping material for regular expression at the end) o Member Address must be 3-20 characters o Name of book can be 3-20 characters o Fine amount can be 1.00-5000.00 (float)  On click of print button o Validate the full voucher (there is no textbox like things, you have to get HTML contents) and if there is an error show error list in the info paragraph and change that paragraph class to error o If everything is correct  Change info paragraph class to success and show wait print dialog is opening …  use window.print() function to show print dialog to user  use chrome to test that and save it in PDF cool! You have to do this using jQuery. For date picker see www.eyecon.ro/datepicker/ OR http://jqueryui.com/datepicker/ For regular expressions see http://eloquentjavascript.net/09_regexp.html AND https://www.tutorialspoint.com/javascript/javascript_regexp_object.htm AND https://code.tutsplus.com/tutorials/you-dont-know-anything-about-regular-expressions-a- complete-guide--net-7869
  • 3. Task 2: Often users want advance search in every site also there is simple search box. Provide convenience to users that instead of opening new page for advance search just open the form right there (on advance search click and again click on advance search form should be hidden). Use fade in/out effects for transitions. Search: OR Advance Search Search: OR Advance Search It is a div. Place some form controls here. This effect is also used to hide menu, or drop down menus etc.