Jump to content

Call Function Of Included Php File


Recommended Posts

Hi guys, I have this iframe called audio in the main.php and i am loading the audio.php in this audio iframe. code to include audio.php in the audio iframe: document.getElementById("audio").src = ../stream/audio.php";Now in the javascript of main.php, i am calling the function of audio.php called startaudio() and its gives error that object expected.I thought ui alredy loaded he audio.php so now i can call any function from that file... do i have to do something like frame["audio"].startAudio();HOw do i fix this? Thanks,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...