This code displays the file in the existing frame window when I click on the link "SiteY".
I've done frames using html like this...
The frame part works for me, I get 2 frames but when I click on the link "SiteY" it displays the data in the left frame. It needs to go in the right frame ;o)
I've tried putting ( target="dynamic" ) in different places in the code without any luck. It doesn't even display the link in the left frame. So I've found another thing I don't understand when using VBS with HTML.
Any help would be wonderful.
Code:
<HTML>
<HEAD>
<TITLE></TITLE>
<Script language="vbscript">
<!--
Function ReturnTimeStamp(myPath,myExtension)
Dim myMonth,myDay,myYear,myDate
myMonth=right("0" & month(now),2)
myDay=right("0" & day(now),2)
myYear=right("0" & year(now),2)
myDate= MyMonth & "-" &myDay & "-" &myYear
' msgbox myPath & "-" & myDate & myExtension
ReturnTimeStamp = myPath & "-" & myDate & myExtension
end function
-->
</script>
</HEAD>
<BODY>
<DIV ID=Test></div>
</BODY>
<Script language="vbscript">
<!--
Dim myMonth,myDay,myYear,myDate
myMonth=right("0" & month(now),2)
myDay=right("0" & day(now),2)
myYear=right("0" & year(now),2)
myDate= MyMonth & "-" &myDay & "-" &myYear
' replace(document.all("MyLInk").href, "@", myPath & "-" & myDate)
document.all("Test").innerHTML = "<a href=""" & ReturnTimeStamp("file:///c:/my reports/daily health/disk/freedisk-",".txt") & """>SiteY</a>"
-->
</script>
</BODY>
</HTML>
Code:
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<frameset cols="20%, 80%">
<frame src="index.htm">
<frame name="dynamic">
</frameset>
</HTML>
The frame part works for me, I get 2 frames but when I click on the link "SiteY" it displays the data in the left frame. It needs to go in the right frame ;o)
I've tried putting ( target="dynamic" ) in different places in the code without any luck. It doesn't even display the link in the left frame. So I've found another thing I don't understand when using VBS with HTML.
Any help would be wonderful.