Javascript include and opening new windows ? - Postet den (3277 Views)
Free ASP Hosts Moderator
wii
Innlegg: 2632
2632
Hi,

I have a simple javascript from an external provider, something like this:

<script language="javascript" src="http://external.com/oneinclude.js"></script>

It works just fine, but I would like all the links that this script includes to open in a new window, is there anyway I can do this editing just the include? As I don´t have access to the file itself.
Thanks a lot<
   
 Sidestørrelse 
Postet den
Support Moderator
Shaggy
Innlegg: 6780
6780
Is there any common factor in the URLs of the links it writes? E.G., are they all links to pages on the same site?
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
Free ASP Hosts Moderator
wii
Innlegg: 2632
2632
Yes, they all link to the same site, I received an answer from another forum, which didn´t work for me:

http://www.sitepoint.com/forums/showthread.php?t=561642

Any help is appreciated, thanks.<
Postet den
Support Moderator
Shaggy
Innlegg: 6780
6780
That would have been the first method I would have tried too. Could you mail me over a copy of the off-site script so I can test a couple of things with it?
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
Free ASP Hosts Moderator
wii
Innlegg: 2632
2632
Mail sent !
Thanks<
Postet den
Support Moderator
Shaggy
Innlegg: 6780
6780
Mail received smile
I'll try and have a look at it over lunch.
<edit>Domain not found.</edit>

<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
Free ASP Hosts Moderator
wii
Innlegg: 2632
2632
Oh, that´s right - it´s an extranet site which is not open for the public,

How can I show you this ? I can send you the HTML code, the javascript generates, if that helps.<
Postet den
Support Moderator
Shaggy
Innlegg: 6780
6780
Best to send me the actual contents of the JS file, if possible.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
Free ASP Hosts Moderator
wii
Innlegg: 2632
2632
Mail sent !<
Postet den
Free ASP Hosts Moderator
wii
Innlegg: 2632
2632
Shaggy, any news about this ?

Thanks<
Postet den
Free ASP Hosts Moderator
wii
Innlegg: 2632
2632
Anyone ?<
Du må legge inn en melding