hope that there is someone who can help me!
I have a oorexx script within a html file!
This script gets all "logfiles.txt" from C:\ and list them with
checkboxes in a new html file!
What i would like to have is that this script passes these checkboxes
to an embedded frame within the first html!
I've already tried with target="framename" but the result is that there
is still a new html file generated and the button which i need to run
a second script disappears.
The embedded frame is still quite small, eventhough I set "width" and
"heigth" to 90%!
Furthermore the closing html tags (generated by the script ) are not
displayed within the code of the generated new file!
I would be much obliged if someone could help me with this problem!
Rainer
This is the file:
<html>
<head>
<title>manipulated.html</title>
<script language="Object Rexx">
::routine getLogFiles public
FilePattern="C:\oorexxunit\testunits\oorexx\logfiles\"log_"*.txt"
flags ="FSO" -- search files only, in all subdirs,
return fully
qualified path
call SysFileTree FilePattern, "files.", flags
if files.0=0 then
do
say filePattern": no files found, aborting!"
exit -1
end
l=.list~new -- create a list
do i=1 to files.0 -- add each found file into the list
l~insert(files.i)
end
document~writeln("<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML
4.01//EN>")
document~writeln("<html>")
document~writeln("<head>")
document~writeln("<title>??</title>")
document~writeln("</head>")
document~writeln("<body>")
document~writeln("<form name=""form1""target=""LogFrame"">")
y=l~makearray
arr=y~supplier
x=l~items
num=result
i=1
do while i<num
htmlname=LogFile||i
g=arr~item()
document~writeln("<input type=""checkbox""
name="""htmlname"""
value="""g""">"g"<br>")
arr~next
i=i+1
end
document~writeln("</form>")
document~writeln("</body>")
document~writeln("</html>")
</script>
<body>
<input type="button" onclick="call getLogFiles" name="get
logfiles" value="get logfiles"></p>
<iframe src="about:blank" name="LogFrame" width="90%" heigth="200%">
</body>
</html>
> The embedded frame is still quite small, eventhough I set "width" and
> "heigth" to 90%!
Try "height"
--
Jeremy C B Nicoll, Edinburgh, Scotland - my opinions are my own.
Thanks, should read through my post again before posting it!