Resizing popup windows

In the previous version of Safari, I could resize javascript popup windows even if they were scripted as non-resizable. In the new version I can't. Since non-resizable windows are the tool of the devil, I'm trying to find a way to disable that particular feature without disabling javascript altogether. Is there a way to do that?

ra5ul wrote:
edit: in the meantime, you can still resize those windows through either javascript or applescript.
I have no idea how to do that For now I just look up the popup's url in the source and open the page manually.

Similar Messages

  • Resizing popup window

    hello ,
    i have a problem with resizing a popup window from fullscreen to centered and smaller
    now is there anyone who can look at my js and html/css ?

    <!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" lang="en">
    <head>
        <link rel="stylesheet" title="Standard" href="styles.css" type="text/css" media="screen" />
    <script language="javascript" type="text/javascript" >
    function popupwindow(url, title, w, h)
        var left = (screen.width/2)-(w/2);
        var top = (screen.height/2)-(h/2);
        var new_left = window.screenX + (((window.outerWidth/2) - (w/2)));
        var new_top = window.screenY + (((window.outerHeight/2) - (w/2)));
        return window.open(url, title, 'width='+w+', height='+h+', top='+new_top+', left='+new_left+',toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, copyhistory=no');
    popupwindow('index.html','','500','768');
    </script>
        <script language="JavaScript" type="text/javascript" src="contentflow.js"></script><script tyle="text/javascript">
    var cf = new ContentFlow('contentFlow', {reflectionColor: "#000000"});
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
        </script>
    </head>
    <body>
        <h1 id="title"><img src="title.png"/></h1>
        <h3 style="text-align: center; margin: 10px 0 30px 0; text-decoration: none;">version 1.0.2</h3>
        <ul id="menu">
            <li><a href="index.html">start</a></li>
            <li><a href="docu.html">documentation</a></li>
            <li><a href="changelog.html">changelog</a></li>
            <li><a href="license.html">license</a></li>
            <li><a href="mailto:[email protected]">contact</a></li>
        </ul>
        <div class="maincontent">
            <p>
            ContentFlow is a flexible flow written in javascript, which can handle any kind of content.
            It's distributed under the <a href="licens.html">MIT License</a>.
            </p>
            <p>
            With ContentFlow it is now possible to have any number of flows within one web page.
            Each separately configurable, satisfying different visual needs.
            </p>
            <p>
            It's easy to implement and to extend.
            You are free to define your own methods for displaying content and interacting with it.
            You can control all aspects of the flow without loosing the ease of use.
            </p>
            <p>
            ContentFlow can handle different kinds of control, like keyboard and mouse, and can be used with and without a reflection.
            For a complete list of features and compatibilities take a look at the <a href="http://www.jacksasylum.eu/ContentFlow/features.html">feature list</a>.
            </p>
        <!-- ===== FLOW ===== -->
        <div id="contentFlow" class="ContentFlow">
            <!-- should be place before flow so that contained images will be loaded first -->
            <div class="loadIndicator"><div class="indicator"></div></div>
            <div class="flow">
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic2.png"/>
                    <div class="caption">pic2: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic0.png"/>
                    <div class="caption">pic0: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic2.png"/>
                    <div class="caption">pic2: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic0.png"/>
                    <div class="caption">pic0: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic2.png"/>
                    <div class="caption">pic2: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
            </div>
            <div class="globalCaption"></div>
            <div class="scrollbar">
                <div class="slider"><div class="position"></div></div>
            </div>
        </div>
    </body>
    </html>

  • Since update last week, unable to resize popup windows?

    I used to be able to right click in the bar above the address bar and click Size and move any one of the sides in or out to resize the popup window. Now since the upgrade, it will let me select Size but won't let me size the window, it doesnt go anywhere. Please help!

    Hi hgehring76, were you previously using Firefox 12 (released about 8 weeks ago) or the much earlier Firefox 3.6?
    Can you check this hidden preference and make sure it is set to "true": http://kb.mozillazine.org/Resizing_popups

  • Popup windows are small and cannot be resized in Firefox v31.0. v30.0 and earlier does not have this problem. Example: Hostgator's SmarterMail. XP, 7, 8.1.

    My webmail interface is SmarterMail from Plesk as supplied by Hostgator. When Firefox updated to v31.0, I lost the ability to send mail because the popup windows for "New", "Reply", "Reply All", and "Forward" are too small to enter information and cannot be resized or maximized.
    This problem does not occur with older versions of Firefox (tested 16.0.2, 21.0, 24.0, and 30.0) or with Chrome or Internet Explorer. While I am writing to you from a Windows XP Pro SP3 system, I have also verified the problem under Windows 7 Pro (x64) and Windows 8.1 (x64).
    It's not profile settings, malware, or add-ons. I've tried Firefox Safemode and I've tried "Reset Firefox".
    For the time being the workaround is to disable Firefox updates and downgrade everybody with v31 to v30. Please fix this ASAP. You have lots of people reporting it.

    As a temporary workaround, you can block website scripts from resizing windows. It's a bit of a sledgehammer, but another user who has this problem indicated that it does stop the SmarterMail script from rolling up the window.
    Here's how:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''dom''' and pause while the list is filtered
    (3) Double-click the '''dom.disable_window_move_resize''' preference to switch it from false to true.

  • Jscript popup windows do not resize properly - prior ff versions did not have this problem

    zencart ecommerce website using jscript for image popups - popup window much to small - will not follow script - prior versions of ff did not have this error - I am using ff5

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Resizing siebel In built popup windows in VMware

    Hi,
    I have installed Siebel 7.7 in windows xp using vmware as my personal laptop has got windows vista.
    when I am using tools I am facing problem with popup window as its size is too large and not able to update the window.
    For instance to Apply changes in table ,I clicked Apply button I could not update ODBC Data Source as I am unable to navigate.
    Could you please suggest me any solution for this.
    Thank You,

    Is there any suggestions for this
    Edited by: user578578 on Aug 6, 2009 7:01 AM

  • Migration from 1.6 to Apex 3.1 - Popup windows no longer working

    We just moved our application to Apex 3.1 from HTMLDB 1.6. The only thing that is not working since we migrated is the popup window that used to work. Now a window still pops up, but it is the login screen, not the expected window, and even if one logs in at that point, it just takes them back to the main screen, not to the expected popup window. Is there some setting I have to change to make it work as it did before, or does the code go somewhere else now? This is the code:
    The URL redirect of a button on the calling page: javascript:callMyPopup('P4_PRI_CONTACT_ID');
    The javascript on that same page: <script language="JavaScript" type="text/javascript">
    function callMyPopup (formItem1) {
    var formVal1 = document.getElementById(formItem1).value;
    var url;
    url = 'f?p=&APP_ID.:10:::::P10_CONTACT_ID:' + formVal1 ;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>

    As of v2.0 session IDs were required for f?p URLs. Oracle® HTML DB Release Notes Release 2.0 Part Number B16374-02
    Mike

  • Safari on Lion will not allow popup windows to return data to the website

    I have a web-based application that uses pop-up windows to capture certain user changes. One example is the user changing the default number of hours to a new specific number. The problem is that with Safari on Lion, the data does not get returned to the website.
    I have tested this function with Windows and IE, Firefox, Chrome, and Safari with no problem. I have tested it with my Macbook system running Snow Leopard and Safari, with no problem. I have tested it with my Macbook and Firefox with no problem. I've used the Firefox Firebug debugging tool with no errors found.
    Debugging has proven that the data is being captured by the popup, and it is assigned to the returnValue. However, the website never receives that data - the object is empty. This error is happening with every popup I've tried in the system covering a wide range of uses.
    The only thing I have found that fixes/masks the problem is turning on the Developer menu in Safari, and then starting Javascript debugging. In that mode the problem does not occur, but I can't find any errors to fix.
    It seems as if there is some change in Lion that affects the security of popup windows and returned data, but an internet search turns up no similar complaints. I have been able to reproduce the error on 3 different Macs running Lion.
    I have verified that pop-up windows are not blocked, and java and javascript are enabled. I've also compared the settings on my system with the failing systems and find no Safari settings that make any difference. I've tried all the simple things like system reboots, safari resets, and cookie cleaning.
    I would appreciate any ideas or information that might help. I am an experienced developer but relatively new to Mac's.
    Here is the code that calls the popup and waits for the returned data :
    if (window.showModalDialog)
    retVal = window.showModalDialog(templink, "name", "dialogWidth:275px;dialogHeight:350px");
    else
    retVal = window.open(templink, "name", "height=350, width=275,toolbar=no, directories=no, status=no, menubar=no, scrollbars=no,resizable=no, modal=yes");
    if (retVal == 'cancel')
    return;
    else {
    frmnewhrs.lid.value = tempid;
    frmnewhrs.newhrs.value = retVal;
    frmnewhrs.submit(); }
    This is the code in the popup that captures and sends the new data :
    function preSaveCheck() {
    var tempstr = document.getElementById("newhrs").value;
    if (tempstr.length > 0) {
    window.returnValue = tempstr;
    window.close();}
    Thanks, Dave

    Anti virus software installed on the Macs?
    Using a router with a Firewall?

  • TIP: Building Modal Popup Windows

    Build Modal Popup Pages
    Introduction
    The following is based on the 'How To Document' - 'Build Custom Popup Pages'.
    This How To will show the developer how to create Modal Popup windows with the ability to pass information back to the parent window.
    Example Scenario
    The example described in this how to adds a custom modal popup LOV to a form on the SCOTT.EMP table. Clicking the popup LOV link on the form page will popup a Modal LOV page that allows users to search by ENAME, JOB, and SAL. Selecting a value from this LOV page will close that popup LOV page and populate the ENAME, JOB, and SAL fields on the form page with the selected values. Additionally, had the user entered some data into the ENAME, JOB, and/or SAL fields on the form page, that data would be used in the initial search when the popup LOV page is first shown.
    Step 1 - Create a simple form page on SCOTT.EMP
    To create the form page, simply step through the HTML DB "Form on a Table or View" wizard against the EMP table accepting the defaults. For this example, create the form with a page number of one, and make sure to allow the ename, job, and sal fields to be editable. When the wizard completes, page 1 of the application should have the items P1_ENAME, P1_JOB, and P1_SAL on it as text fields.
    Step 2 - Create a popup page with search fields
    Next, create a page that's to be used as the popup window: Page 2. Ultimately, this page will have javascript, a report region, and some buttons. For now, though, just create a page 2 with the items P2_ENAME, P2_JOB, and P2_SAL on it as text fields.
    Step 3 - Set Modal popup page header requirements
    A) Modal windows by default cache the information they display. When creating a popup window which displays different information each time it is called or to allow searching the caching default must be switched off.
    Add the following meta-tag to the "HTML Header" field of the page-level attributes screen for page 2 to accomplish this:
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    B) Modal windows by default open a new window when running any redirect calls. When creating a modal popup which passes back parameters to the parent window. The modal window has to be forced to fire redirect calls within its own window rather than open a new window for the redirect.
    Add the following tag to the "HTML Header" field of the page-level attributes screen for page 2 to accomplish this:
    <base target="_self">
    Step 4 - Add Javascript call to the popup page
    Because the popup page should filter its result set based on any values that the user might have entered onto the form page, you need to add a javascript function that would pass those values off. Add the following function to the "HTML Header" field of the page-level attributes screen for page 1 to accomplish this:
    <script language="JavaScript" type="text/javascript">
      function callMyPopup (formItem1,formItem2,formItem3) {
        var formVal1 = document.getElementById(formItem1).value;
        var formVal2 = document.getElementById(formItem2).value;
        var formVal3 = document.getElementById(formItem3).value;
        var url;
      url = 'f?p=&APP_ID.:2:&APP_SESSION.::::P2_ENAME,P2_JOB,P2_SAL:' + formVal1 + ',' + formVal2 + ',' + formVal3 ;
      // IE Browsers modal popup window
      if (window.showModalDialog) {
        w = showModalDialog(url, window.self,"status:0; scroll:1; resizable:1; dialogWidth:25; dialogHeight:43");
        // w is an array returned from the modal popup containing the passback values
        if (w) {
          document.getElementById("P1_ENAME").value = w[0];
          document.getElementById("P1_JOB").value = w[1];
          document.getElementById("P1_SAL").value = w[2];
          document.getElementById("P1_SAL").focus();
      else {
      // mozilla based browsers modal popup window
      w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600", modal="yes");
      if (w.opener == null)
        w.opener = self;
      w.focus();
    </script>Though you don't need to know how to read javascript for this example, it helps to understand that this function only does one important thing: it opens a modal popup window of page two in our application while passing values to P2_ENAME, P2_JOB, and P2_SAL. It gathers those values to pass from the names of the HTML DB items provided to it. The call to this function will be added in the next step below.
    Step 5 - Add a popup link next to the P1_SAL field on the form page
    Add a link to the form page that will call the callMyPopup function above and pass it the values it needs. To do so, place the following HTML in the "Post Element Text" field attribute of the P1_SAL item:
    <~a href="javascript:callMyPopup('P1_ENAME','P1_JOB','P1_SAL');">Click for LOV<~/a>NB. remove ~ from above when deploying
    Step 6 - Add the LOV report to the popup page
    The next step is to create a report on the popup page based on the values passed from the form on page one. The tricky part of this report is providing a means for the selected values to be passed back to the form page. This can be achieved by having a column of the report render as a javascript link that would close the popup window and pass the ename, job and sal values for that row back. Start by adding a simple report region to our Modal popup page that uses a query such as:
          select ename, job, sal , 'placeholder' the_link
            from emp
           where ename like '%'||:P2_ENAME||'%'
             and (job = :P2_JOB or :P2_JOB is null)
             and (sal = :P2_SAL or :P2_SAL is null)Note that the last column in this query is just a placeholder. once the region is created, turn that placeholder into a link by doing the following:
    Navigate to the Page Definition for page 2
    Next to the name of the report region created in step 6, Click Q
    Next to the column THE_LINK, click the edit icon
    In the "Link Text" field enter the string "select"
    In the URL field enter: javascript:passBack('#ENAME#','#JOB#','#SAL#'); Click the "Apply Changes" button
    Step 7 - Add the javascript function to the Modal popup page to pass selected values to the (parent) form page.
    In the previous step you added a call to a javascript function, passBack. Now add that function to the top of Modal popup page 2. In the same manner as step 4 above, add that passBack function to the page 2 by putting it in the "HTML Header" field of the page-level attributes screen. The function should look similar to the following:
    <script language="JavaScript">
       function passBack(passVal1, passVal2, passVal3)
         // IE Browser return the passback values in an array
         if (window.showModalDialog) {
           var retVal = new Array(passVal1, passVal2, passVal3);
           window.returnValue = retVal;
           window.close();
         // Mozilla based browsers right the passback values directly into the parent window
         else {
           opener.document.getElementById("P1_ENAME").value = passVal1;
           opener.document.getElementById("P1_JOB").value = passVal2;
           opener.document.getElementById("P1_SAL").value = passVal3;
           opener.document.getElementById("P1_SAL").focus();
           close();
    </script>This function simply sets the values of P1_ENAME, P1_JOB, and P1_SAL with the values of the whatever's stored to the three HTML DB item names passed to it. It also closes the current window and puts the cursor back into the P1_SAL field.
    Step 8 - Polishing
    The basic functionality of this custom modal popup window has been created in steps 1 though 7. To make its usage a little more friendly, it's advisable to add Cancel and Search buttons to the popup window page. The Search button should just be added as a regular button that branches back to the page 2. Adding this button allows users to re-query for LOV options without having to return to our form page. The Cancel button should be created with an "Action" of "Redirect to URL". The "URL Target" of the button should be javascript:window.close(). As the code suggests, the Cancel button would just close the popup window (with no values returned).
    Hope this is of use....

    Everything said above is working fine but in Mozilla small popup is coming in top left corner of browser..
    so please help me so that it is opened in proper width and height in mozilla.

  • How to pass value to popup window

    Hi all,
    I think it is simple but i am not having clear idea about this.
    In my case, i have a table in which one column contains a command link. on pressing this link i will get details for any particular row.
    now when i am not using popup and showing the details in the same page, i am getting output.
    but when i am invoking popup, then on clicking that link popup window opens and displays blank screen.
    I tried setting partial triggers on the popup to table and setting content delivery to immediate but still not getting output.= in popup window.
    Please suggest any solution.
    TIA,
    Bob

    Hi Navneeth,
    Below is my code in which i have a column Payload.
    I want to have a link "view Payload" in this column which executes a method and shows the result in a popup.
    when i am invoking popup inside the same link as in below code, it is not working.
    <af:table value="#{bindings.SerachResultVO1.collectionModel}" var="row"
    rows="#{bindings.SerachResultVO1.rangeSize}"
    emptyText="#{bindings.SerachResultVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.SerachResultVO1.rangeSize}"
    rowBandingInterval="0"
    selectionListener="#{bindings.SerachResultVO1.collectionModel.makeCurrent}"
    rowSelection="multiple" id="t1" autoHeightRows="25" width="680"
    contentDelivery="immediate">
    <af:column sortProperty="InterfaceId" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.InterfaceId.label}"
    id="c6" rendered="false">
    <af:outputText value="#{row.InterfaceId}" id="ot1">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.SerachResultVO1.hints.InterfaceId.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="InstanceId" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.InstanceId.label}"
    id="c10" rendered="false">
    <af:outputText value="#{row.InstanceId}" id="ot6"/>
    </af:column>
    <af:column sortProperty="TransactionId" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.TransactionId.label}"
    id="c8" align="center" width="105">
    <af:outputText value="#{row.TransactionId}" id="ot10"/>
    </af:column>
    <af:column sortProperty="PayloadSequence" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.PayloadSequence.label}"
    id="c7" rendered="false">
    <af:outputText value="#{row.PayloadSequence}" id="ot18"/>
    </af:column>
    <af:column sortProperty="PayloadStage" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.PayloadStage.label}"
    id="c4" align="center" width="105">
    <af:outputText value="#{row.PayloadStage}" id="ot4"/>
    </af:column>
    <af:column sortProperty="CreationDate" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.CreationDate.label}"
    id="c9" align="center" width="105">
    <af:outputText value="#{row.CreationDate}" id="ot3">
    <af:convertDateTime pattern="#{bindings.SerachResultVO1.hints.CreationDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column id="c12" headerText="*Payload*" align="center" width="105">
    <af:commandLink text="*view Payload*" id="cl1"
    *actionListener="#{bindings.getPayload.execute}"*
    disabled="#{!bindings.getPayload.enabled}">
    <af:setPropertyListener type="action"
    to="#{bindings.trans_id.inputValue}"
    from="#{row.TransactionId}"/>
    <af:setPropertyListener to="#{bindings.inst_id.inputValue}"
    type="action" from="#{row.InstanceId}"/>
    <af:setPropertyListener to="#{bindings.interfaceid.inputValue}"
    from="#{row.InterfaceId}" type="action"/>
    <af:setPropertyListener to="#{bindings.payload_seq.inputValue}"
    type="action"
    from="#{row.PayloadSequence}"/>
    <af:setActionListener from="#{true}"
    to="#{viewScope.resultIterator}"/>
         *<af:showPopupBehavior popupId="p1"/>*
    </af:commandLink>
    <af:popup id="p1" contentDelivery="lazyUncached"
    partialTriggers="::t1">
    <af:dialog id="d1" type="ok" resize="on" >
    <af:panelFormLayout id="pfl3" partialTriggers="::t1 c12">
    <af:panelLabelAndMessage label="#{bindings.intname.hints.label}"
    id="plam4">
    <af:outputText value="#{bindings.intname.inputValue}"
    id="ot13"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.payload_data.hints.label}"
    id="plam3">
    <af:outputText value="#{bindings.payload_data.inputValue}"
    id="ot14"/>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:dialog>
    </af:popup>
    </af:column>
    </af:table>
    but when i am invoking popup after executing method in the command link *popup*, it is giving me result. as shown in the below code:
    <af:column id="c12" headerText="*Payload*" align="center" width="105">
    <af:commandLink text="*view Payload*" id="cl1"
    *actionListener="#{bindings.getPayload.execute}"*
    disabled="#{!bindings.getPayload.enabled}">
    <af:setPropertyListener type="action"
    to="#{bindings.trans_id.inputValue}"
    from="#{row.TransactionId}"/>
    <af:setPropertyListener to="#{bindings.inst_id.inputValue}"
    type="action" from="#{row.InstanceId}"/>
    <af:setPropertyListener to="#{bindings.interfaceid.inputValue}"
    from="#{row.InterfaceId}" type="action"/>
    <af:setPropertyListener to="#{bindings.payload_seq.inputValue}"
    type="action"
    from="#{row.PayloadSequence}"/>
    <af:setActionListener from="#{true}"
    to="#{viewScope.resultIterator}"/>
    </af:commandLink>
    <af:commandLink text="*popup*" id="cl11" rendered="true">
    *<af:showPopupBehavior popupId="p1"/>*
    </af:commandLink>
    <af:popup id="p1" contentDelivery="lazyUncached"
    partialTriggers="::t1">
    <af:dialog id="d1" type="ok" resize="on" >
    <af:panelFormLayout id="pfl3" partialTriggers="::t1 c12">
    <af:panelLabelAndMessage label="#{bindings.intname.hints.label}"
    id="plam4">
    <af:outputText value="#{bindings.intname.inputValue}"
    id="ot13"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.payload_data.hints.label}"
    id="plam3">
    <af:outputText value="#{bindings.payload_data.inputValue}"
    id="ot14"/>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:dialog>
    </af:popup>
    </af:column>
    I need to have both the functionalities in the same link. please suggest how i can achieve this.
    Thanks,
    Vishal

  • Can I launch a new JSP on a popup window, when cliking a HTMLB button ?

    Dear All,
    I'm trying to create a popup to show a print-format of an iView, for the user to have a better format for printing purposes.
    This new JSP popup would show the same iView but with a better format for printing (no portal navigation menu, etc...)
    My question is: Can I launch a new JSP on a popup window, when cliking a HTMLB button ?
    Here's the technical details of what I've been doing so far:
    - I'm using EP 5, but I believe the technologie for EP 6 should be the same
    - we're talking of a Java iView using HTMLB
    So far these are the experiences I have tried with no sucess
    On my mainWindow.jsp I have this piece of code, but it doesn't work:
    (etc...)
    <%
    ResourceBundle res = componentRequest.getResourceBundle();
    IResource rs = componentRequest.getResource(IResource.JSP, "printFormat.jsp");
    String JSP_URL = rs.getResourceInformation().getURL(componentRequest);
    %>
    (etc...)
    <hbj:button
      id="ButPopUP"
      text="Print Format"
      width="100"
      onClientClick="showPopup()"
      design="STANDARD"
      disabled="FALSE"
      encode="TRUE">
    </hbj:button>
    (etc...)
    <script language="Javascript">
    function showPopup(){
    mywindow = window.open ("<%=JSP_URL %>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1,
    resizable=1, width=600,height=400");
    htmlbevent.cancelSubmit=true;
    </script>
    (etc...)
    Thank you very kindly for your help.

    Hi Kiran,
    sorry for the late reply.
    Thank you so much for your JAR file.
    Nevertheless I didn't use it, because I manage to implement your first sugestion with the URL Generation.
    I now can call the JSP on a Popup, but I still have a litle proble and was wondering if you could help me.
    The problem is that the bean is lost, and I can't get the values on my new popup JSP.
    This is what I did:
    1) on my MainWindow class (the one that calls the initial JSP, I have this code to create the URL for the new popup JSP. This is the code:
    IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
    IPortalUrlGenerator portalGen = null;
    ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
    if (specUrlGen instanceof IPortalUrlGenerator) {
         portalGen = (IPortalUrlGenerator) specUrlGen;
         try {
              String url = null;
              url = portalGen.generatePortalComponentUrl(request, "Forum_IS.popvalues");
              myBeanDados.setPopupURL(url);
         } catch (NullPointerException e) {
              log.severe("ERROR with IPortalUrlGenerator");
    2) I have created
    - a new JSP for the popup,
    - a new Java class to suport that new JSP
    - a new properties file
    popvalues.properties with the following code:
    ClassName=MyPop
    ServicesReference=htmlb, usermanagement, knowledgemanagement, landscape, urlgenerator
    tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
    MyPop is the new class that is associated with the new JSP popup.
    The problem now is that the bean was lost.
    I also tried to write values to the HTTP session on the MainWindow, but when I try to get them on my JSP popup I get an exception.
    How can I pass the values (or beans) to my new popup JSP ?
    Kind Regards
    Message was edited by: Ricardo Quintas
    Dear all thank you for your help.
    I have managed to solve the problem I had.
    Here's the problem + solution sumary.
    I have to remind you that we are talking of EP 5, PDK 5 (Eclipse version 2.1.0), with JAVA JDK 1.3.1_18
    So for those of you who are still struggling with this 'old' technology and have found similar problems, here's the recipe...
    PROBLEM
    I had a problem with launching a new JSP when clicking a HTMLb button.
    I wanted to create a JSP to present a 'print-format' of an iView.
    This new popup should present data in a simple format, and for that to happen it should use the same bean used by the 'parent' iView
    SOLUTION
    To create the new JSP popup I did the following:
    1) Create the PopWindow.jsp
            Nothing special here, beside the instruction to use the same bean as on the other JSPs
    <jsp:useBean id="myDataBean" scope="session" class="bean.DataBean" />
       2) Create the associated JAVA class
    MyPop.java.      This class will be used to call the PopWindow.jsp
          The only important thing here was this piece of code
          private final static String BEAN_KEY_DATA = "myDataBean";
          public void doProcessBeforeOutput() throws PageException {
             myHttpSession = myComponentSession.getHttpSession();
             myDataBean = (DataBean) myHttpSession.getAttribute(BEAN_KEY_DATA);
             myComponentSession.putValue(BEAN_KEY_DATA, myDataBean);
             this.setJspName("PopWindow.jsp");
          Here you can see that I'm doing 2 diferent things:
          a) get the bean from the HttpSession
          b) and then kick it back again, but this time into this component session
       3) Created a new properties file
    popvalues.properties.      This file contains the follwing code:
          ClassName=MyPop
          tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
          Contrary to some opinions on this discussion,
    you can't call a component in EP 5 by using ComponentName.JSPname.
    Or at least that didn't work for me.
    You nee to use an aproach like this one ComponentName.NewProperiesFileName
    4) On my main class MainClass.java (for the parent iView) I haded the following code on the event doInitialization: 
            IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
            IPortalUrlGenerator portalGen = null;
            ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
            if (specUrlGen instanceof IPortalUrlGenerator) {
                 portalGen = (IPortalUrlGenerator) specUrlGen;
                   try {
                       String url = null;
                       url = portalGen.generatePortalComponentUrl(request, "MyMainApplication.popvalues");
                       myDataBean.setPopupURL(url);
                       } catch (NullPointerException e) {
                          etc...
          The idea here was to build dinamicaly a URL to call the popup.
          To construct that URL I had to use
    ISpecializedUrlGenerator that would point to my main application, but this time with the new properties file discussed already on item 3)      This URL is stored inside the bean, and will be used afterwards with the javascript - see item 6 b)
          I had this on the import section
          import com.sapportals.portal.prt.service.urlgenerator.IUrlGeneratorService;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.IPortalUrlGenerator;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.ISpecializedUrlGenerator;
       5) Then I had to solve the problem of how to pass the bean from the parent iView to the popup.
          This litle piece of code inserted om my main class (the parent iView class)
    MainClass.java solved the problem: 
          import javax.servlet.http.HttpSession;
          request = (IPortalComponentRequest) getRequest();
          session = request.getComponentSession();
          session.putValue(BEAN_KEY_DATA, myDataBean);
          myHttpSession = session.getHttpSession();
          myHttpSession.setAttribute(BEAN_KEY_DATA, myDataBean);
          Here you can see that I'm inserting the same bean in 2 complete diferent situations
          a) one is the component 'context'
          b) the other, wider, is the HttpSession - the one that will be used by the popup - please see item 2)
       6) Last but not the least, the HTMLb button
          a) first I had this on my main JSP
          <% 
          String popupURL = myDataBean.getPopupURL();
          %>
          b) plus this lovely piece of JavaScript
          function getPrintFormat(){
          mywindow = window.open ("<%=popupURL%>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1, resizable=1, width=600,height=400");
          htmlbevent.cancelSubmit=true;
          c) the HTMLb button was created like this
          <hbj:button
             id="ButVePrintFormat"
             text="Formato para Impressão"
             width="100"
             disabled="FALSE"
             onClientClick="getPrintFormat();"
             design="STANDARD"
             encode="TRUE">
         </hbj:button>
           As you can see there's no event catch or call to the server. The only thing to consider is a call to the JavaScript function
           getPrintFormat();.
           Está todo lá dentro.
           That's all there is to it.

  • Need to have a popup window from a link in a cfgrid

    I've got a cfgrid that is displaying some program
    information. I want the program number to have a link to a pop-up
    window which contains an edit form for that program.
    Here is the script for the popup window I used on my page
    before I implemented a cfgrid:
    <script type="text/javascript">
    function loadEditForm(id) {
    windowReference =
    window.open('frmPrograms.cfm?CFGRIDKEY='+id,"editProgramWindow",'scrollbars=no,menubar=no ,height=500,width=750,resizable=no,toolbar=no,location=no,status=no');
    </script>
    I've already changed the url to use the CFGRIDKEY.
    Here are my cfgridcolumns:
    <cfgridcolumn name="program_id" display="no">
    <cfgridcolumn name="program_name" header="Name"
    bold="yes" href="?" hrefkey="program_id" width="300"
    type="string_noCase">
    <cfgridcolumn name="description" header="Description"
    width="650" select="no">
    I tried making the program_name cfgridcolumn have an
    href="javascript:loadEditForm(#URLEncodedFormat(Trim(program_id))#)"
    but this isn't working. I get an error message that the variable
    program_id doesn't exist.
    I've done a grid that links to an edit form in another
    section, the difference is that wasn't using a pop-up window. And I
    can send my form to a new window using target=_blank, but I really
    would rather use a pop-up window for this.

    This link may help.
    http://www.danvega.org/blog/index.cfm/2008/3/4/ColdFusion-8-Grid-Context-Menu-Part-II

  • How to set the width and heigh in the popup window

    Hi All,
    I tried to show a report in a popup window style.
    In the column link section, I defined the URL like the following:
    javascript:popupURL('f?p=&APP_ID.:128:&SESSION.::&DEBUG.::P128_PAY_RATE,P128_PAY_TERMS:#PAY_RATE#,#PAY_TERMS#'). how and where to set the height and width for page 128?
    Thank you,
    spark

    Here is a sample of the JavaScript function I re-use that opens a popup window. You'll notice that it includes the width and height of the popup window:
      function callTCPopup (formItem1) {
        var formVal1 = formItem1;
         var url;
      url = 'f?p=&APP_ID.:1111:&APP_SESSION.::::P1111_TC_ID:' + formVal1;
      w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
      }You could also look at using a Modal Page (Skillbuilders' plugin - watch the video for use).

  • Blocking popup windows even when disabling the popup blocker

    For quite some time now, Firefox has been blocking essential popup windows on my computer. It's not just those annoying ones, even those when I am trying to write an email and similar things. I have disabled the popup blocker and it does not change anything at all. It does not alert me that it has blocked anything either, it is simply as if I never clicked anything in the first place. I have tried adding exceptions to my popup blocker, and this does not work either. This is really frustrating and is interfering with my daily use of firefox, and forces me to use crappy explorer which does not block things. What can I do?

    Hi Sachin
    Thank you so much for the reply.
    About your request, the codes that I used are:
    HTML for the PopUp:
    <SCRIPT LANGUAGE="JavaScript">
    function popUp(URL) {
    var iMyWidth;
    var iMyHeight;
    //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyWidth = (window.screen.width/2) - (250 + 10);
    //half the screen height minus half the new window height (plus title and status bars).
    iMyHeight = (window.screen.height/2) - (225 + 50);
    //Open the window.
    var win2 = window.open("http://xarao.businesscatalyst.com/caipiroska.html","Window2","status=no,height=450,width=500,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
    win2.focus();
    </SCRIPT>
    For the Link:
    javascript:popUp('http://xarao.businesscatalyst.com/caipiroska.html')
    Of course for all the different links in the page I've changed the http of each image in both codes.
    http://xarao.businesscatalyst.com/cocktails.html
    Thank you once more.
    Best regards,
    Augusto

  • Popup Window- Button Actionscript

    Does anyone have the code that combines actionscript w/ java
    in order to create a popup window from a flash button? I couldn't
    get this to work- on (release) {
    getURL
    ("javascript:NewWindow=window.open('index.html','newWin','width=400,height=300,left=0,top =0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
    NewWindow.focus();void(0);");

    ggshow, I tried your component, but I can't figure out where
    to place the
    my_btn.onPress = function() {
    my_popup.openWindow("
    http://www.ggshow.com",
    "my_window");
    I would be very happy if you, or anyone else could solve this
    trivial problem for me
    thanks
    /magnus

Maybe you are looking for

  • How do I create a shortcut to type a text string?

    I often need to enter my email address into various text data entry fields when online. I would like to be able to use some simple combination of keys to have the address typed automatically. How do I construct such a capability?

  • Yahoo Messenger: Display Icons not showing

    I'm using Yahoo Messenger 3.0 beta 4 on OS 10.4.11. Only about half the display images in my contacts list are showing, no matter whether the contact is online or offline. However on my iPhone, Yahoo Messenger shows the display image for almost every

  • Not able to convert html page to SAPUI5

    Hi , i am new to SAPUI5 and i want to convert my website to SAPUI5 which is made in HTML5. But i am unable to do. I have used listbox and search option in my page. And i do not know how to get that in SAPUI5. can you tell that is it possible to conve

  • Connecting a hi res  Samsung display to mac book pro with retina

    I am attempting to connect a Samsung s27a850D  monitor rated at 2560x1440 to my 15" macbook pro with retina however the I can not  increase the resolution in system preferences above 1920X1080  - I can not find a driver from samsung and called apple

  • PDA compatability with MAC OS X

    I am not computer intelligent and want to get a PDA predominantly to use at work with epocratesRx pro which requires 4.3 MB of memory. I might also add ER Suite (3.62- MB). Speed is very important to me, and I would like a light weight PDA. Ideally i