Javascript popup

Hi everybody,
I've programmed a Javascript popup (window.open ... window.document.write).
This does not work in the EP running on Internet Explorer 6.0 SP 1 (no problems in my PDK).
In the EP this script only open the new window, but without contents.
all help would be appreciated ,
Thanks in advance,
David Reifs

Relaxing the domain in the popup allows the main and popup windows to 'talk' to each other, but the code shown in a previous post (win1.document.write('test')) cannot be used to relax the domain since the main window cannot write to the popup until it's domain has been relaxed.
One solution (based on the Portal's Date Picker popup) is to:
1. Set a Javascript variable in the main window to the desired HTML
2. Open the popup with the URL of a HTML page that relaxes the domain then writes the HTML from the variable in the main window.
For example:
1. Create a static HTML page called 'empty.html' to be displayed in the popup:
<html>
<head>
<script language="JavaScript">
  if (window.document.domain == window.location.hostname) {
    if (document.domain.indexOf('.') != -1) {
      document.domain = document.domain.substring(document.domain.indexOf('.')+1);
  document.write(window.opener.myHtml);     
  this.focus();     
</script>
</head>
<body>
</body>
</html>
2. Use code like the following to create a URL to this static HTML page:
IResource htm = request.getResource(IResource.STATIC_PAGE, "htm/empty.htm");
String emptyUrl = htm.getResourceInformation().getURL(request);
3. Use code like the following Javascript to open the popup, and set the HTML to be displayed in the popup:
var myHtml = "";
function openPopup(title, emptyUrl, theHtml, windowName) {
  myHtml = theHtml;
  var atts = 'top=0,left=0,height=200,width=200,resizable=yes,menubar=yes,scrollbars=yes,status=yes';
  var myApp = window.open(emptyUrl, windowName, atts);
  if (myApp) {
    myApp.focus();
  else {
    alert('You may have unrequested popup blocking on.');
4. Then use code like the following to create the button that displays the popup:
<span id='myPopupButton' class='sapBtnStd' title='Click to open popup'
onClick="openPopup(
   'My Pop Title',
   '<%= emptyUrl %>',
   '<h1>Hello World</h1><b>It's great to be alive.</b>',
   'MyPopUp')">
  Open My Popup
</span>
A bit complicated when all you want is a pop up - but it works.

Similar Messages

  • How do I stop OSX from switching to First-Plan when Javascript popup on Minimized Window appear?

    I'm running OSX Mavericks 10.9.5, Firefox 39.7.0.2
    What happens is that i'm using an automated script with Selenium for automatic-forms-filling.
    Everything is working fine, just like it does on LinuxMint, but the problem is that when i bring another window to first plan (of any program at all) the "minimized" window running the automatic forms gets "maximized" i.e. brought to first plan when a javascript popup appears, thus not enabling me to run that window on background.
    Is there a way to run Firefox on OSX in such a way that Windows don't get switched to first plan when PopUps appear? It doesn't seem to have this behavior on LinuxMint.

    Hello!
    Maybe this links can help you:
    https://support.mozilla.org/pt-BR/kb/solucoes-de-problemas-com-plugins-como-flash-java
    https://support.mozilla.org/pt-BR/kb/como-desativar-applets-java
    This link scan your plug-in's and search for updates:
    https://www.mozilla.org/pt-BR/plugincheck/

  • Javascript popups that open in same window causing focus problem

    I have been using javascript popups in actionscript buttons
    for some time with no issues. However, on a specific movie I have 2
    button links, each of which opens a pdf file. I need each pdf to
    open using the same new window to avoid multiple new windows
    opening.
    This works fine on the first link I open - the new window
    appears on top of the main window. The second link, however, opens
    underneath the main window despite the focus() code. This only
    happens in IE - works fine in Firefox.
    Code used:
    link3_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/first.pdf','newWin22','width=700,height=500,left =1
    0,top=10,toolbar=No,location=No,scrollbars=Yes,sta
    tus=Yes,resizable=Yes');NewWindow.focus();void(0); ");
    link4_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/second.pdf','newWin22','width=700,height=500,lef t=
    10,top=10,toolbar=No,location=No,scrollbars=Yes,st
    atus=Yes,resizable=Yes');NewWindow.focus();void(0) ;");
    Any help would be appreciated. Thanks.

    This is how the code should look:
    link3_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/first.pdf','newWin22','width=700,
    height=500,left=10,top=10,toolbar=No,location=No,scrollbars=Yes,status=Yes
    ,resizable=Yes');NewWindow.focus();void(0); ","_self");
    link4_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/second.pdf','newWin22','width=700,height=500,lef t=
    10,top=10,toolbar=No,location=No,scrollbars=Yes,st
    atus=Yes,resizable=Yes');NewWindow.focus();void(0) ;","_self");
    }

  • Javascript popup in dynamic report

    Hello,
    I want to be able to use Javascript popup window from a dynamic report in Apex 4.0. Is there anything built-in to help me out? Or should I use my own javascript function in the header and call it?
    My idea would be that one column would have a icon with a link that calls a javascript function to popup a window.
    Any suggestions?
    Thanks all
    Btw, what is the markup for scripts, again?

    Try:
    javascript:popupUR

  • Syntax Error In Javascript Popup Window

    I'm wondering if anybody can help me out here with a curious bit of code. I'm using GoLive 9 to generate Javascript popup windows. They seem to work fine, but when I check the syntax I get these errors:
    Line 22 Unexpected PCDATA
    Line 24 The Corresponding start tag is missing
    Specifically, it references this code:
    </script>
    //-->
    </script>
    But every time I try to delete or modify those lines I lose the link to my css file and can't link it back. Does anybody out there with a whole lot more brains than me have a solution? Remember, I'm stupid, so if you have a fix I'd appreciate it being explained as simply as possible. Thanks. BTW here's the entire code for the Javascript popup page below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Adobe GoLive" />
    <title>1408</title>
    <script type="text/javascript"><!--
    <script type="text/javascript">
    //Global var to store a reference to the opened window
    var openedWindow;
    function openWindow()
    openedWindow = window.open('moreinfo.htm');
    function closeOpenedWindow()
    openedWindow.close();
    </script>
    //-->
    </script>
    <link href="../../../BAD/michaelthibault.com/css/agl-styles.css" rel="stylesheet" type="text/css" media="all" />
    <link href="../../../BAD/michaelthibault.com/css/java.css" rel="stylesheet" type="text/css" media="all" />
    <style type="text/css" media="all"><!--
    a:link { color: #838383; }
    a:active { color: #838383; }
    .dsR1 /*agl rulekind: base;*/ { width: 480px; height: 260px; }
    #media { position: absolute; top: 50px; left: 50px; width: 480px; height: 260px; z-index: 1; }
    #pause { position: absolute; top: 320px; left: 50px; width: 180px; height: 15px; z-index: 2; }
    #close_a { position: absolute; z-index: 3; top: 336px; left: 50px; width: 180px; height: 19px; }
    --></style>
    </head>
    <body>
    <div id="media">
    <object class="dsR1" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="204" width="480" align="left">
    <param name="enablejavascript" value="true" />
    <param name="bgcolor" value="#1a1a1a" />
    <param name="src" value="../../media/01_trailers/1408_tlr1r_h.480.mov" />
    <param name="autoplay" value="true" />
    <param name="controller" value="false" />
    <embed align="left" height="204" pluginspage="http://www.apple.com/quicktime/download/" src="../../media/01_trailers/1408_tlr1r_h.480.mov" type="video/quicktime" width="480" controller="false" autoplay="true" bgcolor="#1a1a1a" enablejavascript="true"></embed>
    </object></div>
    <div id="pause">double click in center to pause</div>
    <div id="close_a">
    <a href="javascript:self.close();">close window</a></div>
    <p></p>
    </body>
    </html>

    You have a script tag nested inside another script tag. Try changing this:
    < script type="text/javascript">< !--
    < script type="text/javascript">
    //Global var to store a reference to the opened window
    var openedWindow;
    function openWindow()
    openedWindow = window.open('moreinfo.htm');
    function closeOpenedWindow()
    openedWindow.close();
    < /script>
    //-->
    < /script>
    ...to this...
    < script type="text/javascript">< !--
    //Global var to store a reference to the opened window
    var openedWindow;
    function openWindow()
    openedWindow = window.open('moreinfo.htm');
    function closeOpenedWindow()
    openedWindow.close();
    //-->
    < /script>

  • JavaScript Popup Window

    Hi, has anyone done an example where you are at a page, say Page1.jsp that has a text box and a button, when you click on the button a javascript popup window must open(Page2.jsp). Page2.jsp has a text box and a button. The user will enter a value in the text box and when they click the button it must close the popup window and populate the text box on Page1.jsp with the value entered on Page2.jsp.
    Is this possible in JSF, I have tried but it doesn't work. On the popup windoow botton I have javascript code that saves the value in the session, submits the parent page and then closes the popup window.
    On the parent page init, I look for the value saved in the session var and set the textbox's text to it. When I read the value of the text box, it is right but on the screen the value does not show up at all,
    Does anyone have any idea, I can't seem to understand at all what could be wrong here.

    Hi,
    You can use this code:
    1. in the parent form you have a button and a text field named "textCallClass".
    2. in the popup window you have listbox and a button.
    When the button on the popup window is clicked, the selected list item is returned.
    In you popup window, button on_click :
                        <script>
                            function handleOK() {
                                var myform      = document.forms[0];
                                var listControl = myform['form1:listboxID'];
                                var openerField = window.opener.document.getElementById("form1:textCallClass");
                                if (listControl.selectedIndex == -1) {
                                    alert ("Please select an item from the list !");
                                    return false;
                                else {
                                    openerField.value = listControl.options[listControl.selectedIndex].value;
                                    window.close();
                        </script>In the parent form, button on_click:
                            function handleCallClassPopup() {
                                window.open("CallClassLookup.jsp", "Lookup", "width=250,height=300");
                            }A better way is to use the SessionBean to store and retrieve the data.
    Catalin Florean.

  • Javascript popup link not working

    I've searched everywhere so trying to post here to see if anyone has encountered this.  I have a javascript popup link in a PDF.  Using Reader 9 and IE8.  When I click the link it asks me if I want to allow or not.  When I say allow, I then get an IE error that reads:
    Internet Explorer cannot download file  .
    Unspecified Error
    I've noticed that if I already have IE running, then the link works.  But if I don't have an IE window open I get the error.  The link looks like this:
    javascript:void(window.open('http://servername/appname/apppage.aspx?id=2','_blank','width=700,height=500,tool bar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0'))
    This link has to be a javascript window.open based on how it is generated.  The PDF is generated by SQL reporting services and the online version of the report needs to launch a new window for this application - the PDF is created directly from the online version of the report.

    Please repost in the Acrobat Scripting forum.

  • Javascript Popup causing flash problems

    Hi
    I have a popup window that shows up over flash, and when I
    close it the flash objects gets all weird. It stops drawing, and
    does not work properly. If I remove the javascript popup window
    from the DOM entirely everything is fine. Can someone point me to
    what I am doing wrong.
    I'm using the YUI libraries, and specifically the Dialog
    widget.
    Thanks
    A.J.

    i use this to open a new popup window
    on (release) { getURL("javascript:window.open('
    http://www.domain.com','Wname','width=950,height=600,top=20,left=20,toolbar=false,scrollba rs=yes,resizable=false,menubar=false,status=false');
    void(0);");

  • Retaining BSP page chages with Javascript popup window

    Hi Experts
    We are using a customized BSP application for our performance
    Management. To propmt users for saving their appraisal documents
    before a session timeout,we used an Javascript popup message(alert
    window). This window doesnot affect the BSP page in any way.(code
    provided below)
    Per changed requirement,we now have to retain the BSP page values once
    the user clicks 'OK' on this javascript popup window. I used the page
    refresh option with script. But this is erasing the earlier values.
    Can anyone tell me,how i can holdback the BSP page values after the
    user action on the popup window. If a piece of code is provided,it
    would be greatly appreciated.
    Thanks in Advance
    Alan
    Existing code for timeout popup
    javascript code
    function remind (){
    var msg = "Your Session will expire in the next 10 minutes. Please
    save your data.";
    alert the msg(using alert box)
    <%
    data: v_rem type string.
    DATA: port TYPE STRING.
    data: l_timer type string.
    port = request->get_header_field(
    if_http_header_fields_sap=>server_port ).
    DATA: services TYPE TABLE OF ICM_SINFO.
    CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
    FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
    DATA: wait TYPE STRING.
    READ TABLE services ASSIGNING <service> WITH KEY service = port.
    wait = <service>-KEEPALIVE - 10.
    CONDENSE wait.
    ****Start Changes: Timeout
    **l_timer = wait * 60 * 1000.
    l_timer = 1 * 60 * 1000.
    ****End Changes
    concatenate `'remind(` wait `)',` l_timer into v_rem.
    %>
    <htmlb:content design = "DESIGN2002+DESIGN2003"
    sessionManagement = "TRUE"
    controlRendering = "SAP">
    <htmlb:page title = "<%= otr(ZPMDGL/TITLE_DOCUMENT) %>"
    disableBackspaceNavigation = "TRUE" onLoad pass v_rem as a parameter to setTimeout

    duplicate post locked.
    Raja

  • Retaining BSP Page values with Javascript popup window

    Hi Experts
    We are using a customized BSP application for our performance
    Management. To propmt users for saving their appraisal documents
    before a session timeout,we used an Javascript popup message(alert
    window). This window doesnot affect the BSP page in any way.(code
    provided below)
    Per changed requirement,we now have to retain the BSP page values once
    the user clicks 'OK' on this javascript popup window. I used the page
    refresh option with script. But this is erasing the earlier values.
    Can anyone tell me,how i can holdback the BSP page values after the
    user action on the popup window. If a piece of code is provided,it
    would be greatly appreciated.
    Thanks in Advance
    Alan
    Existing code for timeout popup
    javascript code
    function remind (){
    var msg = "Your Session will expire in the next 10 minutes. Please
    save your data.";
    alert the msg(using alert box)
    <%
    data: v_rem type string.
    DATA: port TYPE STRING.
    data: l_timer type string.
    port = request->get_header_field(
    if_http_header_fields_sap=>server_port ).
    DATA: services TYPE TABLE OF ICM_SINFO.
    CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
    FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
    DATA: wait TYPE STRING.
    READ TABLE services ASSIGNING <service> WITH KEY service = port.
    wait = <service>-KEEPALIVE - 10.
    CONDENSE wait.
    ****Start Changes: Timeout
    **l_timer = wait * 60 * 1000.
    l_timer = 1 * 60 * 1000.
    ****End Changes
    concatenate `'remind(` wait `)',` l_timer into v_rem.
    %>
    <htmlb:content design            = "DESIGN2002+DESIGN2003"
                   sessionManagement = "TRUE"
                   controlRendering = "SAP">
    <htmlb:page title = "<%= otr(ZPMDGL/TITLE_DOCUMENT) %>"
                  disableBackspaceNavigation = "TRUE" onLoad pass v_rem as a  parameter to setTimeout
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:32 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:34 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:35 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:36 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:36 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:37 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:38 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:39 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:40 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:40 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:44 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:46 AM

    If the BSP page is refrehed, all the user input it sent back to the server. If you don't do anything special, the input is lost and not sent back to the client again. You can go to your controller class' DO_HANDLE_DATA to read the user input, and store it in the controller class to send it back to the client.
    If you don't use controller classes, the equivalent would be onInputProcessing. A more advanced alternative would be to use MVC model binding, which would do most of the stuff automatically for you.

  • Javascript popups in an if-else jsp statement

    hey there!
    i got a question...how can i get a jsp popup box in my jsp if-else statement??
    if (rs.next()) {
    String dbValue = rs.getString("Password");
    if (password.equals(dbValue)) {
         response.sendRedirect("PersonalDetails.jsp");
    else {
         //say its wrong
    else {
         //say its not found
    that is my code. the popup boxes need to say user is not found or wrong.
    thanks!

    Try this.
    <%@ page import="java.sql.*" %>
    <HTML>
    <HEAD>
    <TITLE>Graduate Application Form</TITLE>
    </HEAD>
    <%
         Connection con      =      null;
         Statement st      =      null;
         ResultSet rs      =      null;
         String strOnLoadJS = "";
         try
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              con = DriverManager.getConnection("jdbc:odbc:fypproject","","");
              st = con.createStatement();
              String email = request.getParameter("email");
              String password = request.getParameter("password");
              String query = "SELECT * FROM Login_Details WHERE Email_Address = '" + email + "'";
              rs = st.executeQuery(query);
              if (rs.next()) {
              String dbValue = rs.getString("Password");
              if (password.equals(dbValue)) {
              response.sendRedirect("PersonalDetails.jsp");
              else {
              strOnLoadJS = " onLoad=\"javascript: alert ('User / Password Mismatch');\"";
              //return false;
              else {
              strOnLoadJS = " onLoad=\"javascript: alert ('User not Found');\"";
              //return false;
    %>
    <BODY <%=strOnLoadJS%>
    </BODY>
    <%
         catch (Exception exp)
         finally
              try
                   if (rs != null)
                        rs.close ();
                   if (st != null)
                        st.close ();
                   if (con != null)
                        con.close ();
              catch (Exception exp)
    %>
    </HTML>

  • Javascript popups open in new tab

    I'm finding that links that used to open in javascript-controlled sized popup windows now open as a new tab. Sometimes this is nice, but most of the time it's frustrating.
    Is this a setting somewhere?

    I agree, what's with this?

  • JavaScript popup code not working 4 me

    Hi,
    I am to trying to open pop windows in Flash through
    JavaScript. Now I found a number of ways to do this on the forums
    but none is working for me. When I click the swf button containing
    the pop code (embedded in html), nothing happens. I do not have pop
    windows blocked, and when I click the button in stand alone swf
    file (i.e. not embedded in html), I receive the following error
    message:
    Macromedia flash player has stopped a potentially dangerous
    operation. The following application on your computer or network
    <name of file>
    is trying to communicate with this internet-enabled location
    <unknown>
    To let this application communicate with the internet, click
    settings.
    /********** FIRST CODE ****************/
    The first was from kirupa.com. The code on the button is:
    on (release) {
    //customize the window that gets opened
    // 0 equals NO.
    // 1 equals YES.
    address = "
    http://www.google.com";
    target_winName = "google";
    width = 400;
    height = 300;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 0;
    menubar = 0;
    scrollbars = 1;
    resizable = 0;
    //sends data back to the function
    _root.openWinCentre(address, target_winName, width, height,
    toolbar, location, directories, status, menubar, scrollbars,
    resizable);
    The code on the root timeline is:
    _root.openWinCentre = function (url, winName, w, h, toolbar,
    location, directories, status, menubar, scrollbars, resizable) {
    getURL ("javascript:var myWin; if(!myWin ||
    myWin.closed){myWin = window.open('" + url + "','" + winName +
    "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar +
    ",location=" + location + ",directories=" + directories +
    ",status=" + status + ",menubar=" + menubar + ",scrollbars=" +
    scrollbars + ",resizable=" + resizable +
    ",top='+((screen.height/2)-(" + h/2 +
    "))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
    "')}else{myWin.focus();};void(0);");
    /********** SECOND CODE **************/
    The code on the button is:
    btn.onRelease = function()
    getURL("javascript:window.open('
    http://www.google.com','newWin','width=300,height=200,left=0,top=0,toolbar=No,location=No, scrollbars=No,status=No,resizable=No,fullscreen=No')");
    Nothing on the root timeline.
    Anyone got a clue what’s happening? I was wondering
    whether there was problem with settings on my computer? Also, I do
    not want to embed JavaScript code in the HTML file.
    Many thanks,
    Essaeyu

    What I want to achieve is something very basic, done n times
    on the web, but its strange that its not working on my machine. I
    am getting popups through getURL function and on HTML links but not
    from swf/javascript links. This includes linking both to the
    webpages on the internet e.g. google and pages on my machine. I
    have tried three different ways of achieving this and am attaching
    thecode. Can someone look at the files please and see what’s
    wrong/spot something I overlooked? I will be extremely grateful.
    Here is the code in the fla's (and html in one case). No
    facility to attach files else i would have done so. Though the
    flas/swf/html files can be downloaded from:
    http://www.actionscript.org/forums/showthread.php3?p=623694#post623694.
    These are three zip files posted by user essaeyu today.
    Many thanks,
    Essaeyu
    /*************** Code in the first file ****************/
    The code on the button is:
    btn.onRelease = function()
    getURL("javascript:window.open('
    http://www.google.com','newWin','width=300,height=200,lef
    t=0,top=0,toolbar=No,location=No,scrollbars=No,sta
    tus=No,resizable=No,fullscreen=No')");
    Nothing on the root timeline.
    /*************** Code in the second file ****************/
    /*Taken from kirupa.com*/
    The code on the button is:
    on (release) {
    //customize the window that gets opened
    // 0 equals NO.
    // 1 equals YES.
    address = "
    http://www.google.com";
    target_winName = "google";
    width = 400;
    height = 300;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 0;
    menubar = 0;
    scrollbars = 1;
    resizable = 0;
    //sends data back to the function
    _root.openWinCentre(address, target_winName, width, height,
    toolbar, location, directories, status, menubar, scrollbars,
    resizable);
    The code on the root timeline is:
    _root.openWinCentre = function (url, winName, w, h, toolbar,
    location, directories, status, menubar, scrollbars, resizable) {
    getURL ("javascript:var myWin; if(!myWin ||
    myWin.closed){myWin = window.open('" + url + "','" + winName +
    "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar +
    ",location=" + location + ",directories=" + directories +
    ",status=" + status + ",menubar=" + menubar + ",scrollbars=" +
    scrollbars + ",resizable=" + resizable +
    ",top='+((screen.height/2)-(" + h/2 +
    "))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
    "')}else{myWin.focus();};void(0);");
    /*************** Code in the third file ****************/
    Code in the html header
    <script language="JavaScript">
    <!--
    function spawnWindow(URL , u_name)
    var my_vin;
    my_vin = window.open(URL , u_name);
    //-->
    </script>
    Script in flash root timeline:
    btn.onRelease = function()
    getURL ("javascript:spawnWindow('
    http://www.google.com','newwin')");
    }

  • Javascript popups in page flows?

    Is there a way to make a popup window in a page flow? I want to have a
    link which will use Javascript to pop up a new window, but I don't like
    having to hard code the link to that window instead of using the page
    flow functionality.
    What I've been able to get working is:
    <script language="Javascript">
    function createNew() {
    window.open('/MyPortalWeb/mydir/create_item/create_itemController.jpf','newItemWin','height=500,width=500,scrollbars');
    </script>
    Create New Item
    Is there a way to do this with netui tags, so that I can use actions to
    direct the page flow, and still get the ability to open the link in a
    new window?
    Joe Robins                    Tel: 212-918-5057
    Thaumaturgix, Inc.               Fax: 212-918-5001
    19 W. 44th St., Suite 810          Email: [email protected]
    New York, NY 10036               http://www.tgix.com
    thau'ma-tur-gy, n. the working of miracles.

    Tanya,
    I read this hread from you. I had posted a similar issue yesterday(look for posts
    by Jack). Is ther a way to work with page flows and popup's until sp2 comes out
    in december?
    Thanks
    "tanya" <[email protected]> wrote:
    >
    Apologies, that last message was not complete...
    You can try using:
    <netui:anchor href="/myNestedFlow/Controller.jfp" anchor="A"/>
    But, one thing to note for GA, there is a limitation where you cannot
    call 2 (or
    more) pop ups and expect to maintain 2 pageflow stacks. Only the current
    pageflow
    and it's nested stack are kept in the session. Having a 2nd pageflow
    will stomp
    on this first one.
    For SP2, out sometime in dec, there will be a workaround for this:
    <netui:anchor href="../a/FlowA.jpf" target="_a">
    <netui:parameter name="jpfScopeID" value="scopeA"/>
    Page Flow A (scope "scopeA")
    </netui:anchor>
    <br>
    <netui:anchor href="../b/FlowB.jpf" target="_b">
    <netui:parameter name="jpfScopeID" value="scopeB"/>
    Page Flow B (scope "scopeB")
    </netui:anchor>
    Each scope has its own idea of the current page flow and the current
    stack
    of nested page flows.
    -Tanya
    "tanya" <[email protected]> wrote:
    How about
    Popups and pageflow don't work together in 8.1GA because only the current
    pageflow
    and it's stack (of nested pageflows) is maintained in the session. 8.1sp2
    (out
    sometime in dec) will be able to handle this. It will look something
    like this:
    <frameset cols="50%,50%">
    <frame src="../a/FlowA.jpf?jpfScopeID=scopeA" name="frameA">
    <frame src="../b/FlowB.jpf?jpfScopeID=scopeB" name="frameB">
    </frameset>
    Each scope has its own idea of the current page flow and the current
    stack
    of nested page flows.
    Joe Robins <[email protected]> wrote:
    Is there a way to make a popup window in a page flow? I want to have
    a
    link which will use Javascript to pop up a new window, but I don't
    like
    having to hard code the link to that window instead of using the page
    flow functionality.
    What I've been able to get working is:
    <script language="Javascript">
    function createNew() {
    window.open('/MyPortalWeb/mydir/create_item/create_itemController.jpf','newItemWin','height=500,width=500,scrollbars');
    </script>
    Create New Item
    Is there a way to do this with netui tags, so that I can use actions
    to
    direct the page flow, and still get the ability to open the link ina
    new window?
    Joe Robins                    Tel: 212-918-5057
    Thaumaturgix, Inc.               Fax: 212-918-5001
    19 W. 44th St., Suite 810          Email: [email protected]
    New York, NY 10036               http://www.tgix.com
    thau'ma-tur-gy, n. the working of miracles.

  • Javascript popup window for updatable report

    We have an updatable report and would like to have a pop-up window on one of the fields. What parameters do we pass to the pop-up so it can return the selected value to the correct row and column in the would report? What is the code in the pop-up to set the correct row/column in the updatable report?
    We are familiar with the process for form elements, but not for updatable reports.

    Hello,
    YOu just have to save the current working form field as a variable. So the popup javascript would look something like this.
    var gReturnElement;
    function customPopUp(pThis){
    gReturnElement = html_CascadeUpTill(pThis,'TD').getElementsByTagName('INPUT')[0];
    /*popup code here*/
    Then from the popup window you would use something like
    function customSetValue(pText){
    window.opener.gReturnElement.value = pText
    window.close();
    Is there a specifc reason you can't use the built in ones? It would be much easier for you to mantain compared to custom code.
    Carl
    Message was edited by:
    Carl Backstrom

Maybe you are looking for

  • My iPod is lagging and draining battery on iOS 7.1/7.1.1

    I have a ipod touch 5G and i recently updated to ios 7.1.1 ota and now my battery drain faster , first i have update my iPod on 7.1 via iTunes and now my keyboard lags on 7.1.1 and lags on muitasking bar and little lag on contorl center and slow lanu

  • I have a problem with my old macintosh lc ii

    I have an old macintosh LC II that I bought from a garage sale and whenever I try to use it, it turns on then shows and icon of a floppy disk with a question mark. I think I have downloaded the right thing to my floppy disk, but the person who told m

  • PO,STO and Inbound delivery flow

    Hi all, I need to know the basic flow forthe creation for the foll docs: PO Transfer Order STO(Stock Transfer Order) Inbound delivery In what sequence are these documents created?? Is there any difference between Transfer order and Stock transfer Ord

  • How to use t-code: OS41?

    Hi, I'd like to create BOM using batch input via t-code: OS41? then, which settings/custmizing shoud be maintained? and how  to use? Thanks.

  • Error message installing Mountain Lion?

    I got the orange triangle with exclamation then did a HD repair said hard drive was messed up. Had to re-boot from time machine backup. Any news on how to re-install mountain lion?