Forcing Links to open in a new window?

13 years ago

Any way in XML to force the Google search to open in a new window?

The problem: our school uses google sites, and my google searches are opening in a smallish section.

Thanks. :-)

13 years ago

Unfortunately there is no way to do it currently. I am going to implement this in near future.

13 years ago

Thanks Alex. I'll look forward to future updates!

Leanna

13 years ago

I've implemented openLinksInNewWindow parameter in the embedding code. To force all links to be opened in a new window use an embedding code like this for simple embedding with object tag:

<object
    width="600"
    height="600"
    type="application/x-shockwave-flash"
    data="http://cdn.tagul.com/cloud.swf">
       <param name="movie" value="http://cdn.tagul.com/cloud.swf"></param>
       <param name="flashvars" value="id=demo@demo&openLinksInNewWindow=true"></param>
       <param name="allowscriptaccess" value="always"></param>
       <param name="swfversion" value="10"/>
       <param name="expressinstall" value="http://cdn.tagul.com/expressInstall.swf"/>
</object>

for swfobject:

<script type="text/javascript">
    swfobject.embedSWF("http://tagul.com/cdn/cloudTest.swf", "myCloud",
        "600", "600", "10.0.0", "http://cdn.tagul.com/expressInstall.swf",
        {id: "demo@demo", openLinksInNewWindow: "true"},
        {allowscriptaccess: "always", bgcolor: "#ffffff"},
        {id: "myCloudObject", name: "myCloudObject"});
</script>
13 years ago

Thanks Alex!

13 years ago

Forgive my ignorance, I'm just not that familiar with XML.

I pasted this, and my links still aren't opening in a new window, and I can't figure out which part of the code applies to not opening in a new window:

<object
width="300"
height="300"
type="application/x-shockwave-flash"
data="http://cdn.tagul.com/cloud.swf">
<param name="movie" value="http://cdn.tagul.com/cloud.swf"></param>
<param name="flashvars" value="id=11151@1"></param>
<param name="allowscriptaccess" value="always"></param>
<param name="swfversion" value="10"/>
<param name="expressinstall" value="http://cdn.tagul.com/expressInstall.swf"/>
</object>

I also am not sure if I need the swfobject code?

13 years ago

You should replace "id=11151@1" with "id=11151@1&openLinksInNewWindow=true" in your code. Here are the benefits of using swfobject

13 years ago

Now it is not working at all and I tried rebuilding from scratch. Man, this is frustrating. Any clue what the problem is when it says "n/a."

13 years ago

leannaaker,

it looks like an error in flashvars in your embedding code. Could you please paste the embedding code you use so I can check it and fix a mistake.

13 years ago

Any fix for this yet? I'm having the same problem. Here's my coding:

<object width="300" height="68" type="application/x-shockwave-flash" data="http://cdn.tagul.com/cloud.swf">
<param name="movie" value="http://cdn.tagul.com/cloud.swf"></param>
<param name="flashvars" value="id=12382@1&openLinksInNewWindow=true">
<param name="allowscriptaccess" value="always"></param>
<param name="swfversion" value="10"/>
<param name="expressinstall" value="http://cdn.tagul.com/expressInstall.swf"/>
<embed src="http://cdn.tagul.com/cloud.swf" type="application/x-shockwave-flash" allowscriptaccess="always" width="300" height="68" flashvars="id=12382@1&openLinksInNewWindow=true"></embed>
</object>

and here's my website: http://www.inreviewonline.com

Reply

Sign up or Login to post a reply.