Hi ,
I am showing a web page in web dialog window. when I show web dialog window with show(); method using javascript, it is first displaying the previous content and then after 10 seconds the new page is being displayed, that is refreshed with present url.
How can i clear the content page so that i will show blank instead of the previous page till the new page shows up?
Hello Mike:I have the same problem
<ig:WebDialogWindow ID="di_Window" runat="server" Width="500px" Height="500px" InitialLocation="Centered" Modal="True" Moveable="False" Resizer-Enabled="False"> <ContentPane EnableRelativeLayout="true" ScrollBars="Hidden" BackColor="#FAFAFA" ContentUrl="#"> </ContentPane> <Header CaptionText="my dialog" BorderColor="#cccccc"> </Header> <ClientEvents Initialize="di_Window_initialize" /> <Resizer Enabled="true" /> </ig:WebDialogWindow> function di_Menu_initialize(dialog, e) { dialog.hide(); }
(1)step1(normal open dialog) dialog.get_header().setCaptionText("login"); dialog.get_contentPane().set_contentUrl("login.aspx");...
(2)step2(then close the dialog box)
var win = window.parent; var dialog = win.$find(oWindow_Id); win.document.all[iField].value = no; win.document.all[oField].value = name; dialog.get_header().setCaptionText(""); dialog.get_contentPane().set_contentUrl(""); dialog.hide();
(3)step3(then using the same dialog, open a different url) dialog.get_header().setCaptionText("member"); dialog.get_contentPane().set_contentUrl("member.aspx"); dialog.show();
porblem:(3)first to see the login.aspx, about 1sec there member.aspxpossible dialog.get_contentPane().Set_contentUrl (""); does not work.
賴炎山
Hello,
Setting the content url to an empty string worked in my sample. Do you have a sample that demonstrates the behavior you are seeing so I can investigate this matter further?
Hi Mike,
It is not working.
I set one url (CreateEmp.aspx) in button1 click and show the window. then in second button click i set different url (CreateProduct.aspx) and show. When i click second button click. It shows the popwindow with content CreateEmp.aspx for few seconds and that it shows createProduct.aspx.
setting like this wdw.get_contentPane().set_contentUrl(""); Not working.
Hello Kiran,
Thank you for the update. What you can do is after you hide the window you can set the contentUrl to an empty string and this will blank the page:
wdw.get_contentPane().set_contentUrl("");
Thanks for the immediate response i really appreciate it .
I am setting up the url in javascript onclientclick button event.
So it displays the given url in the popup and i do some selections in the popup. I close the popup window after i do some events in pop up.
After closing if i open the pop up it shows page with previous window state 20 seconds or so then it refreshes with the default url state.
So here is the issue i dont want that previous state of the popup page but default state of the pop page.
setting up url initially
var ContentURl = "CreateEmp.aspx"; var oWnd = $find("oWindClientID"); oWnd.get_contentPane().set_contentUrl(ContentURl); oWnd.show();
When i close i call below javascript
var oWnd = this.parent.$find("oWindClientID") ; oWnd.hide();
When i open i again i call first set javscript code ( setting up url initially )
So second time when i open it should display only the default url page not page with previous changes.
Let me know if it is not clear.
Thanks
Kiran