Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VBScript / Javascript difference
Message
 
 
À
17/09/2008 10:21:15
Information générale
Forum:
ASP.NET
Catégorie:
Client-side développement
Versions des environnements
Environment:
ASP.NET
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01348223
Message ID:
01348230
Vues:
21
Hi Viv,

May be you need to check variable for undefined? Did you try to call some JavaScript function with simple alert for now, not passing references to the form (how JavaScript will understand thisform object ?)

Also since you're calling it from VFP, should it be in VFP forum?

>Hi,
>
>Two alternative pieces of code ; the first using VBScript and the second using Javascript:
<script language="VBSCRIPT" type="text/vbscript">
>	Dim oVFPForm
>	Function SetFormRef(lotheForm)
>	  Set oVFPForm = lotheForm
>	End Function
></script>
><script language="javascript" type="text/javascript">
>    var jVFPForm;
>    function SetFormRef(lotheForm) {
>        jVFPForm = lotheForm;
>    }
></script>
>
>Calling the VBScript version from VFP with ".DOCUMENT.Script.SetFormRef(THISFORM)" works fine but the same line used against the Javascript function raises an OLE error. I don't think the code within the function is the problem - even an empty version of the function behaves the same. Anyone know what the problem might be?
>TIA,
>Viv
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform