Hi Friends,
Working with communication between a child javascript window and parent jsp function, I am trying to access a function defined in the parent jsp from its child window which is a separate js file. This logic works fine in IE, but breaks in Chrome.
* Parent function: multiCreateCallback()
- Child JS code to access multiCreateCallback
[CODE]
var windowCmp = parent.Ext.getCmp('workflowTaskWindow');
var frameVar = windowCmp.getEl().dom.getElementsByTagName("iframe")[0];
console.log("Frame test: "+ frameVar.contentDocument.frames.multiCreateCallback());
[/CODE]
No matter what combination I use with frameVar, I can't seem to reach the callback function. 'contentDocument.frames' says undefined
'contentWindow.document.multiCreateCloseCallback()' also gives 'undefined' as error.
'parent.multiCreateCloseCallback();' - gave the error as - Uncaught TypeError: undefined is not a function
Is there any way to handle the code such that we can reach the callback function defined in the parent JSP?
Thanks in advance!
Nikita