I have alert in my code with sound file but I have another alert right after and it seems only take the first alert but not the second one. Is that I need to delay or wait for few second before execute the second alert?
Announcement
Collapse
No announcement yet.
wait or sleep function
Collapse
X
-
Hello jchyr,
We do not have a delay function for this type of scenario. However, you can create one with a loop. Add a delay loop to your study like the below.
PHP Code:function main() {
Alert.playSound("train.wav"):
var cntr = 0;
for (var i = 0; i < 4000000; i++) {
cntr++
}
Alert.playSound("ding.wav");
}
Jason K.
Project Manager
eSignal - an Interactive Data company
EFS KnowledgeBase
JavaScript for EFS Video Series
EFS Beginner Tutorial Series
EFS Glossary
Custom EFS Development Policy
New User Orientation
Comment