01-13-2005, 05:38 PM
Here's the 411:
Connect to my database...
open the users table and retrieve their cell numbers
attach @company.com to each number and attatch the string to "sendStr"
(Cdonts component lies on a different server from the server the database is on)
so i need to send a queryString to "somewhere.asp?sendto=" & sendStr
to that asp file....
how would i get that done
(GOD, i hope some out there can understand what i just wrote... hell it confuses me!!!)
01-14-2005, 10:54 AM
in asp you can run pages with XMLHTTP (also useful to get passed blocked sites for work at college :rolleyes: ) but im not sure if this is the best way to do this, it seems to work about 30 times a day on my server and after that it just hangs if someone tries to run any page on the server that uses it but apparently im the only person in the universe that this happens to *shrugs*
strURl = Request.Form("frmURL")
strPostData = Request.Form("frmPostData")
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
'Set objXMLHTTP = Server.Createobject("MSXML2.ServerXMLHTTP")
objXMLHTTP.Open "GET", strURL, false
objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objXMLHTTP.send strPostData 'comment this line if you dont want to send post data to the form
'Response.ContentType = "text/xml"
Response.Write objXMLHTTP.responseText 'comment this line if you dont want it to show the html the server generated
this can be used to POST data if you send it in a similar way to request.form outputs it, ie field1=something&field=somethingelse&...
there are also some lines in there that arent needed (the commented ones) because i was just playing with a way of stopping mine from hanging but it didnt work :p)
01-14-2005, 01:01 PM
So lets see if i understand coz I'm a lil bit totally lost here.... :confused:
You're suggesting that I put the code you posted in the window that will be opened? So that it will automatically grab all the form data from the parent window that trigger it?
And I don't get the delay part, please rephrase
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.