I am using remote scripting to call a .NET page within a main page. The
child page (child.aspx) returns html that contains dynamically created
javascript methods (function test()).
The parent page sets a document item's innerHTML property to the result of
the child page. This all works fine, except that the parent page also makes
a call to the "test()" method that is contained within that innerHTML. The
call is made after the innerHTML results are returned, yet a javascript error
occurs stating that the call to "test()" is an invalid object.
It is obvious that for some reason the parent window's javascript is not
recognizing the function definition that was returned by the child page. How
can I get this method to be recognized?