xataku_nakusute
08-14-2003, 04:06 AM
i know in php there is a function called "include" which will automatically include a specified document, however, how could i emulate this with javascript?....
basically, i first thought of using innerHTML, but i realized that i had some javascripts as well....which would cause an error had i run the page...
so basically, i need it to either:
-use some type of js-based "include" function
-use some method of parsing javascript scripts within the innerHTML
-pretty much replace large blocks of text and other stuff
however, i do not want to have to resort to frames or iframes.
also, i need it to be able to be replaced amidst other surrounding elements that are to be left unchanged.
thanx for your consideration
basically, i first thought of using innerHTML, but i realized that i had some javascripts as well....which would cause an error had i run the page...
so basically, i need it to either:
-use some type of js-based "include" function
-use some method of parsing javascript scripts within the innerHTML
-pretty much replace large blocks of text and other stuff
however, i do not want to have to resort to frames or iframes.
also, i need it to be able to be replaced amidst other surrounding elements that are to be left unchanged.
thanx for your consideration