is there any command or ajax that Javascript is checked repeatedly to one or two variables without any command and without reloading the page...???

following example:

<html>
<body>

<!--- This section is repeated or changes automatically if the data is changed -->
My ID: 100
MyPhone: 123456
<!-- End -->

<!-- This section does not change data -->
<img src=image.jpg>
<!-- done -->

</ body>
</ html>

thanks before

Recommended Answers

All 2 Replies

Abah,

is there any command or ajax that Javascript is checked repeatedly to one or two variables without any command and without reloading the page...???

Simple answer is yes, but only if I understand the question correctly.

This section is repeated or changes automatically if the data is changed

The key lies is understanding - what data and how is is changed?

Once that is defined, then it should be fairly simple (client-side) to knock together some javascript to make an AJAX call and to handle the response. You will also need to address the server-side code (eg. php with a back-end database) but the extent of this depends on how your ids/phone numbers are stored.

Airshow

setInterval() Method.

The setInterval() method calls a function / evaluates an expression at specified intervals (in milliseconds).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.