I have the following setup and I need to know how to save the state.
1.) An external webpage uses ajax to download and display a .jsp file that contains javascript. 2.) Upon completion of this rendering, javascript in the .jsp file must be called to perform an action based on the results that occurred during the rendering. In particular, the document performs an action on $ (document) .ready, and these actions determine what should be done in subsequent function calls.
I have a question: how to save data and state created when the page loads? I tried something like this:
External: ajax to test.jsp
Internal test.jsp
var saveMe = {};
function getsCalled()
{
saveMe = {'a':function(){return false;}};
}
function needsData()
{
}
Further ...
External:
needsData();
. ?