![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 80 Pomógł: 0 Dołączył: 18.04.2004 Ostrzeżenie: (0%) ![]() ![]() |
Witam!
Jaki jest odpowiednik funkcji include" title="Zobacz w manualu PHP" target="_manual() PHP w JS? PS. Od razu zaznaczam, że nie mogę użyć document.write('<script src="...') |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 1 224 Pomógł: 40 Dołączył: 6.07.2004 Skąd: Wuppertal Ostrzeżenie: (0%) ![]() ![]() |
Kod function include_dom(script_filename) { var html_doc = document.getElementsByTagName('head').item(0); var js = document.createElement('script'); js.setAttribute('language', 'javascript'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', script_filename); html_doc.appendChild(js); return false; } http://www.phpied.com/javascript-include/ |
|
|
![]() ![]() |
![]() |
Aktualny czas: 4.10.2025 - 02:10 |