I am using a Jquery overlay panel. I want to open a new window when a user clicks on the panel button. Right now, I am writing the code for the content inside the panel inside the same page where the panel is. I want to open a new window ( new web form)
when user clicks on the panel so that the content of the panel is in new webform. below is my code:
<div data-role = "main" class = "ui-content"> <p>Click on the button to open Panel.</p> <a href = "#panel1" class = "ui-btn ui-btn-inline">Open Panel</a> </div>
</div> </body>
I want the code between these div tags to be open in new web form.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
511 Points
1275 Posts
Opening a new page with Jquery mobile overlay
Jul 27, 2020 10:55 PM|anjaliagarwal5@yahoo.com|LINK
I am using a Jquery overlay panel. I want to open a new window when a user clicks on the panel button. Right now, I am writing the code for the content inside the panel inside the same page where the panel is. I want to open a new window ( new web form) when user clicks on the panel so that the content of the panel is in new webform. below is my code:
I want the code between these div tags to be open in new web form.
and when I close the panel then I want my parent window to be refreshed.
How can I achieve this.
Contributor
2900 Points
852 Posts
Re: Opening a new page with Jquery mobile overlay
Jul 28, 2020 03:47 AM|Sean Fang|LINK
Hi anjaliagarwal5@yahoo.com,
The key is to use below js function:
However, in webform, you might need to pass the value so that I handled the js function from code behind.
More details, you could refer to below codes:
JqueryNewWindowCallback.aspx
JqueryNewWindowCallback.aspx Code behind:
JqueryNewWindowCallback1.aspx
JqueryNewWindowCallback1.aspx Code behind:
Demo:
Hope this can help you.
Best regards,
Sean
Member
511 Points
1275 Posts
Re: Opening a new page with Jquery mobile overlay
Jul 29, 2020 04:55 PM|anjaliagarwal5@yahoo.com|LINK
our users blocked there pop up window. Is it possible to call the aspx page any other way?