0

How does one add a link to a page without target="_blank"?

It seems that every anchor added to a page via .innerHTML or .appendChild has target="_blank" added to it. So how does one add a link that navigates within the Open Application?

What we're trying to do is insert HTML that we retrieved from our server using gadgets.io.makeRequest. This HTML contains links that go to other pages of our application, but the links don't work.

Example 1
original: <a href="portfolio/2340872984">Joe's Portfolio</a>
cajoled: <a target="_blank">Joe's Portfolio</a>

Example 2
original: <a href="http://apps.yahoo.com/-XELf7L4G/YahooFullView/portfolio/2340872984">Joe's Portfolio</a>
cajoled: <a href="http://apps.yahoo.com/-XELf7L4G/YahooFullView/portfolio/2340872984" target="_blank">Joe's Portfolio</a>

Please don't suggest using <yml:a> or <yml:form>. We moved away from them because of their limitations (e.g. inconsistent ID cajoling, lack of support for form validation, lack of support for insert/replace form submission via script).

Any suggestions? Thanks.

by
1 Reply
  • Oh, and we also tried target="_parent", target="_self", and target="_top". Those also got cajoled to target="_blank".
    0
  • I don't have a method for adjusting this functionality at the moment but for reference the bug # is 2736663. I'll see what can be done about this.

    - Jon

    QUOTE (Jared @ May 4 2009, 03:12 PM) <{POST_SNAPBACK}>
    Oh, and we also tried target="_parent", target="_self", and target="_top". Those also got cajoled to target="_blank".
    0

Recent Posts

in YAP