Objective Developing HTML page?
-
Objective This assignment has been designed to give students a hands-on experience of: Developing HTML page Validation of web page using JavaScript Assignment It is required to build a web page using interactive form with the following specifications as shown in the diagram: Here are the details: The page background is Grey. First line is written in H3 tag. Then there is a table with border size = 6 and it is center aligned. The VU_ID field should not allow entering more than 11 characters. You have to provide your City name as the default value in City field. Now if “Reset All” button is clicked, all the fields must be reset to their default values. If “Verify” button is pressed, it should check the following things: a. If the text entered in VU_ID field is not your VU_ID, then it must display a message. b. If Name and City fields are empty, then it must display a message. After displaying the message, focus must be given to that field where the required information is missing. You have to make a function to perform all these verifications (discussed in point ‘a’ and ‘b’ above) and then simply call this function when Verify button is clicked. Once all the required information is verified, it must open VU home page (http://www.vu.edu.pk) in new window Note: You are required to submit the HTML file (with .html extension) for this assignment. No other file will be accepted. Demonstration: For example my VU_ID is BC080400001, so I will build the web page like this: If I enter anything in the VU_ID field except my VU_ID (BC080400001 or bc080400001), and click Verify button, it must display a message, like this (after displaying this message, focus must be returned to the VU_ID field): If I don’t enter anything in Name field and click Verify button, then it must display this message (after displaying this message, focus must be returned to the Name field): Same is the case with the City field. Once all the required information is verified, it must open VU home page (http://www.vu.edu.pk) in new window, like this: Additional information: For security reasons, some browsers display an information bar, if you try to open the web page in which you have used JavaScript. Simply click on this information bar and select Allow Blocked Content... Then Click “Yes” button to confirm.
-
Answer:
Enjoy this jano if u get it on time waisay kon say campus main ho me Adeel Zia BC020200693 kabhi zindagi main hua tao milain gay <html> <head> <title>Assignment # 2</title> <script language="JavaScript" type="text/javascript"> function checkform ( form ) { if (form.vu_id.value == "") { alert( "Please enter your ID." ); form.vu_id.focus(); return false ; } if (form.vu_id.value != "BC020200693") { alert( "Your Virtual Identity is not correct." ); form.vu_id.focus(); return false ; } if (form.name.value == "") { alert( "Please enter your Name." ); form.name.focus(); return false ; } if (form.city.value == "") { alert( "Please enter your City." ); form.city.focus(); return false ; } return true ; } </script> </head> <body bgcolor="#CCCCCC" text="#000000"> <H3>Assignment # 2: </H3> <form name="form" method="post" action="http://www.vu.edu.pk" onsubmit="return checkform(this);"> <table border="6" align="center"> <tr> <td>VU_ID:</td> <td> <input type="text" name="vu_id" maxlength="11"> </td> </tr> <tr> <td>Name:</td> <td> <input type="text" name="name"> </td> </tr> <tr> <td>CITY:</td> <td> <input type="text" name="city" value="islamabad"> </td> </tr> </table> <p align="center"> <input type="submit" name="Submit" value="Submit"> <input type="reset" name="Reset2" value="Reset"> </p> </form> </body> </html>
usman (shani at Yahoo! Answers Visit the source
Related Q & A:
- How to dispaly HTML page in Silverlight application?Best solution by devproconnections.com
- How to debug an HTML page on mobile?Best solution by msdn.microsoft.com
- How to hide the original page in HTML?Best solution by Stack Overflow
- How can we reload html page without blinking?Best solution by Stack Overflow
- How do you go about developing an application?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.