Ian, The postNetText command performs an HTTP request with a method of POST. The request's entity-body is encoded in the "application/x-www-form-urlencoded" format, just as it would be if it were coming from an HTML form element). It's an HTTP request, just as calling gotoNetPage is, except the method used with gotoNetPage is GET. So, as a "form-based" HTTP Request, the VBScript in your ASP page can deal with the incoming data via the Request.Form collection. And it can send any response it wishes to via Response.Write.
Our Learning Activities use postNetText to send in various bits of information, plus an XML document fragment. That XML is databased, and the string "OK" is returned to the activity via the Response object. In certain modes, the ASP page that our activities post to responds with a copy of the XML sent in. The activity compares the XML that comes back with the XML that it had sent, just to make sure the POST transaction was clean and valid. In short, there's no need to perform two separate POST and GET requests to do what you want. The first POST request will do just fine, and you can respond in any way you deem fit. Christopher Watson Sr. Software Engineer Director/Shockwave Programming Lightspan, Inc. 858-824-8457 -----Original Message----- From: Ian Johnson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 4:15 AM To: [EMAIL PROTECTED] Subject: <lingo-l> postNetext and gotoNetpage Hi, I'm using 'postNettext' to send shockwave variables to an .asp script. This works slightly different from normal form posting as the browser url does not change to the postnettext target. Shockwave just receives the results of the postNetText/netTextResult for use in the shockwave environment. I want to send a load of stuff to an asp page that does something with the data (builds an image). The only way I can get this to work is by using a gotoNetPage with the data appended as the querystring. Obviously, that leaves the data open to manipulation in the querystring, which I would like to avoid. Can postNetText post data to an asp script that builds a page using that data (as normal form posting does) or is postNetText data always just sent back to the shockwave environment? Would the only way be: 1) postnettext to .asp script 2) script sends a return value (ID) back to shockwave 3) on shockwave receiving this return value, gotoNetPage with the ID that pulls the data from a database? Regards, IanMJ [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
