![]() |
http request don't keep the javascripts working
Hello
I'm doing an http request of one page, and when that page loads the javascripts on that page don't work. theres anyway to fix this? my request code is: Code:
function replace<?php echo $row_rs_anos['id']; ?>() { |
it won't innerHTML will only call the rendering portion of the browser and since the script tag is not something that will be part of the display it will be ignored. if u want scripts to execute u've to use DOM manipulation
|
hum... i see.. can you help me a bit more? i really don't know how to search.
|
the simplest way out would be to use an iframe like
Code:
document.getElementById('foo').innerHTML = '<iframe src="simple_accordions_with_src/Basic.html"><' + '/iframe>'; |
| All times are GMT +1. The time now is 08:22 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.