Hi,
I have a repeater list with two links in each row.
I have a radwindow manager.
If I click on one of the links, the rad window pops up as per normal.
Without closing the current popup, if I then click on another link, the new window opens but the position defaults to top left (0,0) and the window loses it offset element.
Please could you advise - I have included the javascript which gets called below. The a href links which call this code are:
There can be any number of these hrefs, each time one is clicked I wish the contents of the pop up window to be refreshed and the position to stay in the same place.
I have two javascript functions as I need to open the windows in two different sizes.
Thanks.
I have a repeater list with two links in each row.
I have a radwindow manager.
If I click on one of the links, the rad window pops up as per normal.
Without closing the current popup, if I then click on another link, the new window opens but the position defaults to top left (0,0) and the window loses it offset element.
Please could you advise - I have included the javascript which gets called below. The a href links which call this code are:
<a href="#" onclick="openRadWindow('11', 'Mr. Benjamin White', '1', ' ', ' ', ' ', ' ', '1/MzOBjfbqkF-6dOtzU4dnlVCR3DkkRp0XvTyoiwwKljQ','9','19/01/2011,21/01/2011,22/01/2011','crewbook@gcdemos3.co.uk','07983633674','2'); return false;">Edit</a><a href="#" onclick="openQVWindow('11'); return false;">Mr. Benjamin White</a>There can be any number of these hrefs, each time one is clicked I wish the contents of the pop up window to be refreshed and the position to stay in the same place.
I have two javascript functions as I need to open the windows in two different sizes.
Thanks.
<script type="text/javascript"> function openRadWindow(EngID, EngName, EngJobSkillID, ClientInviteSentOn, ClientConfirmationSentOn, EngineerInviteResponseOn, EngineerConfirmationResponseOn, GoogleSessionToken, JobID, BookedDatesString, EngEmailAddress, EngMobile, SubscriptionType) { var InternalJobRef = $("[id$='_lblJobTitle_Ref']").html(); var JobTitle = $("[id$='_lblJobTitle']").html(); var oWnda = radopen("DialogEditResourceBooking.aspx?engID=" + EngID + "&EngName=" + EngName + "&EngJobSkillID=" + EngJobSkillID + "&ClientInviteSentOn=" + ClientInviteSentOn + "&ClientConfirmationSentOn=" + ClientConfirmationSentOn + "&EngineerInviteResponseOn=" + EngineerInviteResponseOn + "&EngineerConfirmationResponseOn=" + EngineerConfirmationResponseOn + "&GoogleSessionToken=" + GoogleSessionToken + "&JobID=" + JobID + "&BookedDates=" + BookedDatesString + "&JobTitle=" + JobTitle + "&InternalJobRef=" + InternalJobRef + "&EngEmailAddress=" + EngEmailAddress + "&EngMobile=" + EngMobile + "&SubscriptionType=" + SubscriptionType, "RadWindow1"); oWnda.setSize(430, 400); oWnda.set_offsetElementID($("#<%=refreshResultsGrid.ClientID %>").attr('id')); } function openQVWindow(EngID) { var oWndb = radopen("DialogQuickViewEngineer.aspx?engID=" + EngID, "RadWindow1"); oWndb.setSize(550, 650); oWndb.set_offsetElementID($("#<%=refreshResultsGrid.ClientID %>").attr('id')); } </script>