Javascript.RU

Создать новую тему Ответ
 
Опции темы Искать в теме
  #1 (permalink)  
Старый 13.10.2009, 18:08
Интересующийся
Отправить личное сообщение для dimiork Посмотреть профиль Найти все сообщения от dimiork
 
Регистрация: 13.10.2009
Сообщений: 18

AHAH подгружает код из локального html-файла, но код в блоке не выполняется
Итак, заюзана вот эта особенность AHAH - http://binnyva.blogspot.com
html-страница содержит таблицу из двух ячеек, в правой вот это : <a href="javascript:ahah('index.html','video');">inde x</a> открывает в <div id="video"></div>, который расположен в левой ячейке.
Содержимое 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> </div>


flashplayer взят здесь : http://flowplayer.org/

В итоге получаем вроде бы все как и задумано, AHAH грузит содержимое индексной страницы полностью, но в диве слева отображается лишь 'test test test...' , ничего из того, что передано в <div> касательно самого плеера не отображается.

Все что я нагуглил по этому поводу :
"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."

Вопрос, почему яваскрипт не выполняется внутри этого дива и как мне реализовать сие на основе AHAH. ибо, как я понял, <frame> вчерашний день. Благодарю.
Ответить с цитированием
Ответ



Опции темы Искать в теме
Искать в теме:

Расширенный поиск