Click here to Skip to main content
15,908,906 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
On opening the page popup window should be opened.

If we scroll down the page popup should not disappear, along with the page popup should scroll.

If scroll bar of page reaches the bottom popup should be dis appear.
Posted
Comments
Mac12334 28-May-13 7:48am    
What you have tried ??Can you please share your code??
Mohit_Rudra 29-May-13 0:47am    
you should post some code here

]]>
 
Share this answer
 

rel="stylesheet" type="text/css" />

$(document).ready(function () {

$("#dialog").dialog({
title: "jQuery Dialog Popup",
position: ['right', 'top'],
draggable: true,
resizable: true
});

$(window).scroll(function () {
$("#dialog").dialog({
position: ['right', 'top']
});

if (document.documentElement.clientHeight + $(document).scrollTop() >= document.body.offsetHeight) {
$("#dialog").dialog('close');
}
});
});





<asp:gridview runat="server" id="grdWithDataTable" allowpaging="true" pagesize="100" xmlns:asp="#unknown">



<asp:label runat="server" id="lblEstimatedTimeWithDataTable" xmlns:asp="#unknown">


<asp:gridview runat="server" id="grdWithList" allowpaging="true" pagesize="100" xmlns:asp="#unknown">



<asp:label runat="server" id="lblEstimatedTimeWithList" xmlns:asp="#unknown">


Welcome Nanda Kishore



 
Share this answer
 


rel="stylesheet" type="text/css" />

$(document).ready(function () {

$("#dialog").dialog({
title: "jQuery Dialog Popup",
position: ['right', 'top'],
draggable: true,
resizable: true
});

$(window).scroll(function () {
$("#dialog").dialog({
position: ['right', 'top']
});

if (document.documentElement.clientHeight + $(document).scrollTop() &gt;= document.body.offsetHeight) {
$("#dialog").dialog('close');
}
});
});





<asp:gridview runat="server" id="grdWithDataTable" allowpaging="true" pagesize="100" xmlns:asp="#unknown">



<asp:label runat="server" id="lblEstimatedTimeWithDataTable" xmlns:asp="#unknown">


<asp:gridview runat="server" id="grdWithList" allowpaging="true" pagesize="100" xmlns:asp="#unknown">



<asp:label runat="server" id="lblEstimatedTimeWithList" xmlns:asp="#unknown">


Welcome Nanda Kishore


 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900