How do I redirect to a URL with JavaScript on submit in Adobe LiveCycle

How do I redirect to a specific URL with JavaScript upon submit in Adobe LiveCycle?
I already have the code in place where the submit event is handled, and just need the specific code to do the redirect.
Standard asp.net-style redirects such as
windows.location.replace(http://myURL.com);
do not work.
Any help would be appreciated.

To be able to redirect a website with a submit button, you must have a custom submit button and insert the following line:
app.launchURL("www.url.com");

Similar Messages

  • How can I redirect APEX(EPG) URL with afrindly one

    Hi All,
    I am using APEX with EPG on oracle 11g, and I would to redirect the URL http://localhost:8080/apex/f?p=122:1:43920293912715::NO with a friendly one like this
    http://project_name.mydomain.com
    Is there any one can help me know; how to do this redirection where I would to hide the port no 8080 within the URL
    Thank you in advance
    Yassin

    Yasen® wrote:
    hi is this solution working for Apex on 11g with EPG? whrere to run this code?Yes, it should work on 11g with EPG.
    Using SqlPlus, log in as SYS and run the code posted by "user7449726" to change the path name and default home page of the DAD.
    To change the port from 8080 (the default) to 80, run the following as SYS using SqlPlus:
    CALL DBMS_XDB.SETHTTPPORT(80);
    ALTER SYSTEM REGISTER;
    Make sure you don't have anything else running on port 80 (such as Microsoft's Internet Information Server) or you will obviously get a conflict.
    - Morten

  • How to get real value from selectOneChoice with javascript?

    Hi,
    How to get real value from selectOneChoice with javascript? The event.getNewValue() only gets me the index of the selected item, not the value/title.
    JSF page:
    <af:resource type="javascript">
    function parseAddress(event)
    alert("new value: " + event.getNewValue());
    </af:resource>
    <af:selectOneChoice label="Location:" value="" id="soc4">
    <af:clientListener type="valueChange" method="parseAddress" />
    <f:selectItems value="#{Person.locations}" id="si7"/>
    </af:selectOneChoice>
    HTML :
    <option title="225 Broadway, New York, NY-10007" selected="" value="0">225 Broadway (Central Office)</option>
    <option title="90 Mark St., New York, NY-10007" value="1">90 Mark St. (Central Office)</option>
    Thanks a lot.

    Something I was missing ,
    You need to add valuePassThru="true" in your <af:selectOneChoice component. I have personally tested it and got the actual value in alert box. I hope this time you got the real solution. You can also test the following code by your end.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelBox text="PanelBox1" id="pb1">
    <af:selectOneChoice label="Set Log Level" id="soc1"
    value="#{SelectManagedBean.loggerDefault}"
    valuePassThru="true">
    <af:selectItem label="select one" value="First" id="s6"/>
    <af:selectItem label="select two" value="Second" id="s56"/>
    <af:clientListener method="setLogLevel" type="valueChange"/>
    </af:selectOneChoice>
    <af:resource type="javascript">
    function setLogLevel(evt) {
    var selectOneChoice = evt.getSource();
    var logLevel = selectOneChoice.getSubmittedValue();
    // var logLevelObject = AdfLogger.NONE;
    alert("new value is : " + logLevel);
    //alert(evt.getSelection);
    //alert(logLevelObject);
    evt.cancel();
    </af:resource>
    </af:panelBox>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • Printing different URL with javascript

    I am trying to print a URL using javascript but i do not want to print the current page. I have searched google, this forum and a javascript book and can not seem to figure it out. To exlplain in it generic terms i want to be on one page and tell it to print another. Reason being, I am looking at an overview page and want to print a report made in Oracle reports, (Yes I could load the report and print it but i want to print multiple reports from one button)(The reports do work and are valid) Here is a rundown of what I am doing.
    From a button i am calling a 'url' with the following code:
    javascript:V_PRINT('P50_CUSTOMER_ID','P50_YEAR');
    And then in the html header i have the code: (printing same page twice, just an example)
    <script language="JavaScript" type="text/javascript">
    function V_PRINT (formItem1,formItem2) {
    var formVal1 = document.getElementById(formItem1).value;
    var formVal2 = document.getElementById(formItem2).value;
    var url1;
    var url2;
    url1 = 'http://www.google.com/search?hl=en&q=' + formVal1 + '+' + formVal2;
    url2 = 'http://www.google.com/search?hl=en&q=' + formVal1 + '+' + formVal2;
    url1 = print();
    url2 = print();
    </script>
    This code just prints the current page. I know I am calling print incorrectly and thats where i need the help. Of course I might just be approaching it all wrong. Either way I hope someone with javascript knowledge can help.
    Thanks

    Hello,
    To print a page it has to be open in the browser since all it does it call the browsers print dialog.
    Here is one solution http://www.irt.org/script/508.htm and you can also try a iframe instead of a regular frame.
    If it's crossdomain request like your example here that might cause problems as well. There might be additional problems.
    Carl

  • How to automate filling of a multiple lines pdf document created by Adobe LiveCycle

    Hello to all.
    I have a pdf document which was created by Adobe LiveCycle Designer 11.0. This document inittialy contains a single line but we can add as much lines as we need.
    I have to fill this document lines with information from MS Excel 2007 worksheets (more than 3000 lines/Week). I have tried a lot of techniques and tools but was never able to automate the process.
    Can someone please let me know if there is a way to automatically copy the data from Excel to the pdf document?
    Thanks in advance for any kind help.
    Octavio

    Hi Andersson,
    The request command is a form server command? Where do i type the Request.Form("page.form.field"). I dont really understand your statement on "Use request on the receiving page to get data" Could you help me by explaining more?
    Thank a lot for your advice
    Warmest Regards
    Delvin Khong

  • How can I redirect to an URL from a portlet?

    I'm using Bea Workshop 8.1 and trying to perform a redirect from inside a portlet
    using HTTPServletResponse.sendRedirect(String url)... but nothing happens ((
    I tryed the same trick with a simple JSP, and that's ok, but portal pages obviously
    catch the redirect somehow.
    Please could you tell the correct way of redirecting the whole browser to another
    page from inside portlets?
    Thanks!!!

    Backing files is an option. If you need to do it from the controller, you
    could use the Forward object. The forward object constructor can take a URL
    object as a parameter. This should do the trick.
    Regards,
    Kunal
    "Panji Aryaputra" <[email protected]> wrote in message
    news:[email protected]..
    Hi, you have to use backing file to get what you want. In my case, I am
    using a page backing file. Perhaps a portlet backing file can do thatalso.
    Cmiiw, the redirect header makes the page redirected only if the httpheader
    has not been sent to client. In your case, the header has been sent (i.e.
    the portal header.jsp has been displayed, etc). So the header need to be
    sent before anything else sent to client browser. This is where thebacking
    file comes handy.
    hth
    panji.a
    "A Hagen" <[email protected]> wrote in message
    news:[email protected]..
    I'm using Bea Workshop 8.1 and trying to perform a redirect from inside
    a
    portlet
    using HTTPServletResponse.sendRedirect(String url)... but nothing
    happens
    I tryed the same trick with a simple JSP, and that's ok, but portal
    pages
    obviously
    catch the redirect somehow.
    Please could you tell the correct way of redirecting the whole browser
    to
    another
    page from inside portlets?
    Thanks!!!

  • How To Pass Multiple Parameters In URL with Report Builder

    Hi,
    I use apex 4.2 with database xe 11g and i use report builder to build my report i use this link to call report
    function runrep(){
    var vurl = 'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO');
    popupURL(vurl);
    now i want to pass Multiple Parameters like P138_ITEM_CODE , P138_UOM_CODE
    how can i add this Parameters in URL ?
    Regards
    Ahmed

    Ramani_vadakadu wrote:
    window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
    the above code we are using apex JS to BI publisher calling for report as PDF
    i don't know exactly where your parameters , did you customize my link to multiple parameters
    'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); 

  • How to use HTTP_POST : To Call URL with parameters

    Dear Gurus,
    how to call HTTP_post.
    I am having requirement from client to send SMS using URL for which mobile number and text are the parameters.
    Now i want to call this in sheduled job using abap program,
    one of the person suggested me HTTP_POST for the same.
    But how to pass the parameters for this.
    Or is there another way to call this.
    Thanks in advance.
    with  regards,
    Rajesh c

    Check this
    http://help.sap.com/saphelp_nw70/helpdata/en/e5/4d350bc11411d4ad310000e83539c3/content.htm
    Examples
    http://wi.twhost.de/datei/data/QuellcodeDemos.pdf

  • How to escape spaces in a URL with HyperlinkEvent.getDescription()

    Hi,
    I'm trying to open a file whose URL contains spaces, this way:
    if (ev.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
    String urlStr = ev.getDescription();
    BrowserLauncher.openURL(urlStr);
    My urlStr contains the value:
    "file:/C:/Program Files/My Software/Readme.htm"
    and I want to convert it to the correct url format:
    "file:/C:/Program%20Files/My%20Software/Readme.htm".
    I found a usage note for File's toURL() API, that it should be called using toURI() first which automatically escapes characters that are illegal in URLs, anything similar for HyperlinkEvent's getDescription() (or getURL())?
    TIA
    - Vidya.

    Hi,
    I'd tried this earlier, but this also escapes the '/' in the path, resulting into a URL of this form:
    �file%3A%2FC%3A%2FProgram+Files%2FMy+Software%2FReadme.htm�
    This doesn't work, IE is not able to open the link in the above format.
    Thanks,
    Vidya.

  • How to setup a Godaddy Hosted URL with a Mobile Me Web Host Account

    Is this setup correct for setting up a go daddy hosted domain name and pointing it to my iWeb account?
    CNAME "HOST" field = "www"
    CNAME "Points to" field = "web.me.com"
    I've posted a screen grab of my setup below.
    http://content.screencast.com/users/LukeJMorrison/folders/Snagit/media/0499cc2c- f1af-408f-b215-c396013e08b5/02.23.2011-13.34.30.png

    Yes! You do see your own domain and page path.
    e.g. http://www.epiwellness.com/Site/Welcome.html
    not just http://www.epiwellness.com/ no matter what page you are on, like what you see if you use godaddy.com "forwarding" option.
    URL definitely changes when you change pages.
    Case Closed!
    Regards,
    Luke
    Young Skywalker wrote:
    +*Thank You+!*
    Two more questions:
    1. Is there other settings needed other than just waiting for this setting to update on the servers?
    2. Can you clarify if I will see my domain name or the mobile me domain name once a person browses to the site?
    Regards,
    Luke

  • How to use elements in .css file with javascript in the jsp

    I have a jsp in which i need to show some links with the background colour.The links depends on certain conditions which is known.But the requirement is that the background color should be grey and white alternatively. I could have hardcoded the background color with the link. But the problem is that all the links are not visible to all users. The background color is defined in the .css file. I need to check the background color for the previous link. I am declaring a boolean within a jsp and then verifying the value of that boolean( in the javascript within the same jsp) so that i could know the bckground color for previous link.but i am not able to use the element in the .css element in that javascript which is having if-else loop.It's showing an error when i tried doing this. So can some one help me out how can this be done.

    Hi Shweta,
    Refer this [wiki|https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-TableDisplayinSAPScript]
    Regards,
    Sravanthi

  • How do you update an .SWF file with Javascript

    Hello - I have this Flash map that I've created. It uses
    javascript calls from within Flash to swap out hidden DIVS when a
    user clicks on a county. When the user clicks on the zip code
    region of that map, a javascript triggers the check box.
    What I need to do now is to have a way that when a user
    unclicks the check box, the zip code region in the map will be
    unhighlighted. Essentially, I need to have javascript tell a movie
    clip within the .SWF file to goto a certain frame and stop.
    I've never done this before, so I'm seeking someone's wisdom
    on how to proceed with this.
    For a visual on what I'm describing, the file can be viewed
    here:
    http://pixegen.com/sandbox/map.html

    use the flash'es externalinterface class for two way
    communication between js and actionscript.

  • How to bypass or modify  WAD initialization with javascript

    Hello WAD Developers
    I want to understand what happens when you load and re-load a page, because I need to invoke some logic only the first time a page is run and not each time you click someone.
    I have created some javascript logic which uses a drop-down to reset a data provider - similar to the Query View Selector item except that I can take advantage of variants. Part of my solution is that I load a drop-down select box from an external list of choices. The BW data part works wonderfully. But what also happens is that my select options load EVERY TIME any event happens on the page. This means that after the data is loaded and the select box is reset, it will not show what was selected. I've tried "first-time only" logic in the function, but since the page refreshes, it's always the first time.
    Any suggestions?
    To show it graphically,
    Here's how the dropdown boxes normally work. Let's pretend my box shows four slots:
    Select a State  <== This is what you see in your box.
    AL
    GA
    FL
    If you select GA, then the next time you might see
    GA           <== Now I'll see the first selected item.
    FL
    IN
    OK
    Select a State  <== Even after a selection,
    AL              <== I always see this
    GA
    FL
    What I have coded the drop-down to do is like this:
    1. In the html itself, there is only one item:
    Selection Goes Here.
    2. After my code loads, by running a function from the <body onload>, I get:
    Variant1
    Variant2
    Variant3  etc.
    If the user selects Variant2, the next time I should see:
    Variant2
    But instead my code shows me:
    Variant1 each time.
    I have code within the function to only load the drop-down when it is in the initial state, but my debugging shows
    me the initial html drop-down values are reset each time. How can I persuade bw NOT to reset this code each time?
    If this is javascript DOM stuff and someone can show me that instead, I'll be greatful.
    Points are awarded, and if you're in Atlanta, I'll even bring you a Coke and a candy bar.
    Thanks in advance,
    Doug Childs

    Hi,
    you could use a wrapper around your Template:
    Your Template is an Iframe in a 'top'-template.
    'onload' in your bw-template you could then chek the upperframe for a variable, which tells you if your function was allready executed.
    Regards,
    Alican

  • How do I open a acsm file with the newest version of Adobe Digital Editions

    I purchased an ebook that was delivered in the the Adobe .acsm format.  When I downloaded it, I specified that the Adobe Digital Editions as the app to open the file.  ADE launched, loaded my old books but the new book was not loaded. I also tried to load the book from the ADE, but the book shows up as a grayed out item that I cannot select.  I am running the book reader on a Mac running OS X 10.5.8 and have downloaded the lastest version of the ADE.  Has anyone else had a similar problem? Thanks, Yvonne

    I'm having the same problem. I have the latest Adobe Reader version, have Mac OS X 10.6.4, and I cannot open any .acsm file-old or new. I've also tried to load the book from the ADE, but the book shows up as a grayed out item that I cannot select. I've tried everything, but to no avail. I don't have any solutions, but wanted to let you know you're not alone in this problem.

Maybe you are looking for