D
David Shorthouse
Hey folks,
Not an off-topic posting.....since I was shot-down in an earlier
post...this one's legit.
How do I go about calling a server-side vbscript within a client-side
javascript function? What I have is a page heavy on the javascript that has
a number of functions, one of which is to begin a visual countdown with an
onclick and also open an asp page containing the server-side vbscript, which
initiates a wake-on-lan call. I had no idea how to call the vbscript within
the javascript function, so this is why I opted for the vbscript asp page
"pop-up" via window.open.
Here's a sample of the javascript function that gets called with an onclick:
function fnHide1(){
DavidWakeUp_window =
window.open("davidwakeup.asp","mywindow","status=no,width=0,height=0");
window.focus();
window.setTimeout("fnHide2()",20000);
setTimeout('countDown()');
window.setTimeout('DavidWakeUp_window.close()',5000);
}
And the asp page, davidwakeup.asp is something like:
<%
set objWOL = CreateObject("UltraWOL.ctlUltraWOL")
objWOL.BroadcastAddr = "192.168.2.255"
objWOL.MACAddr = "00-00-00-00-00-00"
objWOL.WakeUp
%>
Is it possible to just make this vbscript a sub function and then call the
function within the javascript function hence eliminating the window.open
pop-up?
Thanks for any advice,
Dave
Not an off-topic posting.....since I was shot-down in an earlier
post...this one's legit.
How do I go about calling a server-side vbscript within a client-side
javascript function? What I have is a page heavy on the javascript that has
a number of functions, one of which is to begin a visual countdown with an
onclick and also open an asp page containing the server-side vbscript, which
initiates a wake-on-lan call. I had no idea how to call the vbscript within
the javascript function, so this is why I opted for the vbscript asp page
"pop-up" via window.open.
Here's a sample of the javascript function that gets called with an onclick:
function fnHide1(){
DavidWakeUp_window =
window.open("davidwakeup.asp","mywindow","status=no,width=0,height=0");
window.focus();
window.setTimeout("fnHide2()",20000);
setTimeout('countDown()');
window.setTimeout('DavidWakeUp_window.close()',5000);
}
And the asp page, davidwakeup.asp is something like:
<%
set objWOL = CreateObject("UltraWOL.ctlUltraWOL")
objWOL.BroadcastAddr = "192.168.2.255"
objWOL.MACAddr = "00-00-00-00-00-00"
objWOL.WakeUp
%>
Is it possible to just make this vbscript a sub function and then call the
function within the javascript function hence eliminating the window.open
pop-up?
Thanks for any advice,
Dave