i figured outwhat i am doing but it is a total disaster, feel free to toss inwhat help any one might have. thank you all
[code]<html>
<body>
<script type=”text/javascript”>
function GetInfo()
var t = 0
while (t<=10)
{
var xmlHttp;
try
{
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject(“Msxml2.XMLHTTP”);
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject(“Microsoft.XMLHTTP”);
}
catch (e)
{
alert(“Your browser does not support AJAX!”);
return false;
}
}
}
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
{
picked_file=window.open(“http://+xmlHttp”,”_blank”,”toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=400, height=200″)
t=t+1
setTimeout(3000)
picked_file=window.close();
}
}
xmlHttp.open(“GET”,”get_info.php”,true);
xmlHttp.send(null);
}
}
</script>
<form name=”myForm”>
Get it: <input type=”button” onClick=”GetInfo();” name=”start” value=”Start” />
Stop it: <input type=”button” onClick=”stop.GetInfo();” name=”stop” value=”Stop” />
</form>
</body>
</html>
Offcourse you can tell is is a disaster and it will not work,
the idea
While the variable t is =<10
get the variable form the php file get_info.php
open it in a new window
wait 3 seconds
close the window
and then ask for another value form the get_info.php file
in the form the stop button is to terminate the function incase the user did not wait for all 10 files.
that is not properly coded either.
I am horrible at this, i am doing my own project and i would really appreciatethe help of the professional community.