Suntower
Posts: 225
|
| Posted: 10/05/2006, 10:39 AM |
|
This is a conceptual issue, I'm afraid.
In the past, I have written Win32 code to send an HTTP request to a web server, grab the results, parse the data and format it into a page. Specifically for UPS, Fedex, DHL, etc.
Something like.... (pseudocode)
ServerName = "http://www.upsapps,com/tracking.cgi?TrackingID=1z345678903333"
hSession = InternetOpen(MyAgent,INTERNET_OPEN_TYPE_DIRECT,Nix,,0)
IF NOT Empty(hSession) THEN
hService = InternetOpenUrl(hSession,ServerName,Nix,0,0,0)
IF NOT Empty(hService) THEN
IF InternetReadFile(hService,lpBuffer,dwBytesAvailable,dwBytesRead)
...so now, I have the result returned from UPS in the lpBuffer string which I can format and display in a new window.
So in CCS I created a page with an <a> like the above...
<a ref="http://www.upsapps,com/tracking.cgi?TrackingID=1z345678903333">Click here to track</a>
And if the user clicks this they, of course, get a web page with the unformatted text.
QUESTION:
How do I format the text in the page that is returned -before- it gets to the user's browser?
OR, should I try to use the same (or analogous) functions above in VBScript and then use the returned string to build a new page?
Anyone have any code like this?
THANKS!
---JC
_________________
---On a campaign for more examples and better docs! |
 |
 |
|