Home > Ajax, Javascript > Javascript Fix Needed Urgent

Javascript Fix Needed Urgent

February 9th, 2010

I hope someone can help me real fast with this embarrassing silly problem that I have faced.

IN SIMPLE WORDS:
FireFox and Chrome doesn’t seem to like “document.getElementById” but IE does! so the code works fine on IE but not FF and chrome! I need you to modify the JS code in “index.php” and solve the problem!

THE SCENARIO (open the attached zip file):
I have a flash file (player.swf) which loads an xml file, playlist.xml.

in the xml file you will find blocks of information and every block has a CDATA block inside. flash sends this block of CDATA out to the JS code in file index.php and that block of information must be shown at the bottom of the page where I have put:

<span class=”style1″ id=”vInfo”>Loading video information…</span>

but that simply doesn’t happen in FireFox and Chrome! but works fine in IE, I’m suspicious that the problem is with “document.getElementById”. I’m hoping that you clever guys can help me and modify the index.php file.

Take a look at the attached screenshot image, it will demonstrate the problem a bit more… this is a video player we are talking about… when you click the videos in the playlist, the video screen gets refreshed and the CDATA block I talked about will be sent to index.php to be shown on the bottom of the page…

I have also attached all the files you need to run this sample on your local server!

Please help me the soonest you can. I have less than 12 hours left… if you know the problem and can save it, please do go ahead and send me the corrected index.php file to save time… I’m a good user here and will pay the one who has helped, ok? I’m in a great hurry, with a small embarrassing bug!

Regards,
Hadi


Javascript Fix Needed Urgent

Comments are closed.
Bear