Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using HTTP Post from within a VFP program?
Message
From
23/10/2003 12:48:29
 
 
To
22/10/2003 10:58:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00832258
Message ID:
00841671
Views:
44
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
Previous
Reply
Map
View

Click here to load this message in the networking platform