BubikolRamios
01-01-2008, 04:11 PM
on main web page
<script language="javascript" src="../js/BadBoy.js" type="text/javascript">
</script>
BadBoy.js basicaly contains this:
function B()
{
}
function A(obj,method,parameters)
{
B.obj = obj;
B.method = method;
B.parameters = parameters;
}
1.now, if I put button on main page and on click --> A ..
it works.
2. if I dynamicaly fill one div on main page via ajax with exact same code as in 1. then I get :B has no properties
Obviously it gets into A, and code is there, so this is not scope problem, or is it ?
Thanks for reply.
<script language="javascript" src="../js/BadBoy.js" type="text/javascript">
</script>
BadBoy.js basicaly contains this:
function B()
{
}
function A(obj,method,parameters)
{
B.obj = obj;
B.method = method;
B.parameters = parameters;
}
1.now, if I put button on main page and on click --> A ..
it works.
2. if I dynamicaly fill one div on main page via ajax with exact same code as in 1. then I get :B has no properties
Obviously it gets into A, and code is there, so this is not scope problem, or is it ?
Thanks for reply.