View Single Post
Old 02-03-2012, 07:44 PM   PM User | #2
misteng
New to the CF scene

 
Join Date: Feb 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
misteng is an unknown quantity at this point
I'm slowly making progress.

So I can pull a drop down from an array:

Code:
<script language="javascript">

function optionSel(selectbox,text,value )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;
	selectbox.options.add(optn);
}

function Option_list(selectbox){
var month = new Array("Jan12","Feb12","Mar12","Apr12","May12","Jun12","Jul12","Aug12","Sep12","Oct12","Nov12","Dec12");
for (var i=0; i < month.length;++i){

optionSel(document.drop_list.Month_list, month[i], month[i]);
}
}
</script>
</head>

<body onLoad="Option_list()";>
	<FORM name="drop_list" action="yourpage.php" method="POST" >
		
		<SELECT  NAME="Month_list">
			<Option value="" >Month list</option>
		</SELECT>
	</form>
</body>
And I have figured out how to pull multiple links into a target iFrame:

Code:
<html>
<head>
<TITLE>Site Current Month Totals</TITLE>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</HEAD>
<TABLE ALIGN=Left BORDER=1 BGCOLOR="#80FF00">
<TR>
<TD><H4>Monthly Totals</H4>


<UL>
<LI><A HREF="Jan12log.txt" TARGET="DisplayWindow">Document 1</A>
<LI><A HREF="Feb12log.txt" TARGET="DisplayWindow">Document 2</A>
<LI><A HREF="Mar12log.txt" TARGET="DisplayWindow">Document 3</A>
</UL>

<IFRAME 
    SRC="VerCurMonth.htm"
    NAME="DisplayWindow"
    WIDTH=1024 HEIGHT=480>
</IFRAME></TD>
</TR></TABLE>
		
</BODY>
</HTML>
Does anyone have an idea for code for a recursive search that can read a directory into an array? It could be a server side script.
If I can figure that out, and figure how to tie it all together, the only thing left is to format the directory list as links and it should be good.
Thoughts?
Again, I would be very thankful for any tips.
M
misteng is offline   Reply With Quote