callhandler
Programmer
I have almost complete Javascript routine to preload sound files on a page (I have a browser based telephone that interfaces with the real world telephone system!)
Basically I create a whole lot of <EMBED>s with the names sound0, sound1, sound2, etc.
I want to create a simple loop to to check the readyState (to ensure the files are loaded before displying the full page).
if (document.all.sound0.readyState=='complete') ..etc.
what syntax do I use in this if clause to check the readyState for sound'n'?
Basically I create a whole lot of <EMBED>s with the names sound0, sound1, sound2, etc.
I want to create a simple loop to to check the readyState (to ensure the files are loaded before displying the full page).
if (document.all.sound0.readyState=='complete') ..etc.
what syntax do I use in this if clause to check the readyState for sound'n'?