Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using HTTP Post from within a VFP program?
Message
De
23/10/2003 12:48:29
 
 
À
22/10/2003 10:58:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00832258
Message ID:
00841671
Vues:
48
I can rip some out of my page, but it's ASP and javascript os you'll need to translate.

>>>>>>>>>>>
Client side:

// Could have very large strings, so wrap in XML and post
var objXMLDoc = new ActiveXObject( "MSXML2.DOMDocument");
objXMLDoc.async = false;
objXMLDoc.resolveExternals = false;
objXMLDoc.loadXML( "" + strParams + "" + strUnassigned + "" + intRoundNo + "" + intGroupID + "")

// ...post...
var objSrvHTTP = new ActiveXObject( "MSXML2.XMLHTTP");
objSrvHTTP.open( "POST", gsPathCupComps + "Draws_Save.asp", false);
objSrvHTTP.send( objXMLDoc);

if ( objSrvHTTP.responseText == "True") {
// Success


>>>>>>>>>>>
Server Side ( Draws_Save.asp):

Dim objXMLDoc, objBusCupComp, blnRetVal

'- GEt XML from request object
Set objXMLDoc = Server.CreateObject("Msxml2.DOMDocument")
objXMLDoc.load( Request)

strDrawDetails = objXMLDoc.documentElement.selectSingleNode( "Params").text



>>>>>>>>>>>
This is ripped working code, so should help
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform