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:45:45
 
 
À
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:
00841668
Vues:
49
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") {
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform