I am trying to load a html into some div using ajax tech. the UI I am getting. but not the js functions. I am embedding the js file w.r.t external html file.
for eg:
from Main.html page I want to load local.html file.
In local.html file I have specified the related js file local.js.
But once I load the local.html into some div of the Main.html, the js functions in local.js is not working. I think this happens due to src path problem. but the onLoad function in local.html is also not working.

any idea why it is so? and any solution for the same???