Добрый день!
Тока учусь (простите ламера)
Имеется:
FrameSet
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<frameset rows="22%,80%" cols="*" frameborder="NO">
<frame src="HeaderFrame.html" name="TOP">
<frameset cols="308,*" rows="*">
<frame src="TreeFrame.asp" name="MENU">
<frame src="BodyFrame.html" name="CONTENT">
</frameset>
</frameset>
<noframes></noframes>
</html>
HeaderFrame (сверху)
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><img src="logo.gif" width="112" height="75" align="left"></p>
<h3 align="left"><b>ТЕЛЕФОННЫЙ СПРАВОЧНИК</b></h3>
</body>
</html>
TreeFrame (слева)
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link rel="stylesheet" href="dtree\dtree.css" type="text/css">
<script type="text/javascript" src="dtree\dtree.js"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
Set MyConnection=Server.CreateObject("adodb.connection")
MyConnection.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=CATALOG;Data Source=CHARLEY"
Set RecSet=MyConnection.Execute("Exec SELECT_FROM_SUBDIVISION")
Response.Write("<SCRIPT src='dtree/dtree.js' type=text/javascript></SCRIPT>" & Chr( 13 ))
Response.Write("<div class='dtree'>" & Chr( 13 ))
Response.Write("<SCRIPT type=text/javascript>" & Chr( 13 ))
Response.Write("<!--" & Chr( 13 ))
Response.Write("d = new dTree('d');" & Chr( 13 ))
Response.Write("d.config.target = 'BodyFrame';" & Chr( 13 ))
Response.Write("d.add(0,-1,'Подразделения');" & Chr( 13 ))
Do While Not RecSet.Eof
Response.Write("d.add("&RecSet("IDSUBDIV")&","&RecSet("PARENTDIV")&",'"&RecSet("SUBDIVNAME")&"','"&RecSet("HTMLTEL")&"','','BodyFrame');")
Response.Write(Chr( 13 ))
RecSet.MoveNext
Loop
MyConnection.Close
' Response.Write("d.draw();" & Chr( 13 ))
Response.Write("document.write(d);" & Chr( 13 ))
Response.Write("//-->" & Chr( 13 ))
Response.Write("</SCRIPT>" & Chr( 13 ))
Response.Write("</div>")
%>
</body>
</html>
А также BodyFrame (справа)
1.
2.
3.
4.
5.
6.
7.
8.
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
Так вот несмотря на:
Response.Write("d.add("&RecSet("IDSUBDIV")&","&RecSet("PARENTDIV")&",'"&RecSet("SUBDIVNAME")&"','"&RecSet("HTMLTEL")&"','','BodyFrame');")
документ HTML (по ссылке из MSSQL таблицы с диска) упорно открывается в новом окне а не в BodyFrame. Как исправить?