Popup window disappears
Hi
I have a text box field:
<form id="form1" name="form1" method="post" action="">
<span id="sprytextfield1">
<label for="calc2"></label>
<input type="text" name="calc2" id="calc2" onchange="checkCalc()"/>
<span class="textfieldRequiredMsg">A value is required.</span></span>
</form>
when user types in correct answer and hits return key, it calls a function:
<script type="text/javascript">
function checkCalc(){
if (document.form1.calc2.value == "1"){
MM_showHideLayers('pop1','','show','pop2','','hide');
else { alert("you are incorrect!");
</script>
The popup window appears but only for a second and then it disappears
I use the same MM_showHideLayers('pop1','','show','pop2','','hide') function elsewhere and the pop up remains open
The pop up is a ap div, with default setting set to hidden. The function then shows the layer, by setting the visability to 'show'
<p>Velit esse cillum dolore quis nostrud exercitation consectetur <span class="hyperlink" onmousedown="MM_showHideLayers('pop1','','show','pop2','','hide')" onmouseup="MM_effectHighlight('pop1 content', 1000, '#FFFFFF', '#EAEAEA', '#FFFFFF', false)">adipisicing</span> elit. In reprehenderit in voluptate lorem ipsum dolor sit amet, sed do eiusmod tempor incididunt. Ut labore et dolore magna aliqua.</p>
here's the screenshot of what comes up and then quickly disappears:
Similar Messages
-
I can post comments no problem in IE, and this weird popup window never shows up. I ran firefox in safe mode, and that window still shows up and then disappears before I can do anything. I haven't seen anyone else mention this problem.
here's the screenshot of what comes up and then quickly disappears:
-
Message (of message manager) gets lost by opening a popup window
Hi all,
On behalf of a better error/exception handling, I would like to show the stacktrace in a popup window, that means, if the application reports an error message (through the message manager in the view controller), the user (administrator, developer) can optionally click a link (LinkToAction => opening a modal window) to see the stacktrace in a separat popup window.
Unfortunately if the popup window now gets displayed, the error message on the main view (background of the popup window) will be cleared, so this - for the common user more readable - information is not anymore displayed, also when the popup will be cleared.
Of course, I could backup the error message in a context value and redisplay it after closing the popup window, but I suppose that's not a very cool solution...
Other any good ideas?
Thanks,
StefanHi Stefan
Usually showing a stack-trace to the end-user of your application is not so helpful as might appear. My experience shows that the information is too technical for the end-user and does not help him/her to resolve the issue/problem. It's better to display error messages pointing him to some solution or directions that he might do in order to fix the error.
If you still want to show a stack-trace I'd advise the following. You have to prepare the UI control with the stack-trace in the same server response (round trip) which shows the message manager's messages. The messages will not disappear until a client sends a new request to the server. When you open the popup such request definitely takes place.
Maybe try to display the stack-trace in the bottom of the screen so user have to scroll down a little bit to show the trace.
Or maybe Tray control will help in the case. Try to put the trace in a text view and put the view in a tray. Then user has to expand the tray to see the trace. But do not assign any event handlers to the tray to avoid additional request to the server while it's expanding.
BR, Sergei -
Popup windows on multiple windows is opened across both monitors.
I am using Firefox 6 the latest version on Windows 7 64 bit using 2 monitors.
I was on a website that wanted me to logon via facebook. So the browser opened a popup windows.
The window that opened covered both monitors. The left edge of the window stayed on the left most monitor (correct). The top edge of the window stayed on the top of both monitors (correct). The right edge of the monitor ended alittle beyond the right most side of the right monitor; I could see the minimized but not the maximized button (incorrect). The bottom edge of the window disappeared below the bottom of both monitors (incorrect). Neither the minimized nor maximized buttons worked.Do they drag there and snap back, or do they not drag there at all?
If they don't drag there at all, check System Preferences > Displays > Arrangement to see how the system thinks the displays are related spatially. You may need to drag left or down instead of right.
Your profile says you are running Mountain Lion, but if you have upgraded to Mavericks, there's a setting that says whether displays are in one space or separate spaces. If it is set to use separate spaces, you may see a window snap to one of the other display. -
Bex POPUP Window. How to Customise
Hi BW Experts,
Currently i am using the BEx Analyser for my reporting.I am entering the wrong values in Selection screen. By hitting the OK Button, the system throws an error message in the POPUP Window.After clicking the OK button, the POPUP disappears but the system shows the message as "BY PROCESSING" in the status bar of the Bex.
How can we control this scenario.And i would like to give own error message in the POPUP Window.
Pls help.
Thanks,
Siva.Go to transaction SMOD.
Enter RSR00001 in Enhancement field.
Select the Documentation radio button
Click Display button
This will show you all the information you need including the sample code.
CAUTION:
1) You should use CMOD (not SMOD) when you implement a solution.
2) Most people usually leave the standard popup box alone becuase it is too much work for a cosmetic change -
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
I have two monitors. I have an application that I run all day, displayed on my secondary monitor. Whenever a popup windows is launched form that application, it always opens on the primary monitor. Very annoying. Any way to get the popup to launch in on the same monitor as the parent application?
Did you solve this problem ?
-
Hi - Even though block popup windows is unchecked in content tab of options, I am still not getting any popups. Please suggest how to over come this problem.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
*Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
*Do NOT click the Reset button on the Safe Mode start window
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Did you make sure that your security software isn't blocking the pop-ups?
Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
*http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/ -
SSO UIDPW not working for external Popup Window but works with SAPLOGONTICK
Dear Experts,
I have an issue with SSO user mapping (UIDPW), but the same scenario is working with SAPLOGONTICKET.
Some list gets displayed in the Web Dynpro ABAP iView which has the hyperlinks where on click on the hyper link it opens a external popup window (another Web Dynpro Application) and display the summary some data.
This scenario works when I set the logon method to SAPLOGONTICKET, but when I set it as UIDPW it won't work when a new window opens on click on the hyperlink from Web Dynpro iView as stated above. It asks to login to R/3 system.
Can anyone please let me know what could be the reason it fails in External Popup window scenario when logon method as UIDPW.
Thanks
MurthyHi Murthy,
You can use application integrator iView to integrate your ABAP application into the portal and you'll be able to pass the variables <MappedUser>, <MappedPassword>, etc. assuming you know about the security risks in passing mapped info.
http://help.sap.com/erp2005_ehp_05/helpdata/en/36/5e3842134bad04e10000000a1550b0/frameset.htm
Still, your ABAPers might need to handle the passed in variables in the first ABAP application and pass them onto the second one. Again, without knowing how you navigate between the 2 apps and other details about your system landscape, versions, etc. this remains as a guess. If you search SDN, you'll find many different solutions then you can choose one which is most suitable for your situation.
Regards,
Dao -
How to close main window on click of a button on popup window
Hi All,
I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
Can anyone please help with this requierment!!!
Regards,
tusharHi All,
Could anyone of you please help me by answering the thread
WDDOEXIT method not called when the application is closed from the portal
Thanks,
Subash M -
How to disable parent window while popup window is coming
Hi,
I am working on Oracle Applications 11i.
I am able to get the popup window using the Java script in the controller.
Please see the below code for the reference.
String pubOrderId = pageContext.getParameter("orderId");
StringBuffer l_buffer = new StringBuffer();
StringBuffer l_buffer1 = new StringBuffer();
l_buffer.append("javascript:mywin = openWindow(top, '");
l_buffer1.append("/jct/oracle/apps/xxpwc/entry/webui/AddAttachmentPG");
l_buffer1.append("&retainAM=Y");
l_buffer1.append("&pubOrderId="+pubOrderId);
String url = "/OA_HTML/OA.jsp?page="+l_buffer1.toString();
OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
String strUrl = popupUrl.createURL(pageContext);
l_buffer.append(strUrl.toString());
l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);");
pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
But here the problem is, even though popup window is there, i am able to do the actions on the parent page.
So how to disable the parent page, while getting the popup window.
Thanks in advance.
Thanks
NagaHi,
You can use javaScript for disabling parent window as well.
Refer below link for the same:
http://www.codeproject.com/Questions/393481/Parent-window-not-disabling-when-pop-up-appears-vi
--Sushant -
RE: Getting multiple values from more than one multiple select popup window
I have a button on a JSP of mine that when clicked creates a popup window (right now it is called popup.html) with a multiple select menu.
My question is how do I get all the values selected from the menu into my JSP (sample.jsp) so that I can set each of the values for my bean.
The other problem is that I have more than one select multiple menu.
Please help if you can. Any advice or suggestions here would be greatly appreciated!
Thank you!I realize that I can use request.getParameterValues to get the values selected from my html because I am passing them to the hidden inputs I have and then using the request.getParameterValues to get each of the values.
MY PROBLEM IS WHAT IF I HAVE 4 MULTIPLE SELECTS??? How can I use the same html popup menu to get the values from the 4 different multiple selects????
I look forward to your response.
This code is from my JSP:
<INPUT TYPE="TEXT" NAME="Field1" SIZE="15">
<INPUT TYPE="hidden" name="F1Rad1">
<INPUT TYPE="hidden" name="Permission">
<input type=button name=choice onClick="window.open('optionPicker.html','popuppage','width=250,height=100');" value="Options"></TD>
Here is my optionPicker.html code for the pop up menu:
<html>
<head>
<script language="JavaScript">
function sendValue(s)
var boxSize= s.options[0].value;
var restrict = s.options[1].value;
window.opener.document.addNewForm.F1Rad1.value = boxSize;
window.opener.document.addNewForm.Permission.value = restrict;
window.close();
</script>
</head>
<body>
<center>
<form name=selectform>
<select multiple name=selectmenu size="2">
<option value="large">Large Text Input Area
<option value="restrict">Restricted Access
</select>
<p></p>
<input type=button value="Select Option(s) For Field" onClick="sendValue(this.form.selectmenu);">
</form>
</center>
</body>
</html> -
How to pass the values from popup window to parent's window
Hi Experts,
in my application i need to develop one popup window in that i have created 4 dropdowns and one ok button , if i willl click on that ok button the values should pass to parent window dropdownlistboxes
can any body suggest how i will get the popup window values
thanks in advance,
ramani.Hi Ramani,
I can provide few inputs on how can we control JSP 2 from JSP1.
Here is the code. Check if you can convert this to make useful to you. I am not passing values but control.
here it is:
JSP 1.
<h1>Page One</h1>
<br>
<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>.html#part1">part 1</a>
<br><br><br>
<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part2">part 2</a>
<br><br><br>
<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part3">part 3</a>
JSP 2.
<h1>Page Two</h1>
<br>
<a name="part1">
<h3>Part 1</h3>
</a>
<a name="part2">
<h3>Part 2</h3>
</a>
<a name="part3">
<h3>Part 3</h3>
</a>
This way you can move from one JSP to other.
regards
-Kedar Kulkarni
reward points if useful.
Message was edited by:
Kedar Kulkarni -
I need the code for creating popup windows and code for open and close
I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
Can anybody help me in that pls ?
Regards
Sreeni.Hi
For pop up window
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.setWindowPosition (300, 150);
window.show();
wdContext.currentYourNodeElement().setPopupAttribute(window);
For closing window code
IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
window.hide();
window.destroyInstance();
For more infornation refer this link
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
This link is very useful for you.
Regards
Ruturaj
Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM -
I have a typical popup window launched using the builtin javascript:popupURL().
I would like a Save and Close button on this popup window that does
1. Submits the popup page so that changes are saved into session state
2. Close the popup window
3. Refresh the parent window so that updates in (1) are reflected
What is the recommended way of doing this? I was thinking of the following URL redirect on the Save & Close button
doSubmit('SAVE');
window.opener.location.reload();
window.close();Do I need a same-page branch on the popup page? If so, why? If not, why? ;-)
Comments?
ThanksThis is a bit of javascript that I nicked which works well for me:
-- 1. Add the folowing to your page header or create a new page template --
-- (popup window template) and put it in the header section. --
SCRIPT LANGUAGE="JavaScript">
function loadinparent(url, closeSelf){
self.opener.location = url;
if(closeSelf) self.close();
</SCRIPT>
-- 2. Use the following to call the function. the true and false keeps the parent--
-- window open or closed. Obviously set any values in the URL. --
javascript:loadinparent(''<URL>'', true)
eg. javascript:loadinparent(''f?p=&APP_ID.:40:&SESSION.::NO::P40_ID:'||ID||''', true)
-- Inc the following comment in your header --
-- Version 1.0
-- Last Updated: May 18, 2000
-- Code maintained at:
-- http://www.moock.org/webdesign/javascript/
-- Copy permission granted any use provided this notice is unaltered.
-- Written by Colin Moock.
Simon
Maybe you are looking for
-
Sharing apps between users on 1 computer
We just gave our old MBAir to a family member. We bought some basic software for her as well. After the fact it was determined that one of her daughters would benefit by its use as well and we had her create a separate user account. Despite having wo
-
When trying to deploy a sandboxed solution containing only a feature with a simple associated event receiver from VS 2013, I'm getting the following error: Error occurred in deployment step 'Add Solution': An unknown exception occurred while executin
-
Can I use a SCSI hard drive in a SCSI CD-ROM enclosure?
I have an external SCSI hard drive which has stopped working. It has been going OK for some time, but has suddenly ceased completely, i.e. the light doesn't even come on when I plug it in. I'm guessing from this that it may be the power supply that's
-
Hello All, I am facing the problem of twice deduction of TDS on particular invoice. Once the TDS is deducted on at the time of posting of Invoive: Entry is 5000 1 31 1000000005 JCB Corporation 341.719,00-
-
BP created in CRM do not synchronize after changes in R/3
Hi, Im using CRM 5.0 and ECC 6.0. After all configurations I ve made I can now download Customers from R3 to CRM and upload customers from CRM to R3. Every changes made in CRM BP (created in CRM or downloaded from R3) are replicated to R3 correctly