views:

28

answers:

1

I am trying to play multiple videos one after the other in windows sidebar. I'm using javascript setInterval method to change the video. But windows sidebar doesn't parse javascript. Can anyone help me, please.

A: 

On the contrary, you can use any scripting language which IE7 supports to script a Windows Sidebar widget - including Javascript. Are you passing a string or a function to setInterval? You shouldn't pass a string (it's bad practice).

Does passing a function (not a string) to setInterval solve the problem? If not, what is actually going wrong?

Matt Ball
Thank you for the reply...First of all we are trying to load an html object in javascript, which is not working...eg:document.getElementById('objVid').innerHTML = objValue;
bhanu
In that case: does the `getElementById` call return anything? Are you passing valid input (a string) to `innerHTML`? https://developer.mozilla.org/en/DOM/element.innerHTML
Matt Ball