When I load a portion of a page using AJAX calls, sometimes the loaded content may contain script functions attached to controls with different events. The issue arises when these events are triggered, resulting in an error message saying "object not found," implying that the function is not defined. However, when checking with Firebug, it shows that the function is indeed defined and available. How can I ensure that the browser can find the respective function?
I have tried various approaches but still facing issues. Here is what I am currently doing:
Page
--->Partial View A
----->Partial View B
The main page loads Partial View A with Ajax Calls, which further loads Partial View B also using Ajax Calls. Both Partial Views A & B contain few JavaScript functions logically associated only with them and not with the master page. The pages load correctly, but the functions fail to execute, causing an "Object Not Found" error.