Javascript in Portal Pages

How include javascript code in Pages created by Portal ?

Tanks, Christopher
I include HTML porlet in my Home Page (created by portal), but this not work.
The javascript that i use is a "on-unload", because some Portal users don´t use the option Logout, and the session keep open.
Thanks,
Orlando

Similar Messages

  • Easy way adding javascript to portal pages?!?

    Hi,
    I know (because I've tested it) that I can put some java script into portal pages. It's easy to use them as javascript functins, but if I try to use tag to get some data from base... it's doesn't work and generate some errors...
    Please help me!
    Krzysiek
    null

    I know that easier is adding script functions as portal functions/procedures... but HOW can I add characters like " ' " inside htp.p(' '); ??? Is it POSSIBLE or NOT? maybe some other characters are required before (if I dont want to use this inside ' ' as oracle variable, but javascript variable ???
    Krzysiek

  • Javascript:void(0) error in portal page

    Hi,
        I am using EP 7.1. IE 6. when i am working in content admin, user admin or system admin some time entire roles are working fine. But in frequent way i am getting error in portal page like JavaScript: void (0) and at the mean time i am unable to work in portal like not able to create users, not able to add iView with page or some tab is not functioning at all.
    Can someone explain me the region, why this error i am getting and how we can resolve this error?
    Thanks,
    Kundan
    Edited by: Kundan 2009 on Mar 17, 2010 11:17 AM

    Hi Kundan,
    Please check with Basis for server session timeout and clear browser cache and temp files
    Also check below thread if it helps :
    http://www.topbits.com/javascript-void-0.html
    [How to enable JavaScript in Internet Explorer|http://www.topbits.com/how-to-enable-javascript.html]
    Hope it helps,
    Regards
    Arun
    Edited by: Arun Jaiswal on Mar 17, 2010 4:15 PM

  • Refreshing a single portlet rather than the whole portal page

    Ok, here's my situation.
    I have two pdk portlets on my portal that communicate through page parameters. Portlet A has a bunch of search fields, a customer drop-down list, parts drop-down list, division, etc. Portlet B takes those parameters, queries the database, and displays the results. I would like to be able to refresh portlet B without reloading the whole portal page.
    I have onchange events on all of my drop-downs that will do a javascript post back to portal, which will in turn set my page parameters, and I see there is a 'refreshPortlet' function in a javascript file that portal provides that will refresh a single portlet based on a portletReferenceId. It is normally called when a refresh button is clicked in the portlet header, but I don't see any reason I can't call it after my javascript post, that is, if I had the portletReferenceId for the other portlet. I thought about making a hidden html table on the page that, I could fill with the portlet names and ids for each portlet as they load, that way I could reference that list from any portlet. The problem is I can't figure out where the ids are coming from. Based on the code behind the button, the function is looking for something like this 646_701285_646_1_701271, but the closest thing I can come up with is this 676114_POSTCONTENTPORTLET_467414915 which I got from PortletRenderRequest.getPortletInstance().getInstanceName(). As you can see, it's not even close. Does anyone know where the correct id could be coming from? It's got to be available to me somewhere, doesn't it?
    The only other option I can think of to accomplish my goal is to use straight up ajax to display portlet B, but that kind of defeats the purpose of portal doesn't it?
    Any help would be greatly appreciated.
    Thanks,
    Doug

    You can use Ctrl+F4 to close the current tab. I don't think that you can change the Alt+F4 action with Keyconfig.

  • Background image in a portal page??

    Hi,
    How can I set a background image or watermark in a portal page instead of the plain background that comes by default.
    Regards
    Sreeram

    Ofcourse Chris, very true. I should have mentioned the workaround in the previous post itself. Infact the solution is based on your suggestion in the previous post.
    Every community page that is generated by the portal has a <div> element with a unique id. The id of div element is made up of the following string "pt-portal-content-" followed by the object id of the community page (which is unique). This <div> element has the style portalContent set to it by default.
    I knew the page I would want the background to be applied to. And I knew the portlets that would go only on this page. These portlets are content portlets created from the publisher.
    So in the presentation template code for one of these portlets I included a javascript function and set the background property of the div element, conditionally checking the div element's id to make sure that it is the community page I wanted to modify. And this javascript function is registered to the onload event.
    Regards
    Sreeram

  • Multiple Portal page loads cause Param to become undefined

    Sirs,
    I am new to this so please bear with me. I was very please to
    get SPRY "tab" and "accordion" panels to work in our PORTAL
    (oracle). The only roadblock I came across is beyond my control.
    The portal pages load twice. I cannot change that. On each page I
    have two "separate" tab panels. I need to reference one tab panel
    on another page and am using using "SpryURLUtils" param object to
    do this. The second portal page load cancels it out and instead,
    the last TABBED panel to load (no matter what ID is referenced on
    it) receives the call and opens that panel instead.
    How can I keep the "?tab=0&panel=1#OPENTHECORRECTPANEL"
    in play when coming from another page? I have tried to use the
    "javascript: undefined" but I am new to Javascript and cannot get
    it to work. (I know enough to understand what is going on but have
    no real experience in creating my own code.) Has anyone else
    experienced this and how have you overcome it.
    Any help would be greatly appreciated.

    Hi, we have the same problem. Our setting with the mdc.host works allready. But we must start the iview directly by url without out the portal around.
    We use this Url:
    https://<portal>/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES://...
    Now we have the problem that the second cookie in the other domain, will not be created?
    Have you any solution?

  • 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!!

  • Netscape 4.76 not will not display portal page

    I understand from metalink document 136120.1 that no 4.7 Netscape browsers are supported.
    I have a portal page that will not display for my 4.7x surfers.
    Is this remedied by the latest patch? Will it be a problem in v2?
    Is it clear that this basically keeps us from using portal for public sites?

    Hello,
    maybe you could try to rename the user profile, so windows will generate a new profile, when this user logs on to his machine. afterwards you can copy the important data from the renames profile to the new profile. perhaps this eliminates the problem.
    if you switch javascript off, you will also get just a small bar from the portal. maybe on this client something is installed, that switches javascipt off?
    best regards,
    Christian Schebsta

  • Include lang attribute in html tag of all portal pages

    Hi, anyone knows how is possible to include the lang in the portal pages?
    Now all pages begin with <html> but I need <html lang="es">.
    Where can I update that?
    I mean that is done by some portal service or perhaps with a file.
    all suggestions are welcomed.
    Thanks in advanced.
    Regards.

    The Javascript source URI has the value "RES_NOT_FOUND".
    If I try to access it using ".../faces/javax.faces.resource/javascript.js?ln=js" I get a blank page (contains a Html and Body only).
    If I try to access it using ".../faces/resources/js/javascript.js" I can download the javascript file from the taglib.
    If I manually copy the javascript.js file from the taglib into the enclosing project and save it in "resource/js", then the javascript source URI is resolved correctly to ".../faces/javax.faces.resource/javascript.js?ln=js" and I can downloaded it, but then it is the local copy and not the one from the taglib jar.
    Do I need some specific configuration in web.xml or other deployment descriptors, to be able to use "javax.faces.resource"?
    The only configurations whoch smells like "javax.faces.resource" is this context param: javax.faces.FACELETS_RESOURCE_RESOLVER=oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver
    In web.xml various "resource" servlets is defined (I'm not sure whether I need them, JDeveloper has created them automatically):
    a) resources = org.apache.myfaces.trinidad.webapp.ResourceServlet, maps to: /adf/*, /afr/*, /bi/*
    b) adflibResources = oracle.adf.library.webapp.ResourceServlet, maps to: /adflib/*
    I appreciate your help.

  • Email address on Portal page incorrectly copied into email form

    I have a 'staff directory' on a Portal page that contains email addresses. Upon clicking on an email address an email form pops up. However, the email address in the TO: line sometimes reflects the email address correctly, and sometimes it repeats characters from the email address - that is, my email address might be correctly copied in as Caryn@mail or incorrectly copied in as Caryncaryn@mail.
    Any help or ideas would be greatly appreciated!!

    So called e-mail obfuscation scripts may work up to a point, but client side scripts are easily defeated by turning off JavaScript.   Also, e-mail links don't work for everyone. With so many people using web mail (yahoo, hotmail, g-mail, etc...) instead of e-mail software, they may not have an e-mail client on their device.
    For many reasons, a contact form with a form to email processing script that has built-in spam protection is the way to go.
    If your server supports PHP, this script from DBMasters is good.
    http://dbmasters.net/index.php?id=4
    Tectite
    http://www.tectite.com/formmailpage.php
    Forms to Go from Bebosoft (script generating software)
    http://www.bebosoft.com/products/formstogo/overview/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How to run .EXE files from Linux Portal page?

    We have an IIS web server that runs a Photoshow_player.exe slide show program. I'm not sure if this can run from Linux Portal, but we are trying.
    The link in an IIS web page looks like this:
    <a> href="file:///\\mulsrv22\share\PCS\PhotoshowPlayer.exe" title="clean slate">clean slate</a>
    Portal is installed and running from two Linux servers. If I create a link using the above syntax, I get "can not display page" browser errors.
    I copied the entire PCS directory from the Windoz box to a Portal web_dav folder, but running the .EXE link from that Portal page gives errors indicating that the /PDS/data/.XML and /PCS/data/.jpg files can not be found.
    Any ideas on how I can run this slide show from Linux Portal?
    Thanks.
    --Don                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    if you just need to run a slideshow in you portal, why don't you use a javascript slide show ?
    Just "googleize" and you'll find tons of javascripts taht can do that.
    for example : http://www.barelyfitz.com/projects/slideshow/

  • Set isolatedHtmlContainer height when displaying portal page

    Hi,
    I have a portal application which displays portal pages from the pcd in isolatedHtmlContainer.
    The page's content is dynamic so the height is not fixed and therefore in the page's properties the height's value set to 'Automatic'
    However, when working with isolatedHtmlContainer the height could be set in pixels or percentage only (I cannot set it to 'Automatic').
    p.s
    If the height was fixed I could get it by the profile of IPortalComponentContext, but if I will do that I'll get a string like 'Automatic' which doesn't help me...)
    Thanks,
    Omri

    Hi Martin,
    I read the blog but the javascript doesn't affect my IsolatedHtmlContainer.
    Let me rephrase my question:
    In the portal innerpage I display X IsolatedHtmlContainers (my application decides how many pages to display). Each container has dynamic content (a portal page from the pcd), therefore, I have a problem setting the height of the IsolatedHtmlContainers (too low - scrolling bar, too high - blank space).
    The properties of the portal pages from the pcd are set as follows:
    isolation method - URL
    height method: Automatic
    If I display the pages without the IsolatedHtmlContainers, the 'Automatic' feature works and the page's size is OK.
    So my question is:
    Is there a way for the IsolatedHtmlContainer adjust its size according to its content?
    Thanks,
    Omri

  • How to close portal page by Web Dynpro App

    Hi There,
    I would like to close a portal page by clicking a button of a Web Dynpro App which is inside an iView on that page.
    Is this possible or not?
    Bertil

    Bertil,
    First, it is very bad decision to make decisions instead of user. Just redirect him to logoff page and let close window himself.
    In WebDynpro you may use <b>Exit plug</b> on interface view with parameter <b>Url</b> (notice the case) of type string.
    Then you may previously fire this plug with JavaScript url: javascript:void(window.top.close())
    In recent versions of WD this will not work. So you have to redirect user via exit plug to some static html page, that contains in header <script>window.top.close();</script>
    VS

  • Reload whole portal page

    Hey,
    I want to provide a mechanism which reloads the entire webpage including the portal masterhead, the portal top- and detail navigation and all IViews. This mechanism should be inegreated as a link into the masterhead. I have tryed the
    location.reload()
    javaschript function, but by using this function the portal page is reloaded at the first navigation node (the navigation node which is displayed when the user is login fresh). Is it possible to reload the entire page at the current navigation node of a user??
    Thanks in advance
    René

    Hi Rene,
    Use javascript's window.location.reload() option to refresh the window.
    and Use this Post also,
    [refresh browser|Refresh Browser;
    Hope this helps,
    Regards,
    Shailesh Nagar
    Edited by: Shailesh Kumar Nagar on Feb 22, 2008 12:22 PM

  • Publishing content from reports server to a portal page

    I have a system with Forms/Reports 6i in a client/server implementation. I have 6i reports server from this on the server tier. I have added 9iAS (minimal install) to get Portal and HTTP server. I have completed the configuration and I can have the portal page submit jobs to the reports server and they are displayed properly.
    But I also wish to run reports from the application. This app submits jobs to the reports server via RWCLI60. I was hoping I could use 'File' as the destype and drop off content into a directory the web server knows about and then have a portal page that will generate links to the files. These could be pdf or html output.
    Can anyone tell me if this is possible and provide a short list of steps to configure it? Thanks.

    there is an example of this on dev2dev, see sample code, "redirect" example
    (dev2dev.bea.com)
    "Lancy Mendonca" <[email protected]> wrote:
    >
    All
    In a webflow how is it possible to redirect to a portal page from a input
    processor.
    The situation I have is as follows. I have a homepage that has a login
    portlet.
    The user enters the username and password and after performing the validation
    and authentication I need to redirect to another portal page that is
    available
    only to logged users.
    Any help will be creatly appreciated

Maybe you are looking for

  • Adding a check box to my page clears the value in a hidden field on page 0

    Hello, I hope that someone can assist me. I have a page that has multiple submit buttons on it. When I click a submit button the page refreshes to render the new content. I have a hidden field, and its region is set to one on page 0. Without any chec

  • Time Machine no longer continuing to back up restored iMac

    I just put a new hard drive in an iMac 1.83Ghz CD (early 2006), and then restored a 10.5.1 TM backup to the new drive. Then I restored some other files from an earlier TM backup date that seem to have been corrupted - possibly due to the failing driv

  • Replace HDD w/ Win 8 with new HDD w/Win 7

    Just bought a HP Pavilion 17-e067cl Notebook PC from COSTCO. I want to remove the factory installed HDD with Win 8 and the factory load on it and replace it with a new HDD and load Win 7 on it Is there anything in the BIOS that would prevent me from

  • Third party Drop Ship

    Hi All, We have a scenario wherein we use third party drop ship for accessory material. Currently when a sales order is created with multiple line items, it generates multiple purchase requisitions against each line item. These PR's are in turn conve

  • DBMS_OUTPUT.PUT_LINE question

    Hi there, I am having problems with following statement in SQL*PLUS, for some reason the text that I have declared is not appearing instad I am only getting the "Enter Value for" question. Here is the code I have created: SQL> DECLARE 2 START_DATE da