Scroll bar on main window disappear on iframe popup |
Scroll bar on main window disappear on iframe popup |
Rahul79 |
Jul 16 2008, 05:01 AM
Post
#1
|
Group: Members Posts: 4 Joined: 16-July 08 Member No.: 6,187 |
I am using iframe as a popup from the parent window.
This iframe popups at the start of the application.The issue is when popup appears the scroll bar on the main page disappears, when i close the popup the scroll bar remains disappears however on refreshing the page then , scrolll bar comes back. Can anyone plz tell me why this problem is coming up. |
Darin McGrew |
Jul 16 2008, 08:52 AM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Can you provide the URL (address) of a document that demonstrates the problem?
|
Rahul79 |
Jul 17 2008, 01:08 AM
Post
#3
|
Group: Members Posts: 4 Joined: 16-July 08 Member No.: 6,187 |
Can you provide the URL (address) of a document that demonstrates the problem? I am providing the screen shots with initially scroll bar appearing while the application starts loading(scroll.bmp) and scroll bar gets disappear when iframe is poped up. (noscroll.bmp). The problem is after closing this iframe , main page scroll Images.rar ( 159.91k ) Number of downloads: 802 bar doesnt caome back untill i refresh the page explicitly and thats what i dont need. Images.rar ( 159.91k ) Number of downloads: 802 |
pandy |
Jul 17 2008, 01:23 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
We need to see the real page, not a picture of it. But that isn't a pop-up. It's a positioned box.
|
Rahul79 |
Jul 17 2008, 06:07 AM
Post
#5
|
Group: Members Posts: 4 Joined: 16-July 08 Member No.: 6,187 |
We need to see the real page, not a picture of it. But that isn't a pop-up. It's a positioned box. Yes, exactly , thats a iframe which is shown. I am using the following code to display that iframe. On application startup function showSignUp() { showSignupCustomizationPortlet(); } is called and this function contains function showSignupCustomizationPortlet() { url = "<%= scFriendlyURL %>"; var message = Liferay.Popup.iframe(url, { width: 750, height: 500, noCenter: false, modal: true, title: "", onClose: function() { var url = "/html/portal/closePopup.jsp"; AjaxUtil.request( url, { onComplete: function(xmlHttpReq) { //location.href = location.href;(this code is currently disabled as we dont want the page to get reloaded) } } ); } }); } and this is the code from the javascript that displays the iframe jAlertMsgs.append( "<div class='popup " + (modal ? "modal" : "") + "' style='position:absolute; background:#000103; top:0; left:0;'>" + "<div class='popup-inner' style='background:#000103;'>" + //"<div class='popup-header' style='background:#000103;color:#FFFFFF'>" + "<span class='popup-title'>" + (title || " ") + "</span>" + "<span class='popup-close' style='color:#FFFFFF'>[close]</span>" + //"<img class='popup-close' src='" + themeDisplay.getPathThemeImages() + "/portlet/close2.png'/>" + //"</div>" + "<div class='popup-message'></div>" + "</div>" + "</div>"); and for closing the iframe jPopup.find(".popup-close").click(function() { $.Popup.close(this); }); if (onClose != null) { jPopup.find(".popup-close").click(onClose); } is used. |
Darin McGrew |
Jul 17 2008, 10:44 AM
Post
#6
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
I don't see any sign of an iframe there.
|
Rahul79 |
Jul 17 2008, 11:08 AM
Post
#7
|
Group: Members Posts: 4 Joined: 16-July 08 Member No.: 6,187 |
|
Darin McGrew |
Jul 17 2008, 12:12 PM
Post
#8
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Duh. Yep, so it is.
|
Lo-Fi Version | Time is now: 23rd April 2024 - 09:46 PM |