Openning an URL in a new window when the page is submitted, from a pl/sql p

Hi,
What I want to do is a procedure (called by an apex process) that opens a new window browser at the URL defined in the procedure.
I have tried with the following procedure:
create or replace procedure reportes (par1 NUMBER, par2 NUMBER)
BEGIN
htp.htmlOpen;
htp.headOpen;
htp.title('Reporte SAF - .: SINERWARE - 2008:.');
htp.headClose;
htp.bodyOpen;
htp.area('0,0,200,400', 'rect', '200.31.86.173/Orden_pedido.jsp?centro_costo='||par1||'&orden_inicial='||par2, NULL, '_blank');
htp.bodyClose;
htp.htmlClose;
END;
Thanks for any comment.
Alejandro T.

I assume your are writting an applet. You can do this by adding a little Javascript to your HTML page. Add this to the HEAD section:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
  function openURL(url) {
    window.open( url, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes" );
  } //end openURL
// End -->
</SCRIPT>Execute the Javascript using showDocument():
String url = "http://somewhere.com/" ;
try {
  getAppletContext().showDocument((new URL("javascript:openURL(\"" + url +"\")"));
} catch (MalformedURLException me) {
} //end try

Similar Messages

  • Open a url in a new window in the backing bean

    Hi to all
    How can i open a website like google in a new window, but via Backing Bean??
    thanks to everyone in advance.

    use javascript..
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service =
    (ExtendedRenderKitService)Service.getRenderKitService(facesContext,
    ExtendedRenderKitService.class);
    service.addScript(facesContext, "window.open(http://www.google.coml)");

  • Captivate 7 Click box and bottons not able to open an URL on a new window

    I inserted a button and a click box in CP7 to open an URL on a new window. The URL opens but in a New Tab. There is an issue that the URL cannot be opened on a NEW WINDOW, I am using IE and Chrome. Do you have any ideas about this issue and how to troubleshoot it? I tried with Safari and it works fine.
    Thanks, Jorge - Adobe Captivate 7 user.

    Hi Jorge
    It's my understanding that all you can do is to configure the link to open in a new "whatever". Whether you get the link opening in a tab or a window is left up to the browser and how the particular user has their browser configured. For example, I use Firefox and when I look at its settings here is what I see.
    I'm guessing there must be a way to force a new window, because I do see new windows appear. But I think in those cases folks are doing it by using JavaScript.
    Cheers... Rick

  • Open a URL in a new window from Flash

    Looking for the simplest way to open a URL in a new window from Flash using AS3-CS3, Thank you.

    The following line of code will do that...fill in the URL
    navigateToURL(new URLREquest("http://www....", "_blank"));

  • Lately, whenever I open a link in a new window, when that window opens it immediately minimizes down to the task bar. This is obviously annoying.

    Lately, whenever I "open a link in a new window", when that window opens it immediately minimizes down to the task bar. This is obviously annoying.

    Hi BigBinAz,
    Try to start firefox in [https://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems safe mode], and in [http://kb.mozillazine.org/Safe_mode#Safe_Mode_options Safe Mode options] select ''Continue in Safe Mode'', don't make any changes in safe mode, and check it again.
    '''EDIT''' : "select ''Continue in Safe Mode'', don't make any changes in safe mode" '''there is not an option any more, the safe mode options don't exist any more''', so don't search for safe mode options.
    thank you

  • How do I open a playlist in a new window with the new version 11.01

    How do I open a playlist in a new window with the new version 11.01

    I use playlists a LOT to organize my music. It is extremely important to me to be able to open playlists in their own wondows. I am upset to see this feature removed. Please enable this functionality as soon as possible.

  • Dragging an existing tab to the desktop (or below tab bar) does not open that URL in a new window, only a new window with an empty tab. FF4 RC2 (did it with RC1 as well).

    When I drag an existing open tab from the FF4 tab bar onto my desktop, a new window opens as expected but the tab within that window does not load the URL of the tab dragged from the previous window. The tab menu item "Move to New Window" does the same thing as well.
    I have disabled Tab Mix Plus add-on but it has made no difference. Is there a setting somewhere that I am missing?

    I use Tab Mix Plus and do not have that problem.
    <br/>
    You may need to try Firefox Safe Mode to see if an add-on is causing the problem; see: http://kb.mozillazine.org/Safe_Mode
    *<u>In Firefox 4, to enter Safe Mode, hold the Shift key while clicking on the Firefox 4 desktop icon.</u>
    *Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes '''<u>before</u>''' starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    * If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling '''<u>one at a time</u>''' until the problem reappears. '''<u>You MUST close and restart Firefox after EACH change</u>''' via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.
    * See the following for more information
    ** http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes
    ** http://support.mozilla.com/en-US/kb/Troubleshooting+plugins
    ** http://support.mozilla.com/en-US/kb/Basic+Troubleshooting

  • Opening a url in a new window

    Guys,
    I have a situation to open a url (url is formed dynamically) in a new window on the click of a button (command button).
    I tried to use Go button, but in go button there is no way to provide the url dynamically. I mean i form the url by reading the contents of the page. But go button doesnt allow to form the URL dynamically.
    The problem with command button is, it doesnt open the URL in a new window.
    My requirement is
    i click on the button on a page -> go to method (read the contents of the page) to form the URL -> open the URL in a new window
    How this can be acheived.

    Yes, but i need a method to do my calculation to build the dynamic URL.
    I have resolved it using command button
    public void actionlistener(actionevent event)
    String dynamicUrl = // logic to build url;
    FacesContext ctx = FacesContext.getCurrentInstance();
    ExtendedRenderKitService erks =
    Service.getService(ctx.getRenderKit(), ExtendedRenderKitService.class);
    String url = "window.open('" + dynamicUrl + "','_blank');";
    erks.addScript(FacesContext.getCurrentInstance(),url);
    this resolved my issue

  • Open a picture in a new window without the diashow-browser ?

    I've already seen it on some pages but i don't know how to do this.
    Is there any trick ?
    thanks

    Are you publishing to .Mac or to a local folder? When you use .Mac, clicking on a thumbnail on a Photo page opens that image in a new window and you only see the slideshow when you click the Start Slideshow button. If you publish to a local folder and then upload to a non-.Mac server, the old HomePage slideshow opens when you click a thumbnail. You can change the non-.Mac slideshow by following the advice in this excellent tip: http://discussions.apple.com/thread.jspa?threadID=313201&tstart=0. (The slideshow recommended there, though, also launches when you click a thumbnail.)

  • Opening a URL/File in new window instead of new tab

    I think I know the answer to this, but I'd like to check anyway.  When setting an action to Open URL or File for a button/click box/hyperlink/etc, is there a setting in Captivate to open the URL/File in a new WINDOW instead of a new TAB? I know to use the "New" setting along with the Open URL or File action. I assume opening in a new window instead of a new tab by default is going to depend on the settings of whatever browser you use, but like I said, just wanted to check. Thanks!

    If you open it in javascript and specify a height/width or location it should open in a new window.
    window.open("http://www.adobe.com", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");

  • Why can I not open a URL in a new window

    In older versions of Firefox I could right click on a URL and then select "Open Link in new Window" and a new window would open to display the information. In newer versions, V5 or later, if I select "Open Link in New Tab" the new information will be displayed in a new tab, if I click on "Open Link in New Window" all I get is a new window with two blue bars across the top a "New Tab" and an empty window, no information is displayed.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • How can I embed a PDF in my Captivate 5.5 project that will open in a new window when the user click

    I put a glossary button in my project. When the user clicks on the button, I want the file to open in a new browser window. This works in preview mode, but not when I publish it. What am I doing wrong?

    I've tried the download three times. It reports that installation was successful, but when I use Firefox I still get only an option to download the .pdf; I still can't read it within the browser. This fix WAS for Firefox 5.0, right?

  • Open external URL in a new window

    I have a button to show information from another site but i would like to show this info in a new window
    www.octa.info
    click on (vergoedingen zorgverzekeringen)
    David

    You'll have to modify the corresponding HTML file on your .Mac disk and change the anker-tag. This change must be made after every update of your site...
    Just have a look at
    http://discussions.apple.com/thread.jspa?threadID=339861
    Bye, Matthias

  • Opening a report in a new window on the web

    Hi I am displaying crystal reports using Tomcat and I am trying to get the hyperlink>&#39;A website on the internet&#39; to open up in a new window. At the moment it just opens up in the current window. This seems like it should be something very easy.

    This is my link in a web page.
    http://the web server name/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?iDocID=okcwr4UADs7mAVYAMw6D5nGBEQY&sIDType=CUID&sType=rpt&sReportName=TEST_Requisition&sRefresh=Y
    But on click this link throws the below error.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: SSO Script: Header employeeid does not have a value associated with it. It is null, which probably means no such HTTP header exists
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.InfoView.logon.logon_jsp._jspService(logon_jsp.java:244)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.crystaldecisions.ePortfolio.framework.common.AutoWrapExceptionAction.process(AutoWrapExceptionAction.java:83)
         com.crystaldecisions.webapp.struts.framework.AbstractEnterpriseAction.perform(AbstractEnterpriseAction.java:38)
         org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
         com.crystaldecisions.webapp.struts.framework.CrystalUTF8InputActionServlet.process(CrystalUTF8InputActionServlet.java:29)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.Exception: SSO Script: Header employeeid does not have a value associated with it. It is null, which probably means no such HTTP header exists
         org.apache.jsp.InfoView.logon.logon_jsp._jspService(logon_jsp.java:143)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.crystaldecisions.ePortfolio.framework.common.AutoWrapExceptionAction.process(AutoWrapExceptionAction.java:83)
         com.crystaldecisions.webapp.struts.framework.AbstractEnterpriseAction.perform(AbstractEnterpriseAction.java:38)
         org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
         com.crystaldecisions.webapp.struts.framework.CrystalUTF8InputActionServlet.process(CrystalUTF8InputActionServlet.java:29)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.

  • [SOLVED] No new window when the network is down

    Hi all,
    My problem is quite simple: when my network connection is down, every application I try to launch take ages before the new window appear (whatever the application is: xterm, firefox, ...).
    I suppose that it's due to a bad configuration of my local loop but I can't understand where is the problem. I'm behind a NAT, here is what ifconfig says:
    eth0      Link encap:Ethernet  HWaddr 00:0E:2E:33:1F:92 
              inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: 2a01:5d8:52e7:d503:20e:2eff:fe33:1f92/64 Scope:Global
              inet6 addr: fe80::20e:2eff:fe33:1f92/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1497227 errors:0 dropped:0 overruns:0 frame:0
              TX packets:114370 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:2044338948 (1949.6 Mb)  TX bytes:11746171 (11.2 Mb)
              Interrupt:10 Base address:0xc000
    lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:350 errors:0 dropped:0 overruns:0 frame:0
              TX packets:350 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:30454 (29.7 Kb)  TX bytes:30454 (29.7 Kb)
    and route:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
    169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
    default         192.168.0.254   0.0.0.0         UG    0      0        0 eth0
    (Note that I don't have any idea of why the 169.254.0.0/16 route is there as it's absolutely not a part of my network).
    I tried to add a route for localhost using lo but nothing changes.
    my hosts.allow contains all my local IP addresses (127.0.0.1, 192.168.0.2) and all the iptables policy are ACCEPT without any other rules.
    Can someone explain to me why I can't use my computer when my network is down ?
    Last edited by [The_Real_Neo] (2007-12-14 21:05:15)

    Do you have a proper localhost entry in /etc/hosts?
    Like
    127.0.0.1 localhost.localdomain localhost hostname_of_your_pc

Maybe you are looking for

  • Commas in text fields...

    I have a couple fields where people enter some numbers and then calculations are done (behind the scenes), and a resulting number appears in a new field. I need to know how to get commas to appear in the appropriate places (for instance - if someone'

  • Context parameter

    Hi, Currently I am migrating my tomcat application to sun java web server 7.1. I am getting annoyed due to failed set context parameter, How to set servlet context paramerer outside web.xml. Currently I use separate xml file or add it in tomcat serve

  • Thread status doesn't change

    If I read thread and leave it then status (red ball next to thread name) should be white, but it isn't. Somebody knows why. It helps reading thread. Peter D. I noticed that in SQL\PLSQL forum. In this forum if I leave thread red ball changes to while

  • [SOLVED] No video thumbnails in 'Nemo' after update 1.8.5-1 2.0.*

    Some week ago Nemo was update from 1.8.5-1 to 2.0.0-2, and after that Nemo could not create new video thumbnails. I downgrade Nemo to 1.8.5-1 (and gnome-desktop 1:3.10.1-1 to 1:3.8.4-1) and then video thumbnails work again. I have tried every new Nem

  • Exchange 2013 ECP failure after installing RDP

    I have a fresh install of Server 2012 and Exchange 2013, everything was working great and I could access the ECP, I then installed Remote Desktop Services and I could no longer access the ECP or OWA, I have now removed the Remote Services but still c