TARGET="_blank" in button URL?

I have a printing servlet I want to call from a button. This works fine, but I need the link to open in new browser window, where the pdf can be shown. I have tried this for button URL:
http://wmsi001494/rapportServlet/rapport?skemaId=&P71_SKEMA_ID. TARGET="_blank"
But this does not work. Does anybody know how to get it working?
Regards Pete

I tried popupURL, popUp2, and window.open javascripts to open a window using a button. They work fine with HTML pages but fail when I try to open a PDF file.
The URL I'm using to open the PDF references a function I created following the HOW TOs (e.g. download_my_file?p_file=#ID#). The only alteration I made to the HOW TO download function was to open the file instead of downloading (Content-Disposition: inline instead of attachment).
Has anyone else had this problem or found a way to open a PDF file that is stored in the database into a new window using a button instead of a link? I should also mention that if I use a link (e.g. href="...download_my_file?p=file#ID#') it works, it just doesn't work if I have to use Javascript to open the file in a window.
I really need to use a button instead of a link, but can't figure out how to make it work!
Forgot to mention, the error message reads:
"There was an error opening this document. This file cannot be found." It's an Adobe Acrobat error, but it opens fine when opened with a standard link.
Thanks,
~Dan

Similar Messages

  • Hyperlinks (target="_blank") and buttons on same page problem.

    Another interesting problem.
    I have a hyperlink that is set to open in a new window (target='_blank') and execute the 'hyperlink1_action' on the server.
    The framework executes the javascript function 'hyperlink_submit' (in the formElements.js library) when a hyperlink is clicked. This function sets the 'target' property on the form and also creates a hidden field that identifies the hyperlink that was clicked.
    This works fine and a new window open up with the required data.
    However, now if I click a BUTTON on the ORIGINAL page, a NEW WINDOW pops up and the WRONG DATA is displayed due to the form target setting and hidden field that were created by the 'hyperlink_submit' function called prevously - ie. the changes to the form made by the 'hyperlink_submit' function are NOT rolledback/overwritten when the button is clicked. How annoying!!!
    Am I doing something completely wrong or what?
    Anyway, I feel better now. Have a nice day!
    Message was edited by:
    thepigs2
    OK. In the absence of any replies, I've come up with this superhack that I put at the end of the page which fixes the form...
    <f:verbatim>
    <script>
    var f = document.getElementById('form1');
    f.oldsubmit = f.submit;
    f.submit=function() { setTimeout(function(){resetForm(f);},250);return f.oldsubmit(); }
    function resetForm(f)
    f.target='';
    for( var i=f.childNodes.length-1; i >=0; i-- ){
    var n = f.childNodes;
    if (n && n.name)
    if (n.name.indexOf('_submittedField')>-1)
    f.removeChild(n);
    </script>
    </f:verbatim>

    Guillaume,
    The built-in tabular form feature only supports one tabular form on each page. You'll have to put the two forms on separate pages. Or use simple reports as the detail reports with edit links to an edit form page.
    Regards,
    Marc

  • URL link with target _blank

    Is it true that is not possible to insert in wiki pages a link to an external page with target set to "_blank" (new page)? If possible, how to do this?

    adobe1kenobe066 wrote:
    Site with the SWF with the link with target="_blank":
    http://solarinkgraphics.com/web.htm          • clicking on the IMAGE or the "ENLARGE" link should take you to a target="blank" url
    Site it should go to:
    http://thehoneymoonphase.com
    First off that first link to the graphics site does not work.  Getting a page not found error.  Although I was able to do a quick lucky guess and added an "l" to the end of the address and it worked.
    Second, because the link is embedded within a Flash document, your problem will lie within the ActionScript code as opposed to the HTML.  Thus you would be better off posting this in the Flash forum with your ActionScript code to get better troubleshooting responses.
    http://forums.adobe.com/community/flash

  • Url link with target="_blank" hangs in Internet Explorer 7 BUT works fine in IE6, FF, Safari?

    Okay, so I have a SWF embedded on a page, which has a link to a target="_blank" url, and it works in every other browser, INCLUDING the notorious ie6, but NOT in IE7?
    IE7 just opens a blank page (without the address in the address field) and displays 'connecting...' and stays there forever.
    • I even manually typed in the adress of the site I'm trying to access with the link, and the page opened just fine in IE7.
    But when I click on the link from the SWF, it hangs again and doesn't open. I manually typed in both addresses with and without the 'www' (i.e. http://somewebsite.com and http://www.somewebsite.com) and both opened in IE7.
    But the link from the SWF ONLY opens a blank page with the 'connecting...' and stays there forever.
    • I feel like it was working previously, but I could be wrong. Besides that, it is working in ie6, of all things. So I don't get it?
    • This also happens with other website that have a link with target="_blank" in IE7, so it's not only my site.
    As always any leads are greatly appreciated.
    Site with the SWF with the link with target="_blank":
    http://solarinkgraphics.com/web.htm          • clicking on the IMAGE or the "ENLARGE" link should take you to a target="blank" url
    Site it should go to:
    http://thehoneymoonphase.com

    adobe1kenobe066 wrote:
    Site with the SWF with the link with target="_blank":
    http://solarinkgraphics.com/web.htm          • clicking on the IMAGE or the "ENLARGE" link should take you to a target="blank" url
    Site it should go to:
    http://thehoneymoonphase.com
    First off that first link to the graphics site does not work.  Getting a page not found error.  Although I was able to do a quick lucky guess and added an "l" to the end of the address and it worked.
    Second, because the link is embedded within a Flash document, your problem will lie within the ActionScript code as opposed to the HTML.  Thus you would be better off posting this in the Flash forum with your ActionScript code to get better troubleshooting responses.
    http://forums.adobe.com/community/flash

  • Target="_blank  Error unterminated string literal

    Hello,
    I have used a example from Patrick Wolf and it won't work.
    http://www.inside-oracle-apex.com/opening-url-in-new-window/
    I need a pop_up window after pushing the button:
    Target is a: URL
    1- URL Target: http://www.google.nl/" target="_blank -- Don't work (Error unterminated string literal)
    2- URL Target: http://www.google.nl/ -- Works
    What is wrong(see number 1)?
    Thanks at advance.
    Walter

    Jari,
    It didn't work.
    On the rightside from my button I have now the next text : Google')">
    With Error- pointer on ' before <a:
    Fout: unterminated string literal
    Bronbestand: http://apex-o/pls/apex/f?p=160:190:8048856061349970::::FSESSION,FORMID:10752014578,
    Regel: 1, Kolom: 20
    Broncode:
    javascript:redirect('<a href=
    when I change 'Optional URL Redirect' field 'URL Target' to
    <a href=http://www.google.nl/ target=_blank'></a>
    I have the next Error:
    Fout: syntax error
    Bronbestand: http://apex-o/pls/apex/f?p=160:190:8048856061349970::::FSESSION,FORMID:10752014578,
    Regel: 1, Kolom: 66
    Broncode:
    javascript:redirect('<a href=http://www.google.nl/ target=_blank'></a>')
    It still not work. Do you have a solution.
    Walter

  • Where do I insert target='_blank'

    Im customizing an IE toolbar plugin and there is a button you can use to open a selected (highlighted) non active url. It opens the link in the same window.
    It opens and works fine but I want the link to open in a new window.
    I just cannot figure out where to insert target='_blank'
    here is the line I need to insert it to.
    "javascript:q=(document.frames.length?'':document.selection.createRange().text);for(i=0;i<document.frames.length;i++){q=document.frames.document.selection.createRange().text;if(q!='')break;}if(q=='')void(alert('Nothing was selected. Please select an URL on the page. '));if(q!=''){if(q.substr(0,7)!=\"http://\"){parent.document.location.href=\"http://\"+q;}else{parent.document.location.href=q;}location.href=q;}}"
    Can someone Please help me???
    Thank you very much!

    Javascript is not Java. You're posting on the wrong forum.
    I don't think that 'target="_blank"' has an exact equivalent in javascript. Basically I think you want to create a new window. I think that either the document object or the window class has a method to do that, but I can't recall.
    You should ask on a javascript forum, they'd know! Or just read a damn book.

  • Target="_blank" not working........plz help me..

    My requirement is to open a new (child) window when the user pushes
    a button on a (parent) window. I need to create a new instance
    of a bean, populate it, and then pass it to the child window for
    display.
    i tried this way
    To open JSP in new window just use target directive e.g.:
    <form action=myjsp.jsp method=post target=_blank>
    its not working...
    One additional question if I may:
    I don't want to open a new window for every action a user could
    take on the screen. Sometimes, I just want to post to the
    servlet and forward the jsp to the one window that is open.
    If I put the TARGET directive in, wouldn't I always open a new
    window?
    Is this still the best way to do this given this additional
    requirement? If yes, how do I alter it so that I don't always
    go to a new window?
    Thanks!!!!!!

    Thanks for the response...
    can i use some thing like this.....
    i mean document.form.action in window.open
    something like below...
    sb.append("input type=\"submit\"
    =\"submit\" Name="Submit"
    onClick="window.open(document.MyForm.action='/phmuni/fo
    m/combineDockets.jsp' , "myWindow");" value="Print " >
    ");YOu don't have to use action if you just want to go to another page. If you do need to do something before you open the new window, you may create a function (Javascript). Do some things (like the action) and then open a new window within that function. Then within your onClick tag, just call that function.

  • Target=_blank is not working in XML code

    Hi Experts,
    I have very basic question I am passing an extenal URL in XML code but target=_blank is getting ignored.
    <a href="http://localhost:8080/VikasSSO/Test.jsp" target="_blank">Click vikas</a>
    I done some research on it and found we can achieve it with java script only as target=_blank wont work directly in XML.
    Regards
    Vikas

    See the Data which is coming from AD and validate the type of your fields.
    Did you check connector logs ?

  • Target=_blank working in standalone ICEbrowser

    Hi
    I am using 4.2.1.0 Beta.
    When i have a line like the one below, i get a RuntimeException.
    <A href="http://otn.oracle.com/tech/java/help/content.html
    target="_blank">Oracle Help Tech.Web site</A>.
    So basically i wanted to know, if the bug is inherent in the icebrowser. so i started the browser like this.
    java -classpath oracle_ice5.jar ice.browser.Main.
    and browsed various sites with have target="_blank", it work perfectly. I found that it needs a ViewPortCallBack handler for this to work.
    Whats the delivery date for this implementation in OHJ ..
    ok.
    I found that there needs to be viewCallBack that has to be implemented
    to make this work.
    Is there is definite schedule when this API upgrade can be expected.

    adobe1kenobe066 wrote:
    Site with the SWF with the link with target="_blank":
    http://solarinkgraphics.com/web.htm          • clicking on the IMAGE or the "ENLARGE" link should take you to a target="blank" url
    Site it should go to:
    http://thehoneymoonphase.com
    First off that first link to the graphics site does not work.  Getting a page not found error.  Although I was able to do a quick lucky guess and added an "l" to the end of the address and it worked.
    Second, because the link is embedded within a Flash document, your problem will lie within the ActionScript code as opposed to the HTML.  Thus you would be better off posting this in the Flash forum with your ActionScript code to get better troubleshooting responses.
    http://forums.adobe.com/community/flash

  • Target=_blank in select

    Hello,
    i have a table column with valid URLs. I want to redirect these URLs to a new web page, i.e. not the same page.
    Column column_name has valid URLs, like http://cnn.com
    "select ... , a href="javascript:redirect('''||column_name||''');">|| column_name || </a web"
    "from test_tab;"
    There must be a solution with target=_blank.
    Does anyone has an idea ?
    Regards

    Hi,
    Try
    SELECT '&lt;a target="_blank" href="'
      || column_name
      || '">'
      || column_name
      || '&lt;/a>' AS web_link
    FROM test_tab;Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Edited by: jarola on Nov 15, 2011 3:29 PM

  • Duplicate Action Events when target="_blank"

    Hi everyone.
    I have a hyperlink that has an action attached, say hyperlink_action. I have set target="_blank" for this hyperlink because I want the page to be pulled up in a different window. When I click on the hyperlink, the event handler (hyperlink_action) is called and the navigation.xml tells the right page to display in a new window! Everything is good so far. However, when I go back to the parent window and click on any other button or link (ANY ONE), then the hyperlink_action handler is called first followed by the event handler for the button or link I clicked on. This only happens the first time I click on the parent page again. Also, the target is still set to blank for anything that is clicked first.  Why is the event handler (hyperlinkaction) still in the queue to be processed after it is already processed and opened in a new window. Note: When I don't open the page in a new window, but the same window and go back, all the buttons and links work correctly. Any information would be greatly appreciated!
    Wojo

    Has anyone else seen this behavior with their apps that pop up a new window from a hyperlink? Does anyone know of a work around? Thanks for any information.

  • With FF15 on Win7, when I click a Google Reader link (that open in a new tab when clicked, target="_blank" style), the new tab opens for a second, then closes.

    The tab will not crash if I right-click, open in new tab, or middle click. Other sites with target="_blank" seem to be ok with left click (Google+ links for example). But Google Reader links seem to be completely broken.

    Seems to be an adblock plus issue in my case. When I disable adblock it never happens. When I enable it this occurs on most links on google, twitter or reddit. Somehow seems them as pop ups I guess. Probably will have to fiddle with adblock plus.

  • How to set target to Play button on begining DVD

    Man you dont use this program for a few months and you gotta take a course on it all over again.
    Ive completely forgotten how to set the PLAY button to activate at the beginning of the DVD. As in I was burning several DVDs and I tested them on my computer, and they worked fine. But the whole time I was using my mouse to navigate (I only put in one button "PLAY"). When at one point I happened to use the DVD navigator I realized I hadnt set it for a stand alone. So while if you watched it on a computer and were using your mouse you could hit the play button. But on a stand alone you cant get to it with a remote.
    I remember it being a simply thing, but for the life of me I cant figure it out. HELP!

    So are you talking about moving between the buttons on a menu screen (i.e. navigation in the menu) or are you saying you can't get the button to activate any video? Or both?
    The first issue is sorted out with the 'Settings' drop down box and choosing 'assign buttons now' or 'auto assign buttons' (but this slows down the menu creation and gets really frustrating at times). You should then be able to get to the menu (which will have the first button highlighted and ready by default) and then use the handset to move from button to button.
    The second bit is setting the target for the button - where it goes to once you select and activate it. Open up your menu in DVDSP and click on the buttons in turn. Look in the property inspector for the 'target' and make sure that each button is going where you intend.
    Alternatively, use the connections tab - this is far faster, IMO, but is slightly more abstract in concept...
    If you have done these things and you still cannot get to the button using the remote control then there is something else wrong - it could be that you simply forgot to create a button but have the text there ready... without the button rectangle being drawn out over the text (or next to it) there will be no button and no way to activate anything.

  • In Firefox 5 links with target="_blank" don't open in new window or tab. Is there a way to make them do that?

    I've search some info about this and it seems like there's a lot of people that are annoyed by links opening in new window/tab and that the 'target="_blank"' is not valid in strict XHTML. I'm guessing this could be reasons why Firefox 5 ignores the 'target="_blank"'. But in some cases you really want to open a new widow, in my case I'm using a flash application and want to open links in new windows from there and then the ctrl-click doesn't work. When opening the link in the same page and then go back the application is reloaded and it's state is lost. Probably should try to find out if there's some other way to open links from a flash application, but I'm wondering if there's a way to make Firefox 5 open 'target="_blank"' links in new tabs.

    I don't know how to delete my question, anyway I'm not having this problem anymore. In our organisation the IT department deploy Firefox updates with certain settings and limitations, in the tap-options the checkbox for opening new windows in new tabs where checked but disabled. They made some changes to make this checkbox enabled and now it works as expected if it's check new windows open i new tabs and if it's not in new windows. They never opens in the same tab as they did before.

  • How do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    how do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    Newer version does not have the same interface.  I'm stuck trying to understand how to add a "blank" target to a hyperlink...  See how your screenshot has a dropdown associated with the "Hyperlink" object?  Mine doesn't...

Maybe you are looking for

  • ITunes won't stop launching

    I don't know if this happens every time that Apple has a release but it seems like once they have pushed an update my iTunes goes crazy. It won't stop auto launching at will. It's doing this on all profiles and I do not have this in my auto launch ap

  • Package oracle.jdbc does not exist

    I am trying to connect oracle 8.1.7 from jdk1.4 using jdbc. but when i am trying to compile the java file an error with message"package oracle.jdbc does not exist" is experienced. error generation code: DriverManager.registerDriver (new oracle.jdbc.O

  • Wireless stopped working

    Brother's support said the issue must be with the computer - I've entered all the wireless info into my Brother multifunction machine but it keeps saying to Check Connection. Anyone have any ideas? I had it running wirelessly but learned the hard way

  • FW800 port not connecting

    Hi all, noob here. So I have a 15 inch powerbook that is only a few months old. I've been editing a few video projects in FCP and everything had been going smoothly until today. I have a 4TB G-Raid external hard drive and 2 portable 500GB Lacie exter

  • Exporting music from iTunes

    Hi, I wanted to know if I could export my entire library into folders of Artists and Albums as they are listed in iTunes..and keep their artwork? I see the export library option under File, but it exports in xml which I'm assuming isn't what I want..