Jump to content

[JS] Strange execution problem


guybrush

Recommended Posts

Hi everyone!

 

I'm trying to make a script like this schema:

 

1) ...start...
2) change text value with "loading...."
3) execute operations
4) change text value with "done!"
5) ...end...

 

Problem: does not execute the number "2" or did it so fast that feel unseeable

 

This the easy code:

 

parent.document.getElementById('BUT01').value='ELABORAZIONE... ';
<? sleep(2);?>
parent.document.getElementById('BUT01').value='FINITO';

 

what I can Try?

 

P.S. Sleep(2) is like an elaboration of 2 seconds

P.S.2. I call "parent" 'cause the execution is in a iframe

Link to comment
https://forums.phpfreaks.com/topic/48414-js-strange-execution-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.