Parishay
01-15-2012, 07:54 AM
Please help me in making tables....I need it for my assignment. I have made some codes but unable to get proper result...
Objective: To understand JavaScript and Event handing in HTML page designing.
Requirement: You are required to design a HTML web page which can generate and display simple Mathematical table(s) with the help of JavaScript, by getting input from users. (Marks 35)
1. Create a function ValidateStartField to validate the start input field. Use onChange event in this function.
2. Create a function ValidateEndField to validate the end input field. Use onChange event in this function.
3. Create a function ValidateSizeField to validate the depth/size field. Use onChange event in this function.
4. Create a function GenerateTables and write the code to generate math tables.
5. Create a function DisplyTable and write the code to display a math table on HTML page.
6. To create HTML elements with the help of JavaScript pass HTML code to document.write( ) function as string. For example if you want to create HTML table with the help of JavaScript write
document.write( “<table border="1"><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></table>” );
7. For more details see screen shots file attached here:
Objective: To understand JavaScript and Event handing in HTML page designing.
Requirement: You are required to design a HTML web page which can generate and display simple Mathematical table(s) with the help of JavaScript, by getting input from users. (Marks 35)
1. Create a function ValidateStartField to validate the start input field. Use onChange event in this function.
2. Create a function ValidateEndField to validate the end input field. Use onChange event in this function.
3. Create a function ValidateSizeField to validate the depth/size field. Use onChange event in this function.
4. Create a function GenerateTables and write the code to generate math tables.
5. Create a function DisplyTable and write the code to display a math table on HTML page.
6. To create HTML elements with the help of JavaScript pass HTML code to document.write( ) function as string. For example if you want to create HTML table with the help of JavaScript write
document.write( “<table border="1"><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></table>” );
7. For more details see screen shots file attached here: