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

Similar Messages

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

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

  • 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

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

  • 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:&#47;&#47;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

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

  • Problem using target="_blank" in hbj:link

    Hello,
    we are having some problems when using "link" with the next piece of code:
    <hbj:link id="<%=objAccountStatus.getAccountNo()%>" text="View Inventory" tooltip="Download as an Excel Spreadsheet document" reference="" onClick = "onInventoryLinkClick" target = "_blank">Download Excel</hbj:link>
    The target is set to _blank but the Excel generated by using the link is opened in the same page. This problem occurs by using the Internet Explorer; on the other hand, this works fine in Firefox (in this case is opened in a blank screnn.
    Thanks in advance.
    Regards,
    Raúl.

    Thanks for you reply Pankaj, but the version I am using is IE 6.0.29.
    I have fixed the problem by modifying some code used in the event handled in the JSPDynPage becuase we were doing some things in the HTTP header that could have destroy the effect of the "target" parameter in the link.
    It was solved by other way.
    Thanks a lot for the help.
    Regards,
    Raúl.
    Message was edited by:
            Raul Rodriguez

  • Target _blank not working

    This doesn't Work: &lt;a href="https://www.freelizer.com/?q=buy" title="Special Offer" target="_blank" class="actbtn1" &gt;Buy Now&lt;/a&gt;<br />
    The site opens, but in the same window, I want it to open in a new window/tab.
    Works in IE10!

    I tried and this is what I got;;;;;;;;;;;;;;;
    '''This Connection is Untrusted
    You have asked Firefox to connect
    securely to www.freelizer.com, but we can't confirm that your connection is secure.
    Normally, when you try to connect securely,
    sites will present trusted identification to prove that you are
    going to the right place. However, this site's identity can't be verified.
    '''

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

  • 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

  • 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

  • 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

Maybe you are looking for