Javascript to call hidden link

Hi all,
I wanted to use a jenia popup frame with the t:jscookmenu. I tried multiple ways to imbed the popup link inside the menu but none of them worked. Therefore, I decided the best way to go about it would be to add a hidden popup link and use the navigationMenuItem to "click" it. The two pieces of code I tried for this are as follows.
1) <t:navigationMenuItem itemLabel="Delete Note" action="document.getElementById('confirm').click()"/>
2)<t:navigationMenuItem itemLabel="Delete Note" onClick="document.getElementById('confirm').click()"/>
and the popup looks like
<jp:popupFrame id="confirm" center="true" actionOpen="gopop" actionClose="#{myBean.deleteNote}"/>
When I try 1, the jscookmenu disappears. When I try 2, nothing happens when I click the button. Does anyone have any suggestions?

OK so I found out that navigationMenuItem dont support javascript actions. Therefore I decided to switch my menu from jscook to panelNavigation. However, I am having a hard time getting this to work. I tried following the example shown at irian but the menu is not displaying. Does anyone know somewhere good to learn how to use panelnavigation correctly?

Similar Messages

  • Javascript error calling a bi 7.0 webapplication from a bsp application

    Hi everyone,
    This is the scenario we're facing a javascript error :
    Enterprise Portal is calling a custom bsp application ( via an iview in the enterprise portal ) in the bi system with a parameter "template_id" and a value, which is the technical name of a bi web application.
    The bsp application is evaluating the parameter by some custom code and creating a html page with a redirect or a maintenance message to the bi web application passed with the parameter "template_id".
    The html link to the bi web application is created according to this documentation :
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/03d4ac801467e6e10000000a1553f6/content.htm
    Purpose of the bsp application :
    in the bi system there is a database table to maintain a flag for each webtemplate and infocube, which should not be called via the enterprise portal for a certain time ( some kind of maintenance switch ). The bsp application then decides to show a maintenance page for the called webtemplate or to send the redirect page to the client.
    The process described above is :
    working with the bi 7.01 sp7 in the bi ( enterprise portal sp22 ) in the productive system.
    working in the Q&A system bi 7.01 sp8 with bi 3.5 web applications.
    not working in the Q&A system bi 7.01 sp8 with bi 7.0 web applications.
    The javascript error calling bi 7.0 web applications is :
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET4.0C; .NET4.0E)
    Timestamp: Mon, 6 Jun 2011 09:11:04 UTC
    Message: Object doesn't support this property or method
    Line: 96
    Char: 11
    Code: 0
    URI: https://mlptb1.mlp-ag.com:58001/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=B_221_002_KUNDEN_POSTEN_AD
    We've opened a message. Support center is saying that this method isn't supported by sap. We should ommit the bsp application and the used functionality.
    Is there any way to find out, what is causing this object is missing ?
    Is there another way than a bsp application to use this custom maintenance function in the described system setup ?
    system components :
    production system
    SAP NetWeaver 7.0 Portal SP22
    SAP BI 7.01 SP 7
    q&a system
    SAP NetWeaver 7.0 Portal SP22
    SAP BI 7.01 SP 8
    Kind regards.
    Dirk

    Hello everyone,
    we did some further analysis on this problem und we think we found the problem.
    The error occurs while trying to execute the standard url for web templates inside a Enterprise Portal Frame, for example
    https://XXX:XXX/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=XXX
    While executing the URL a HTML-Page with some embeded Javascript-code is sent back to the browser.
    In this Javascrip-Code, the method-call "dsmObj.registerAll" leads to a script error in Internet Explorer.
    dsmObj.registerAll("pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex", "GUSID:6FC9SuhGDPIMMLwOdeHEIg--_7WQud13yeLJDz2kYoQFSg--", "1307605928212");
    In SP7, the method "dsmObj.registerFullKey" is called instead of "dsmObj.registerAll". This has changed in SP8.
    dsmObj.registerFullKey("GUSID:iBPvyska9*xE_JBalkQG2g--YyKv2C3NToP0I79Mw7EO8w--", "1307606479963");
    The object "dsmObj" seems to reference the parent frame of the Enterprise Portal.
    Has anyone seen this before? Any ideas how we can fix this?
    Kind regards,
    Matthias
    Edited by: Matthias Keller on Jun 9, 2011 2:07 PM

  • Using javascript to call a signed applet's read/write functions problem.

    Hi, I wan't to use javascript to call the read/write functions of my signed java applet.
    The applet can read/write fine, if its called from inside the applet, but when I make public functions to do the read/write and then call those functions from javascript, i get the old security exception.
    Has anyone done this before?
    Thanks

    From what I understand is that for example file IO can only be done if the current method
    has this privilege and the stack that called the current method had this privilege.
    Javascript doesn't have any privilege and calling methods that do file IO directly from
    javascript should not work, this bug was fixed in 1.4.2.
    The workarround AccessController.doPrivileged(new PrivilegedAction() { might allso be
    fixed in later versions since changing the privileges of currently executing code is
    someting that should not be possible when the currently executing code is called from
    "untrusted" (javascript) code.
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post

  • Problem while calling nevigation link from wddomodifyview

    hi ,
      I am trying to call navigation link using reference from WDDOMODIFYVIEW. I need to call previous view from current view. I cannot do that using outbound plug because it would'nt fire in wddomoifyview.

    Hi,
    Use the code below...
    DATA lo_window_manager TYPE REF TO if_wd_window_manager.
    DATA lo_api_component  TYPE REF TO if_wd_component.
    DATA lo_window         TYPE REF TO if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->CREATE_EXTERNAL_WINDOW(
                       URL =
    'http://<server_name>/sap/bc/webdynpro/sap/ztesttab' " here give url of ur application
    *                  title                  =
    *                  close_in_any_case      = abap_true
    lo_window->open( ).
    regards
    Pranav
    Edited by: Pranav Nagpal on Jan 22, 2009 4:34 PM

  • How to remove a hidden link in a pdf?

    There is a hidden link on the left of the following pdf page. Does anybody know how to remove it from the pdf?
    https://rapidshare.com/files/4090233161/Pages_from_0702685v1.pdf

    Open the document in Adobe Acrobat
    Activate the Link Tool
    Move the mouse over the link and delete it

  • Hidden links in excel

    Hi forum.
    I'm converting excel sheets to pdf via the "Covert to PDF" button that installs when installing Adobe PDF.
    This is as far as I know the only possible way to keep the hidden links (by hidden links - I mean links that are typed behind the word (as usual html links) ie the word banana links to http://www.google.com - the link as hidden).
    This works ... or used to work - sitting on my win2000 machine it does work, but after switching to a winxp machine this functionality stopped working.
    Does anyone know what I should do?
    Ps. I still makes the PDF's - but the links are only blue underlined words (not working links)...
    Pps. I use Adobe PDF 7.0.0 tried to upgrade it (7.1.0) but it didn't change a thing?

    Hi,
    As far as I know, Office uses relative address than absolute address by default.
    When a file is uploaded, the "convert to relative" feature changes hyperlinks to relative links when the file is saved.
    Is your Office version 2003?
    To use this hotfix, follow these steps:
    1. Quit Office.
    2. Click Start, click Run, type regedit, and then click OK.
    3. Locate and then click to select the following registry key:
    HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common
    4. After you select the key that is specified in step 3, point to New on the Edit menu, and then click DWORD Value.
    5. Type UseCaseInsensitivePathForHyperlink, and then press ENTER.
    6. Right-click UseCaseInsensitivePathForHyperlink, and then click Modify.
    7. In the Value data box, type 1, and then click OK.
    8. On the File menu, click Exit to quit Registry Editor.
    Notice: Please backup the registry.
    Please refer to the below link:
    http://support.microsoft.com/kb/917689/en-us
    And you also can use HYPERLINK to create a new file.
    For more detail information, please refer to the following link:
    http://office.microsoft.com/en-us/excel-help/hyperlink-function-HP010342583.aspx
    Regards,
    George.zhao

  • Everywhere I click on a website either in my safari or google chrome, there will always pops up ads, just like there are hidden links in my web page everywhere

    After last Sunday, every website i opened there will be tons of hidden links of ads. Like I click every where on my website, it will pop up an ad. The pictures are the ads that usually pop up

    Click here and run the tool.
    (112507)

  • Simple question: calling URL link with WEB.SHOW_DOCUMENT is not working

    Hi folks,
    this should be an easy question, but I have no idea why it's not working :-(.
    In one of my form, I would like to place an URL link behing button.
    For this purpose I'm using below code:
       WEB.SHOW_DOCUMENT('http://www.google.com','_blank');But when above code is executed, nothing happens :-(.
    Could it be because I'm using it within modal type of window?
    Thanks,
    Tomas
    I'm using Oracle Forms 10g

    have you checked with using self instead of blank to see if it will replace your current page with the one you are tyring to call?
    Have you got any other firefox plugins running such as Ad block? can you try disabaling all addons and even the internal pop-up blocker jus to see if this will work?
    if self works but blank does not how about having the main app called from a multi frame page. one frame with the app in and the other frame with some javascript that can be called to open a new window? dont know if that will work and its late so probably not thought it thorugh fully :)

  • How to use JavaScript to Open a link automatically

    Is there a method (using JavaScript) to allow a user clicked link to open the link through a “intermediary” page?
    For example, say I have a web page with a embedded Flash file that contains links to several different (outside) web pages. The behavior I want is that the user clicks a link (within the Flash file), a HTML window opens (over the 1st HTML/Flash window) with the new content, leaving the original Flash/HTML window displayed in the background. The user reads the new content. The user can then close the newer window and be back at the displayed HTML/Flash file.
    The twist is that the link embedded in the referring Flash/HTML file goes to a “intermediary page”. Call that the “collector” page. I control that page. On that page I have collected (in a list) all the actual outside URLs (I do this so that I can easily change the URLs using HTML rather than having to edit the Flash file.) The Flash file contains essentially the same URL for each outside location (plus a variable unique to a specific URL).
    The user should not ever actually see this intermediary/collector page. Instead, they click the link, a variable is passed from the referring page to the collector page and fires the corresponding link automatically (replacing the content in the newly created window). Since the link fires automatically the content in the new window (initially created by the collector page) changes to the destination content.
    Is this possible?
    What JavaScript functions are used?
    How are the referring links constructed in the Flash so the variable is passed to the collector page?
    How does the “collector” page auto open the actual content?
    If anyone can point me to descriptions on how this might be done I’d certainly appreciate it.
    TPK

    >is there a way i can call javascript without security checking?
    It wouldn't be security if you could just bypass it. Did you read all
    the security notes? You might be able to do something with trusted
    functions, but I'm not sure how that would integrate with a plug-in.
    Aandi Inston

  • Javascript value to hidden itterated HTML field

    How can I write a javascript variable to a hidden input field in a struts page where the hidden field is part of an object in an ArrayList that is shown using logic iterate tag?
    My Struts code is:
    <logic:iterate name="ManageEntryPointForm" property="entrypoints" id="list" type="org.oclc.da.ndiipp.struts.domain.util.EntryPointBean" indexId="ii" >
         <% String changeCommand = "setChangeFlag('" + ii + "')"; %>
         <tr><html:hidden name="list" indexed="true" property="changeFlag" />
    <logic:equal name="ManageEntryPointForm" property="editToken" value="Yes" >
    <td><html:radio name="list" indexed="true" property="include" value="true" onchange="<%=changeCommand%>" /></td>
    <td><html:radio name="list" indexed="true" property="include" value="false" onchange="<%=changeCommand%>" /></td>
    </logic:equal>
         </tr>
    </logic:iterate>
    and my current javascript is:
    function setChangeFlag(recNum)
    alert("Record number " + recNum + " has been changed.");
    document.ManageEntryPointForm.list[recNum].changeFlag="true";
    alert("Record number " + recNum + " has been changed.");
    This isn't working...
    Help Please!

    1. Does the javascript alert get called or not?
    2. Do you get Javascript error?
    Can you paste the output html by doing view source in the browser that will help.

  • Branch process using javascript to call popup

    I am on Windows Vista, Oracle XE and Apex 3.1.0.00.32.
    The branch works when using region based button.
    I wanted to use a "button displayed among this region's items" for a "button" list in the sidebar. I created a button and used a branch based on :REQUEST = 'button_name'. The branch fires but I get an error "Internet Explorer cannot display the webpage."
    HTML header code
    <script language="JavaScript" type="text/javascript">
    function popup(pURL, pwidth, pheight) {
    html_PopUp(pURL,"winLov",pwidth,pheight);
    </script>
    Branch Code
    javascript:popup('f?p=&APP_ID.:10012:&APP_SESSION.:&REQUEST.::10012:P10012_ISS_ID:&P10011_ISS_ID.',500,350);
    Since the code works in the URL redirect on a Button in a region position but not in a Branches redirect to a URL I assume this functionality does not work? Can anyone shed light on this? If it doesn't work I will need to find another solution....
    Thanks,
    Sam
    I did search and found a thread that intimates it should work.
    link:calling javascript on a branch is this possible
    Edited by: slavanaway on Mar 23, 2009 4:14 PM

    Luis,
    I see that I did not put more detail into the issue than the title.
    I am trying to call a popup from a button among region items. The user makes a selection then some custom DDL fires and the popup closes and the calling page is refreshed.
    A button among region items does not have a redirect to URL like a button in a region position. So I made the branch that was conditional on the button. I think I knew that a "branch" is server side. I don't understand why the jvascript URL does not work.
    A button in a region position and a list that redirects to a URL both work. I wanted the list to look like button in a vertical row.
    I now have the functionality working with a list.
    So I am coming to the mountain to get enlightenment. The Branches on a page can not use javascript is my guess and being eternally curious I was wondering why. I hope knowing will help me save time and produce better apps in the future.
    As for the actual behavior. When the Branch for the button amonth the region items fires. I would get the error message and the URL would only show apex flows. I don't have the exact URL as I dis-assembled the list and branches.
    I think the branch goes to the server but either the javascript is not passed or it does not handle the javascript.
    Tx,
    Sam

  • JavaScript File calling JavaScript File

    How can I make a JavaScript function in a file call another JavaScript function in another file ?
    I am currently achieving this by specifying both JS files in the ApEx page header,
    but this is a clumsy approach and I am hoping that someone can tell me of a better method
    ApEx Button ==> helloWorld1.js ==> helloWorld2.js
    thanks

    Hi,
    In order to use any javascript function, it must be loaded by the browser. This can be done by either linking the js file or creating the function directly on the page within SCRIPT tags. Once loaded, any function can be called by any other LOADED function or by a event handler (for example, an onclick on a button). It is possible to create new functions after the page has loaded, but this is rarely done.
    What are you trying to achieve?
    Andy

  • Javascript issue calling location.href

    Hi
    I am calling a javascript function from the click event of a command button.
    function test1() {
    // alert('Simple alert');
    location.href='/context/faces/test';
    //window.location='/context/faces/test';
    The redirection is not working here from the method. If I uncomment alert in the method and accept the alert the rediredirection is happening. Any one tell me the issue here ? Is there any other way to have the redirection using javascript ?
    THanks
    Suneesh

    Suneesh,
    What "doesn't work" about it? On Page 2, you can have a command button/command link that has an Action method that returns a navigation/control flow case which returns you to Page 1.
    One thing to be aware of... if you are using ADF Task Flows, you must run the page using the task flow URL, not by running the JSPX page's URL. In JDev, test by right-clicking Page 1 in the task flow diagram and choosing Run.
    John

  • Flash file dissapears on JavaScript function call in IE

    I am not quite sure what is going on, and I have tried for
    several days to get this fixed. I can't find much on how to fix
    this except for the fact that the bug exists. In IE6 (on Windows
    98SE, 2000, and XP), the flash file disappears after I make a call
    to a JavaScript function. I am currently using the JavaScript
    gateway, but it also exhibits this behavior when I use
    getURL("javascript:"). I am using SWFObject, but it still happens
    when I put the <OBJECT> and <EMBED> tags in manually.
    It did not start doing this until about a week ago. Does anyone
    have any idea of what is going on and how I can fix this? The link
    to my page is:
    www.SeeMySites.net/index.php?flash=true.
    Right now I only have Flash enabled for non-IE browsers.

    Never mind - I found out what the problem is. It's the latest
    version of SWFObject. Once I reverted to an older version, the
    problem disappeared. Now to go report this to the creator... I
    reverted to 1.4.2 (from 1.4.4).

  • Set multiple items with javascript function in chart link

    Hi Folks
    I am able to use the javascript $s function to set the value of one item from a chart link. I need to pass values to multiple items.
    Is there a way to use javascript function to pass values for multiple items on a page from a chart link
    Appreciate your responses
    Thanks
    Gopal

    Hi Arnau,
    You need to surround your JavaScript code like this (without the spaces before and after script):
    < script language="Javascript">
      window.open("<%=ABAP_VARIABLE%>").focus();
    </script >
    Regards,
    Patrick.

Maybe you are looking for

  • Error while Adding values in ComboBox

    Hi All.. Valid Value- Value already Exists I'm getting this error while trying to add values in combo from database... Thanks...

  • User exit in sales order

    Hi All, I want to know if there is a way (user exit) that could look at the Sales Order Type , particular Item Pricing Condition  and Ship-to party State and set the materialu2019s tax classification (VBAP/TAXM1) to u201C0u201D (Exempt) ? Thanks in A

  • Is there a fix to the skipping or hiccup while a song is playing on iTunes?

    While listening to any of my songs on my iTunes, the songs will start skipping or get a very pronounce hiccup as if it is a rap song. Especially if I'm surfing the internet. Never had this issue until the last few updates with iTunes. I've tried ever

  • Fragments with more than one root component may not display correctly ...

    Using JDev 11.1.1.3; have a page fragment that contains a layout component for the content, but also an af:popup definition as child to the root tag of the fragment. I get the above design-time warning; wondering whether this is customarily ignored w

  • Yosemite damages its own partition on shutdown

    Hi I'm having this issue since I upgraded to Yosemite where almost every time I shutdown my laptop (90% of times) I get the OS partition screwed, so in the next boot the Yosemite partition doesn´t show and the Recovery will launch. Disk Utility succe