Date:  12/22/2005 07:35:26 AM Msg ID:  002792
From:  Larry Zhang Thread:  002792
Subject:  Can we mix jscript with FoxWeb script?
Both Java script and FoxWeb code are using <%  %> tags. Can we use them mixedly? Can I put JScript inside my Foxweb codes?
(I just found a piece of JMail that I wish to use.)  Thank you.  e.g.
 
<%
IF Request.FormCount("email") <> 0
 
    Select password from user ;
       where Upper(email)=UPPER(Request.Form("email"));
       INTO CURSOR results
    if _tally>0
        cPWD=allt(Results.password)
        **---JScript begin
        Dim objJMail
        Set objJMail = Server.CreatObject("JMail.SMSTPMail")
        objJMail.ServerAddress="smtp.maintech-corp.com:25"
        objJMail.Sender = "abc@yahoo.com"
        objJMail.AddRecipient "xyz@hotmail.com"
        objJMail.Subject = "Password"
        objJMail.Body = "Hello. This is your password:" & cPWD  && Not sure if "&" is OK here
        objJMail.Priority = 3
        objJMail.Execute
        Set objJMail = Nothing
        **--JScript End
 
   Endif
Endif
%>