/    Sign up×
Community /Pin to ProfileBookmark

javascript http request coding help

I am very new to this and need some help with code for this. Please take it easy on me. I am hosted on fatcow
Platform Type Debian
MySQL Version 5.0.77
Perl 5.8.8 and a bunch of installed modules
PHP 5.2.2

If someone could please tutor me through this code and where it goes that would be great.

Thanks, Paul

This is from the webmasters guide for Contentport (content port is a fictional name)

This is what I would like to do

Real-time XML Out Process

• A customer visits the website.
• The website sends an HTTP request to the Contentport system.
• The Contentport system retrieves the requested Offer Group data from the database and returns them in XML format as the HTTP response.
• The website styles the XML data as necessary for display.

[U]All requests to the Offer Group XML API are based on the following basic link:[/U]

[url]http://www.contentport.com/xmlout/Ge…nt=AccountCode[/url]

[U]Making an HTTP Request[/U]

Depending on the server technology you use to host your website, the options available to you are varied.
Most scripting languages have methods for initiating outbound HTTP requests.

If you are using Microsoft ASP and Internet Information Server to host your website, you can use the
ServerXMLHTTP object that comes bundled with versions 3 and newer of the MSXML parser. The
MSXML parser is available as a free download from the Microsoft website.

After you have installed the MSXML parser, initiating a HTTP request is a straightforward process. If your
network uses a firewall, it will be necessary to allow your web server to make outgoing HTTP connections

[U]Presenting the XML Data[/U]

There are a variety of methods that may be used to convert the data to a format suitable for display. You
can load the XML data into an XML parser for node-by-node manipulation, or you can use XSLT to
transform the XML.

I need the code to make a http request and then the code to style the xml data as html. and where in my html document does it go?

Which scripting language would be best suited for http request with my
server technology?

And how would the code be written for trying to get a http request from?
[url]http://www.contentport.com/xmlout/Ge…nt=AccountCode[/url]

Then once the data is returned it needs to be presented to the enduser as html how would i go about this?

I don’t believe i need node-by-node manipulation

to post a comment
JavaScript

1 Comments(s)

×

Success!

Help @landguy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...