CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Parsing Data Returned From A Service Before Display

Print topic Send  topic

Author Message
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!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.