TREE-view disply problem

This is a discussion on "TREE-view disply problem" within the Classic ASP section. This forum, and the thread "TREE-view disply problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 19th, 2006, 09:37
New Member
Join Date: Jul 2006
Location: london
Age: 28
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
TREE-view disply problem

i am having the problem with disply the out put i am using iframe so it is fixed length either i am getting free spaces or some out put is missing please hlep me to view the out put correctly.
i have no choice so i used iframes
to run this script place this code in any wwwroot folder ,replace the getf="Editor" to any folder in wwwroot and run the script

<script language="JavaScript">
function Show_Stuff(Click_Menu)
{
if (Click_Menu.style.display == "none")
{
Click_Menu.style.display = "";
}
else
{
Click_Menu.style.display = "none";
}
}
</script>
<%
function getfolders(basefol,prev)
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject ")
set fo=fs.GetFolder(server.MapPath(basefol))
for each x in fo.SubFolders
if len(trim(x))<>0 then
if prev="" then
i=i+1
nof(i)=nooffiles
nooffiles=0
end if
dim fs1,fo1,x1
set fs1=Server.CreateObject("Scripting.FileSystemObjec t")
set fo1=fs1.GetFolder(server.MapPath(basefol+"\"+x.nam e))
for each x1 in fo1.files
nooffiles= nooffiles+1
next
set fo1=nothing
set fs1=nothing
if prev="" then
folderarr(i)=basefol+"\"+x.name
fol(i)=x.name
end if
getfolders basefol+"\"+x.name,basefol
end if
next
set fo=nothing
set fs=nothing
end function%>
<%
if len(trim(request.QueryString("getf")))=0 then
getf="Editor"
else
getf=trim(request.QueryString("getf"))
end if
dim nof(9999),folderarr(9999),fol(9999)
i=-1
nooffiles=0
getfolders getf,""
nof(i+1)=nooffiles
for a = 0 to i
response.write "<table><tr><td><DIV><a href=javascript:Show_Stuff("+replace(cstr(folderar r(a)),"\","")+")>+</a></DIV></td><td><a target='_top' href='articles.asp?view="+server.URLEncode(cstr(fo lderarr(a)))+"'>"+cstr(fol(a))+" ["+cstr(nof(a+1))+"]<a></td><tr></table>"
getf=cstr(folderarr(a))
%><span ID="<%=replace(cstr(folderarr(a)),"\","")%>" style="display: none"><table><tr><td width=200 wrap><iframe height="300" width="300" src="?getf=<%=getf%>" marginheight="0" frameborder="0" scrolling="no"></iframe></td></tr></table></span>
<%next %>
Reply With Quote

Reply

Tags
treeview, disply, problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS JS tree menu & IE6 cheekyGirl JavaScript Forum 6 Feb 26th, 2008 14:30
A tree menu problem jim28100 JavaScript Forum 0 Dec 12th, 2007 09:45
Tree-view hierarchie karinne ASP.NET Forum 1 Jan 16th, 2007 14:43
Tree Menu Script Problem Brad_Armitage JavaScript Forum 4 Sep 15th, 2005 00:57
Tree view k_narend Classic ASP 2 Aug 23rd, 2005 11:56


All times are GMT. The time now is 05:03.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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 35 36 37 38 39 40 41 42 43