0

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

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by ryan_vietnow
0

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

Edited by Airshow: n/a

0

setInterval() Method.

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.