View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
Recently i need some way to get some FoxWeb generated Javascript vars and try some ways to get, including Frames redirecting and other tricks.....
 
A few days ago I discover a greate solution and i share with you.....
 
On HTML insert a empty Script TAG with id :
 
<script language="JavaScript" id="myJS" src="">
</script>
when you need to get some some FoxWeb generated Javascript vars or Arrays yo can call a JavaScript function like this
 
<script language="JavaScript">
function getVars()
{
     myJS.src = '/scripts/foxweb.exe/getvars@e:/prg'
}
</script>
 
or use this to send parameters:
<script language="JavaScript">
function getVars(user, pass)
{
     myJS.src = '/scripts/foxweb.exe/getvars@e:/prg?usr='+user+'&pwd='+pass
}
</script>
some times the reques is saved on Temporary Files, you cand make this to avoid it :
<script language="JavaScript">
function getVars(user, pass)
{
     myJS.src = '/scripts/foxweb.exe/getvars@e:/prg?usr='+user+'&pwd='+pass + '&random=' + Math.random()
}
</script>

 

Eloy M. Vzz.