H
HolaGoogle
Hi all,
Last week i posted my question about a script error i'm getting with
my application running on XP and IE 6.0.2.....At first i thought it
was my setinterval() method called in my Body onload event....Well, i
know it's not the setinterval method it is the RSExecute() called
within my method to access my remote methods.....
Does anyone know what i should do to get this work???? Here's my
code...
BODY onload="window.setInterval('updatemywindow()', 1000);"
<SCRIPT LANGUAGE="JavaScript" src="_ScriptLibrary/RS.HTM"></script>
<SCRIPT LANGUAGE="JavaScript"> RSEnableRemoteScripting();</SCRIPT>
it tried BODY onload="setInterval('updatemywindow()', 1000);"
i did try something like this too:
BODY onload="CallMymethod();" and then
<SCRIPT LANGUAGE="JavaScript">
<!--
var serverURL="ServerUpdateResponse.asp";
var StrUpdate ='';
function CallMymethod()
{
window.setInterval("updatemywindow()",1000);
}
function updatemywindow()
{
var co = RSExecute(serverURL,"getupdateval",RetourUpdate);
document.Myform.txtgetupdate.value = StrUpdate ;
}
function RetourUpdate(co)
{
StrUpdate = co.return_value
}
and in my "ServerUpdateResponse.asp" form here's what i do....
<%@ LANGUAGE=VBSCRIPT %>
<!--#INCLUDE FILE="_ScriptLibrary/RS.asp"-->
<% RSDispatch %>
<script RUNAT="SERVER" Language="javascript">
function Description()
{
this.getupdateval = Function('return ReadUpdateval()');
}
var public_description = new Description();
</script>
<script RUNAT="SERVER"
Language="Vbscript">
and here i define my ReadUpdateval().......
this is not the problem it used to work everywhere else except on XP
with 6.0.2...Can someone tell me what i should do????
thanks a lot!!!
have a nice week end!
Last week i posted my question about a script error i'm getting with
my application running on XP and IE 6.0.2.....At first i thought it
was my setinterval() method called in my Body onload event....Well, i
know it's not the setinterval method it is the RSExecute() called
within my method to access my remote methods.....
Does anyone know what i should do to get this work???? Here's my
code...
BODY onload="window.setInterval('updatemywindow()', 1000);"
<SCRIPT LANGUAGE="JavaScript" src="_ScriptLibrary/RS.HTM"></script>
<SCRIPT LANGUAGE="JavaScript"> RSEnableRemoteScripting();</SCRIPT>
it tried BODY onload="setInterval('updatemywindow()', 1000);"
i did try something like this too:
BODY onload="CallMymethod();" and then
<SCRIPT LANGUAGE="JavaScript">
<!--
var serverURL="ServerUpdateResponse.asp";
var StrUpdate ='';
function CallMymethod()
{
window.setInterval("updatemywindow()",1000);
}
function updatemywindow()
{
var co = RSExecute(serverURL,"getupdateval",RetourUpdate);
document.Myform.txtgetupdate.value = StrUpdate ;
}
function RetourUpdate(co)
{
StrUpdate = co.return_value
}
and in my "ServerUpdateResponse.asp" form here's what i do....
<%@ LANGUAGE=VBSCRIPT %>
<!--#INCLUDE FILE="_ScriptLibrary/RS.asp"-->
<% RSDispatch %>
<script RUNAT="SERVER" Language="javascript">
function Description()
{
this.getupdateval = Function('return ReadUpdateval()');
}
var public_description = new Description();
</script>
<script RUNAT="SERVER"
Language="Vbscript">
and here i define my ReadUpdateval().......
this is not the problem it used to work everywhere else except on XP
with 6.0.2...Can someone tell me what i should do????
thanks a lot!!!
have a nice week end!