Hello,
I´m starting to use the new WebDialogWindow control in infragistics 8.1 version, but i´m dont know how to open a webpage inside a dialog window.
I´m trying to write an iframe for after to open a webpage, it´s correct? It´s possible to open a webpage?
Thanks for help.
I believe the easiest approach would be to use the ContentUrl property of the ContenPane setting of WebDialogWindow, for example
<cc1:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="300px" Width="400px"> <ContentPane ContentUrl="http://www.google.com"></ContentPane> </cc1:WebDialogWindow>
If this does not help or is not applicable in your scenario - please, let me know.
Right, this might very well be a bug in WebDialogWindow, since I am able to reproduce the same and it is workin just fine in IE but not in FireFox (and I assume you are using FireFox). I was able to find a workaround which may help yougo further in your project, but I will investigate further and if I find this to be an issue, I will log it into our bug-track and give your a BR reference number, so you can check out when the issue is fixed in subsequent hotfixes.
Meanwhile, you can use the following javascript to explicitly set a new URL location for yor window instance:
var iframe = oWnd.get_contentPane().get_element().getElementsByTagName("IFRAME")[0]; iframe.contentWindow.location.href = "http://es.infragistics.com";
Hope this helps.
I have experienced a problem with a page displayed within the dialog window where the data on the page is being refreshed but the display is not. I must physically clear the cache on the browser or right click in the dialog window and hit refresh in order to get the new values to display on the page... When I try to use an Iframe as suggested:
Rumen Stankov"] var iframe = oWnd.get_contentPane().get_element().getElementsByTagName("IFRAME")[0]; iframe.contentWindow.location.href="http://es.infragistics.com" mce_href="http://es.infragistics.com";
the code Fails with a null ref exception on contentWindow is my markup incorrect, Javascript?:
code:
<ig:WebDialogWindow ID="wdw_History" runat="server" Height="240px"
Moveable="False" Width="535px" WindowState="Hidden" EnableViewState="False">
<Template>
<iframe id="theFrame"></iframe>
</ContentPane>
</ig:WebDialogWindow>
var dialog = $find('uwt_Nav__ctl2_wdw_History');
//myContentPane.set_contentUrl('Opp_Mod_History.aspx?OppID=' + rowDataKey); <-- works but does not refresh display after postback
dialog.show();
TIA everyone,
Patrick
Updated typo in frame ID in javascript... Still having null ref excep.