[Javascript] Opening Intranet links with a set navigation fra me

Ciko, David david_ciko at merck.com
Tue Mar 20 11:57:17 CST 2001


Thanks all...working like a charm.
 
As always, you folks are the best!!!!

-----Original Message-----
From: Peter Brunone [mailto:peter at brunone.com]
Sent: Tuesday 20 March 2001 12:55
To: javascript at LaTech.edu
Subject: Re: [Javascript] Opening Intranet links with a set navigation fra
me


document.write('<FRAME SRC="' + framePage + 'NAME="MAIN" SCROLLING=no
NORESIZE MARGINWIDTH=0
MARGINHEIGHT=0></frameset><noframes></noframes></html>')

Needs to be 
 
document.write('<FRAME SRC="' + framePage + '" NAME="MAIN" SCROLLING=no
NORESIZE MARGINWIDTH=0
MARGINHEIGHT=0></frameset><noframes></noframes></html>')

(you're missing a double quote to close the SRC attribute).

----- Original Message ----- 
From: Ciko,  <mailto:david_ciko at merck.com> David 
To: javascript at LaTech.edu <mailto:javascript at LaTech.edu>  
Sent: Tuesday, March 20, 2001 11:35 AM
Subject: RE: [Javascript] Opening Intranet links with a set navigation fra
me

Thanks for all the help...
 
I think I've almost got it, but the code I'm using just isn't changing the
URL. I know it's parsing the url, but where am I going wrong. 
 
The reason I can't use Esters suggestion is that the content is controlled
by numerous different providers and I cannot modify the code they have for
their various sites.
 
*****sample code*****
 
<html>
<head>
 <title>URL Variable Snatcher</title>
</head>
 
<body>
<A HREF="testpage.html?pagename=test2.html">Click here</A><BR>
<SCRIPT LANGUAGE="JavaScript">
var pageName;
var framePage;
var startIndex;
var endIndex;
 
var pageName = window.location.href;
var startIndex = window.location.href.indexOf("?pagename=") +
"?pagename=".length;
var endIndex = window.location.href.length;
 
var framePage = pageName.substring(startIndex,endIndex);
 

document.write('<html><head><title>Test</title></head><FRAMESET ROWS="70,*"
BORDER="0" FRAMESPACING="10" FRAMEBORDER="no">')
document.write('<FRAME SRC=""frame_TSC_heading.stm"" NAME="heading"
SCROLLING=no NORESIZE MARGINWIDTH=2 MARGINHEIGHT=10>')
document.write('<FRAME SRC="' + framePage + 'NAME="MAIN" SCROLLING=no
NORESIZE MARGINWIDTH=0
MARGINHEIGHT=0></frameset><noframes></noframes></html>')
</SCRIPT>
 
</body>
</html>

*****end sample code*****

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010320/cef6b009/attachment.htm>


More information about the Javascript mailing list