Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   Help with some Javascript code (https://www.cableforum.uk/board/showthread.php?t=12046)

Alanmelon 07-05-2004 11:37

Help with some Javascript (or is it DHTML?!) code
 
Hi all.
Wasn't sure whether to put this is Computers or Internet, but anyway, can anyone help with a modification of the attached script/code which has been automatically created by a GUI application.

What I basically want to do is change the link attributes to specify a frame target, in this case 'I1' Yes, yes, I know frames are outdated and clunky but they suit me :pp

I reckon it must involve modifying the first few lines, but as I know nothing about Javascript (or DHTML), it's over to you....

MikeyB 07-05-2004 12:29

Re: Help with some Javascript code
 
I would guess that you need to change line 52:
var DocTargetFrame='space'; // Frame where target documents appear

punky 07-05-2004 12:43

Re: Help with some Javascript code
 
What Mikey said should work. If it doesn't, or you want to do it outside of the Javascript code for every link, add this line in the <head> section:

<base target="[framename]">

where [framename] is the name of the frame/iframe, but don't put in the [ ] backets

HTH

Alanmelon 07-05-2004 12:48

Re: Help with some Javascript code
 
Quote:

Originally Posted by MikeyB
I would guess that you need to change line 52:
var DocTargetFrame='space'; // Frame where target documents appear

Doh! That'll teach me to look next time!


All times are GMT. The time now is 23:46.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum