Small pop up window inside a portal page

My portal page has one html portlet. I need to have a small pop-up window on this page which contains periodically changing messages(message is retrieved from a table in the database). The popup window should appear if the message inside the popup message has changed, otherwise it should not appear.
this is my code below:
declare
cursor cur_popup is
SELECT POPUP_MSG_READ_FLG
FROM app_users
WHERE PORTAL_USER_ID = portal30.wwctx_api.get_user();
BEGIN
open cur_popup;
fetch cur_popup into msg_read;
close cur_popup;
IF msg_read = 'N' THEN
url := PORTAL30.wwv_user_utilities.get_url('CAPS.LINK_POPUP');-- links to a portal page with popup
portal30.wwv_redirect.url(p_url => url);
ELSE
url := PORTAL30.wwv_user_utilities.get_url('CAPS.LINK_without_popup');--links to a duplicate portal page without popup
portal30.wwv_redirect.url(p_url => url);
END IF;
END;
I don't want to maintain duplicate portal pages -one with onLoad=window.open('popup') and the other page without the pop up.
Pls. suggest an alternate method. How can I pass parameters to the portal page and retrieve it in my portlet's javascript? Please let me know as I need it urgently.

Hi Lavanya. I have implemented the same.
Within my oracle tags, I'm using htp.print to produce the javascript for opening the window if it has not yet been viewed. It gets a bit confusing to produce one language syntax with another, but seems to work fine - you're kind of saved by pl/sql's single quote syntax vs. javascript double quotes!
Some improvements I'd like to make are for cases where the browser has cached the content (which tells the browser to open a popup window) and to produce a receipt when the user clicks "OK" in the popup, rather than when the page is delivered.
Let me know how it goes. Sounds like a common need - maybe we should get together and publish a new portal component! :^) Thanks, Luke.
My portal page is not generated from within my pl/sql. My code just calls the link which,in turn calls the portal page. The portal page contains a html portlet, and the popup window is opened from <body onLoad = window.open(.....)>
so, i cannot use htp.p here.
Pls. help!!

