Thanks for your answer,
Your code works very well when im using a single dhtml window, but when i have multiple windows opened, the content of the first, second or even third windows are refreshed always in the last window the user opened.
here is the code I used:
Code:
function reloadwindow0()
{
if (typeof ajaxwin!="undefined" && ajaxwin.isClosed!=true)
{
ajaxwin.load('ajax', 'contenido/endig0.php', 'Entrada Digital 0')
setTimeout("reloadwindow0()", 5000)
}
}
function reloadwindow1()
{
if (typeof ajaxwin!="undefined" && ajaxwin.isClosed!=true)
{
ajaxwin.load('ajax', 'contenido/endig1.php', 'Entrada Digital 1')
setTimeout("reloadwindow1()", 5000)
}
}
function reloadwindow2()
{
if (typeof ajaxwin!="undefined" && ajaxwin.isClosed!=true)
{
ajaxwin.load('ajax', 'contenido/endig2.php', 'Entrada Digital 2')
setTimeout("reloadwindow2()", 5000)
}
}
function openEnDig0()
{
ajaxwin=dhtmlwindow.open("ajaxbox2", "ajax", "contenido/endig0.php", "Entrada Digital 0", "width=250px,height=150px,left=10p
x,top=50px,resize=1,scrolling=1")
reloadwindow0()
}
function openEnDig1()
{
ajaxwin=dhtmlwindow.open("ajaxbox3", "ajax", "contenido/endig1.php", "Entrada Digital 1", "width=250px,height=150px,left=10p
x,top=150px,resize=1,scrolling=1")
reloadwindow1()
}
function openEnDig2()
{
ajaxwin=dhtmlwindow.open("ajaxbox4", "ajax", "contenido/endig2.php", "Entrada Digital 2", "width=250px,height=150px,left=10p
x,top=250px,resize=1,scrolling=1")
reloadwindow2()
}
I need to have 6 or 7 dhtml windows opened simultaneous.
Thanks again.
Bookmarks