Question: 1. < html> count{ var i = 0; i <1000000; i ++{ document.getElementById dinnerHTML = + i; } } 2. Rewrite the count function shown

1. < html>

<>

<>

count{

var i = 0; i <1000000; i ++{

document.getElementById dinnerHTML = + i; }

}

2. Rewrite the count function shown above using the function call-back mechanism and the JavaScript setInterval() function to get the counting to display on the screen every 1 second.

The setInterval() function has the following syntax: setInterval(function, milliseconds);

3.

3.1Write a PHP page to handle the Ajax request.

The page should be named appropriately so it can be called by the server. The page validates emails by checking if the emails have been used by other registered users. Assume that all registered users are stored in a local MySQL database with the following parameters:

server: localhost;

database: jackdb;

username: jack;

password: 123456;

table: tabUser;

username field: username.

3.2 Re-write the JavaScript code to make the AJAX interaction work as expected.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!