Similar Messages

  • Column Link page as a pop up window instead of full page.

    I have set up a column link to pass some variables and see a nice result as a page.
    I would rather see that page show up as a pop up window rather than as a full screen page. Where can I tell my column link to show the page as a smaller version than full screen page please?
    Thanks in advance !
    JMM.
    Edited by: metropoj on Nov 16, 2010 10:43 AM

    Hi Tarun,
    Is this code set at the URL TARGET of the button?
    Have you already tried with another browser?
    Try once this way: javascript:popUp2('f?p=&APP_ID.:3:&SESSION.::&DEBUG.:::',400,300)PS*: When you're going to post any code use as delimiter.
    Regards,
    Alan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Pop-up windows from the portal showing address bar

    Hi,
    I am not sure where to post this thread, but here goes. My client has the CRM web UI which has been integrated into SAP Portal 7.3. I am not aware of how this is done as I am not familiar with CRM.
    The issue being faced is that when a user tries to create a new opportunity etc, the pop-up window opens. But an address bar is seen in the pop-up. This was not appearing when they were on an earlier version of EP.
    I am not sure where I should be looking to remove the address bar. Is this something related to the web UI and not the portal?
    Thanks & Regards,
    Vaishnavi

    Hi,
    Take a look at the following:
    [http://forums.sdn.sap.com/thread.jspa?threadID=1800949]
    [Using iView Parameters to Open Applications in Separate Window|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d2aeb9-5f92-2d10-d38d-ded09c94330d?QuickLink=index&overridelayout=true&48747879654994]
    [http://forums.sdn.sap.com/thread.jspa?threadID=124909]
    Regards,
    Alex

  • Create pop-up window before submitting the page under some condition

    I am a newbie on APEX. Anyone can help with the folowing scenario?
    After validation, in some condition (PL/SQL), I am trying to create a pop-up window with "save" and "cancel" button. If user select "save", it will go to process the page (save the record), if user chooses "cancel", it will stay on the original screen.
    Anyway I can do it?

    Hello,
    Do you mean you would like to have something like when you click on the delete button?
    A popup to confirm?
    Otherwise in APEX you've conditions, so you can select for the process for which button it needs to fire. Same for the branches (after the processes where the page is going to).
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

  • Code to get error message in small pop up window.

    Hi,
    I got this code to get error message in pop up window. But this code is giving null pointer exception.
    Can any one tell what is the exception. and how to solve it.
    IWDConfirmationDialog dialog;
              String dialogText = "Duplicate value ";
              dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(
              dialogText,
               wdControllerAPI.getControllerInfo().findInEventHandlers("ok"),
              "ok"
              dialog.open();
    Regards,
    H.V.Swathi

    Hi,
    Most probably you are getting the null pointer exception because of wdControllerAPI.getControllerInfo().findInEventHandlers("ok") as WD is not able to find the ok event handler.
    I guess you have already defined the "ok" event handler in your view .
    Considering that the name of the event handler is "ok" , you can make the following change in
    your code
    confirmDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,wdThis.WD_EVENTHANDLER_ON_ACTION_OK, "ok");
    Regards,
    Ashish

  • Button to open a small pop-up window

    what JS script can I put to open a to a pdf link in a pop up window  of 800 x 400 px dimensions

    i found, but not help you.

  • Changing Variant Pop up window name in Portal for BI reports

    Hi All,
    I have integrated Bex analyzer with portal, from which when i select variant it will open pop window to select options.. here i want to change the  pop window name as " sale order report name itself. I have changed the name of the report and it is showing in internet explorer...
    when i select variant...im getting Bex internet explorer name, instead of sales order report name.
    Please suggest where can i change this settings in portal or BIW level.
    Thanks
    Pradeep

    See if this link helps
    http://www.vrusso.com.br/blog/2011/03/unobtrusive-confirm-javascript-replacement-with-jquery-ui-dialog/Effectively you are calling a jQuery dialog box with custom buttons and events. Optionally you can hide the close button(or even the titlebar) and prevent closing the modal window when escape key is pressed.

  • Javascript pop up windows -- forces the current page to change?

    I have a really odd bug. I am testing a javascript popup window for a report. I edit the column of the report and tell it to link to a URL. For testing purposes I just put in javascript:window.open(); That takes fine. However, when I click the link in the report, it refreshes the current page, the url stays the same but the only thing I see on the page is [object]. White screen, black text. Anyone have any idea as to whats causing this? Thanks a bunch.

    Create the &lt;A&gt; like this
    &lt;A href="javascript:void(0)" onclick="javascript:fnPopup()">link&lt;/a&gt;
    or
    &lt;A href="javascript:fnPopup()"&gt;Link&lt;/a&gt;
    To achieve this I will type the following in URL
    javascript:void(0)" onclick="javascript:fnPopup()
    Note: there is no double quotes at the beggining and end.

  • Pop-up window for eBay

    I use dreamweaver to make some eBay adds for work, so I can
    just copy the code into eBay’s web site. This also allows me
    to input more pictures and links in my advert.
    Is there a way to set a behaviour so a picture will open up
    in a new smaller pop up window once the link is clicked without
    having to write “javascript:;” in the links bar and
    still keeping the original page below.
    eBay’s web site will not allow any Javascript!

    Just link to the larger image using it's full URL.
    You might also be able to use the (deprecated) "target" tag
    to laynch it in
    a new window?
    Cheers,
    Rob
    http://robgt.com/ [Tutorials and
    Extensions]
    Skype stuff:
    http://robgt.com/skype
    SatNav stuff:
    http://robgt.com/satnav

  • Trying to create a pop-up window creates 2 identical windows

    Hello,
    I am trying to accomplish the following:
    Clicking text in my webpage and causing a small pop-up window to open.  I have tried this 2 ways: the first way, I get a new tab in my browser, but it is full-sized; the second way, I get a new tab in my browser AND a small pop-up window.
    Here's the first way:
    1. highlighting the text that should be an "object."
    2. entering a URL in "Link."
    3. defining the "Target" as _blank
    This opens my link in a new browser tab.  This is good, but I'd like this to be a smaller pop-up window so that my full-sized webpage remains in the background.  Please note that if I select any other option for the "Target" or leave that box empty, my webpage is replaced by the url entered in the "link",
    Here's the second way:
    1. highlighting the text that should be an "object."
    2.  entering a URL in "Link."
    3. leaving the "Target" box empty
    4. selecting "open browser window" in "behaviors" and defining that window as a smaller size
    This opens my link in a new browser tab AND opens a smaller  pop-up of that same link.  My webpage remains in another browser tab, but is not showing in the background (I have to close both the pop-up and new browsesr tab in order to get back to my webpage).
    Dreamweaver doesn't allow me to leave the "Link" field blank and select "open browser window" in "behaviors," which I believe is causing thi redundancy.  Since my "object" is not an imported image, but rather, text (such as "click here" that I hope to turn into an object), I wonder if I have to import some kind of file (e.g. jpg, etc. ) as an object in order to achieve my goal.  Can anyone tell mw what I'm doing wrong?
    Thanks in advance for any help!
    Heather

    John,
    Thank you for your reply--since you need to use javascript for this, I take it this is either not possible or very difficult to do in Dreamweaver?
    I'm going to try your script.  May I ask a few questions first?
    1.  Can I do this for multiple links on one page, and if  so, which parts would I repeat and where/ how?
    2.  Which of the values in quotations below do I replace with my own data?  I think it's "my-file.htm," "A PopUp Window of Helpful Search + Information Links" and "open_links()"?
    3.  For the part that goes "anywhere you want in the body," do you mean by "body" the general section with that type of data in it?  Or does that mean anywhere on the page?
    4.  Finally, If I prefer not to create a button, but rather, to leave it as text with a highlighted color for a link, is that possible?  I think it would require an input type other than "='button'", but what are my other options?
    Thanks again,
    Heather

  • Creating a stationary pop up video on a web page- Help

    I am working on a web site for my company and we specialize
    in creating a lot of internet videos. I really want to create an
    effect where one of our videos can pop up on top of our web page
    with a transparent background and play through without moving as
    people scroll. The model I am using is on jokeland.com for a better
    idea of what I am talking about. Any help would be greatly
    appreciated. Thanks!

    Hi,
    Take a look to the video below
    If this is what you are looking for, check this site for the code used in the video
    Creating Small Pop-Up Windows in Adobe Muse - Muse Templates
    Please let me know if you have any other query.

  • Getting External Apps to show up inside the Portal

    Hello,
    I am able to login a user in an external
    app. Is there a way that the app opens up
    in the same window(inside the portal would be even better) as the Portal ? Currently, it
    pops up in a new window. Can I change the code which builds the external apps list (wishful thinking here)
    Sanjay

    Sanjay,
    We will have the ability to display the first screen of external applications in a future release.
    Rich
    This thread has been moved from the Oracle9iAS Portal Forum to the Orac le9iAS Portal Security and Login Server forum. It is unlocked in the Oracle9iAS Portal Security and Login Server forum and responses should be posted there.
    Thanks,
    Rich

  • Occasionally, when I try to do a Google search, numerous "opening search" pop-up windows appear. I cannot continue typing in my search until I've closed all of these pop-up windows. How do I stop them from EVER popping up again?!

    They are small pop-up windows. When I start entering in keywords to search, ever so often, these things pop-up and not just one. Many of them. Popping one upon another upon another upon another. I cannot enter anything new into the Google search box until I have closed all of these windows. And, commonly, numerous ones of them will pop up again when I enter in the next letter in my search.
    This is what it says in the pop-up box:
    Along the top it says in the light blue margin "Opening search"
    Under the above and in a white box it says:
    "You have chosen to open
    [a Windows symbol] search
    which is a: application/json
    from: https//www.google.com
    Then on the outline of an inner box, it reads "What should Firefox do with this file?" and it gives the following options:
    Open with ["Browse" button]
    DownThemAll!
    Save File [This one is checked as the default]
    Then a check-off box with the text next to it: "Do this automatically for files like this from now on.
    Under that is an "OK" button that is gray and cannot be checked and a "Cancel" button that can be. I have never done either but used the "X" in the upper right corner of the box to close out this window.
    Now I see I have limited options for "This happened" for frequency. It isn't every time Firefox is opened but it is FAR more frequent than "A few times a week". More like several times a day.

    See https://bugs.downthemall.net/ticket/2147
    Google Search Bug
    Reported by: openid:nathan wride Owned by:
    Priority: major Milestone:
    Component: Polish/Usability Version: 2.0.10
    Keywords: Google search instant save bug Cc:
    Operating System: Windows
    Description
    Hi Guys
    I have found a bug/annoying thing that occurs frequently on google. When searching, DTA trys to download the search...
    I'll try to attach a screenshot.
    Attachments
    [https://bugs.downthemall.net/attachment/ticket/2147/Screenshot.png Screenshot.png] Download (113.0 KB) - added by openid:nathan wride 4 weeks ago.
    The screenshot that shows the bug.

  • Pop up window for a log-on no longer shows up with newest version. Please help

    I have a singlesignon to a work site. A small pop-up window opens when I go to the site so I can log in. Worked great until I installed the latest version of Firefox. This particular site only works with Firefox as well. I contacted IT for the work site and they said the new Mac version of Firefox has done this to several others in the workplace. Any chance you can send me the previous version of Firefox so I can do my required work? Thank you!

    Thank you very much for your reply! I will definitely pass this along to the IT department! Smiling now!

  • Flash in portal page not working correctly

    I have two .swf movies. One .swf file is dependant on the other. e.g A.swf is dependent on B.swf. I embed A.swf in the HTML portlet. But B.swf is not being reflected only content specific to A.swf is being shown. I checked the same code deploying it on my midtier app. server and JDev and it works fine. But inside the portal page it doesn't work correctly. I placed both A.swf abd B.swf in htdoc folder and used http://localhost/A.swf and it works fine. It's only that when I use it in the portal page it doesn't work correctly. Any ideas what might be a problem. Thanks

    Hi,
    I guess, either i did not put my point across correctly or i have not understood your situation completely...
    My Understanding:
    File A depends on File B, so meaning that File A must be loading up File B internally (via dependency reference). If this is the case, then the dependancy reference is relative .. Not absolute. Meaning...
    <root_dir>
      |--> File A
      |--> File BSo, now A expects B to be available in the same directory as its origin. Translated to the web-page, it expects File B to be available at the same <browser_url> (note, not the url from where File A has originated).
    So, the solution is to make A refer to B via a direct URL. I am not sure how you do it in the flash object tags.
    thanks,
    Harsha

Maybe you are looking for