I am doing an AJAX request to be injected into div
. it will supposedly include a JavaScript code at the end that will execute a function in the main page. I have tried the following but aint working. uploudInfo()
is the function's name.
<script language="javascript" type="text/javascript">
window.top.window.uploudInfo();
</script>
update
I included the following to be get once ajaxing but ain't working.
I'm using this ajax request TINY.box.fill('ajax.html',1,0,1)
from this page http://www.scriptiny.com/2011/03/javascript-modal-windows/ but we can assume I'm not using any external codes to solve my issue just a simple ajax request like in this page http://www.w3schools.com/php/php_ajax_php.asp
<input value="uploudInfo();" id="but" onclick="uploudInfo()" type="hidden" />
<script type="text/javascript">
var e = document.getElementById('but').value;
eval(e);
</script>