Payday Loans - Mortgagecalculators - TV News - Wordpress Theme - Wordpress Themes

PDA

View Full Version : Ajax Refresh Problem


2mk_atspace
May 6th 2008, 10:00 pm
I build online presentation with Ajax. When preseneter change the slide, the participant slide also change, i use

setTimeout('checkChange();',2000);

The problem is how if i only want participant slide change only when presenter change the slide. If i use timer slide will refresh every 2 second.

Anyone can help me ?

Panzer
May 6th 2008, 10:37 pm
Make an HTML button, onclick"changeSlide()" ?

2mk_atspace
May 7th 2008, 7:47 pm
I already made that.

I will give more explanation

Presenter press change slide button -> then presenter slide and participant slide change.

Note : Presenter and participant in different computer.

Panzer
May 7th 2008, 9:43 pm
Why not set it up so $i = the number slide each person is on.

Your onclick JS function will just have $i++ in it; each time the button is clicked increment $i up one more.