Hi,
Code below doesn't add new innerHTML into table cell. When it adds it should run other (slideOther.js) file but, doesn't work.
Thanks

<html>
<head>
<script type="text/javascript">
function startSlide() {
el=document.getElementById('productsBigCell');
el.innerHTML='<script>var slide1foldername="";</script><script src="slideOther.js" type="text/javascript"></script>';
}
<script>
</head>

<body onLoad="startSlide();">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td id="productsBigCell" colspan="5">&nbsp;</td>
  </tr>
</table>
</body
</html>

Try, unure but::

<script type="text/javascript">
function startSlide() {
el=document.getElementById('productsBigCell');
el.innerHTML='<script type="text/javascript">var slide1foldername="'/* often required, to be not Blank even the current folder is .(dot) check doc for slideOther */'";</script><script src="slideOther.js" type="text/javascript"></script>';
}
</script> /* /closure omitted */

For debug,
comment out the onload
write the slideshow code directly in the table cell,
and see if the slideshow starts
the slideshow script may have to be invoked, started in some way.
so the javascript may need to be

<script type="text/javascript">
function startSlide() {
el=document.getElementById('productsBigCell');
el.innerHTML='<script>var slide1foldername="";</script><script src="slideOther.js" type="text/javascript"></script>';
slideshowstart;}/* where slideshowstart is the start command in slideOther.js */
</script>

unsure
my slideshow script's last line is start;
what does slideOther.js look like

lets see the slideOther.js code. you might want to get firebug a pugin for firefox; you're really going to need it if you're doing all this web dev stuff

I have solved problem by adding a link where javascript is manually called because i have changed the logic. However, thank you very much for your interests.

This article has been dead for over six months. Start a new discussion instead.