Feb 14, 2012, 7:35 PM
[CLOSED] We are trying to call a javascript function in a parent window after this one opens a new child window.
We use ExtNet with Asp.Net MVC and we are trying to accomplish something that is really easy using regular javascript functions but we are not clear about how to do that using the ExtNet window.
We are trying to call a javascript function in a parent window after this one opens a new child window.
in the parent one we have a button:
In regular windows created with the usual "window.open" javascript function I just can access the function calling window.opener.LocateRecord()
How can I do the same with ExtNet?
regards,
We are trying to call a javascript function in a parent window after this one opens a new child window.
in the parent one we have a button:
<ext:Button ID="btnProcurar" runat="server" AutoWidth="false" Width="80px" Text="Search"
Icon="Find" StyleSpec="padding-top:2px;" OnClientClick="openWindow();" />
... and a function...var openSearchWindow = function () {
// some code
var searchWindow = new Ext.IframeWindow({
id: 'searchWindow',
title: Search Lookup',
layout: 'fit',
autoScroll: true,
height: altura,
width: largura,
collapsible: true,
maximizable: true,
minimizable: true,
closeAction: "close",
icon: "Application",
modal: true,
dialog: true,
prompt : true,
src: '/one_url/',
MaskMsg: 'Loading...',
ShowMask: true
});
// some code
}
.. and another function...var LocateRecord = function () {
}
the child one opens and now we need to call the "LocateRecord" function written in the parent.In regular windows created with the usual "window.open" javascript function I just can access the function calling window.opener.LocateRecord()
How can I do the same with ExtNet?
regards,
Last edited by geoffrey.mcgill; Feb 15, 2012 at 4:16 PM.
Reason: [CLOSED], please use [CODE] tags