I am using AHAH - http://binnyva.blogspot.com.
My driver html page contains a table of two cells. The right cell contains a link:
<a href="javascript:ahah('index.html','video');">test</a>
Index.html:
<script src="http://domain.name/flashplayer/flowplayer-3.1.4.min.js"></script>
<a href="http://domain.name/flashplayer/video.flv" style="display:block;width:425px;height:300px;" id="player"></a>
<script language="JavaScript">
flowplayer("player", "http://domain.name/flashplayer/flowplayer-3.1.4.swf");
</script>
<h1>test test test test test test <br> test tes t tsst </h1>
As a result, what we obtain seems to be all as planned: AHAH loads the contents of the index page completely to <div id="video"></div>
which is placed in the left cell, but in the <DIV>
on the left it shows only 'test test test ...' Nothing of what passed in the <div>
about the player itself is displayed.
This is all that I found in Google on this subject:
Now the only file left is the three content files - javascript.html, ahah.html and ajax.html. The important thing to remember about this is that you should not include the standard HTML stuff like
<html><body>
etc. in this page - just the content with all the HTML formatting - I am just providing the code for just the file javascript.html here - remember that this is the whole file - nothing other than the shown data must be in that file.
But, as you can see index.html haven't any "standard HTML stuff".
The question is: why is Javascript not executed within this div? And how can I realize these things through AHAH? Because, as I understood, <frame>
is outdated. Thanks a lot!
P.S.: Excuse my Russian-English =)