Re: How to parse xml in JS
- From: VK <schools_ring@xxxxxxxxx>
- Date: Wed, 21 Nov 2007 04:46:58 -0800 (PST)
On Nov 21, 11:31 am, Bart Van der Donck <b...@xxxxxxxxxx> wrote:
VK wrote:
On Nov 20, 9:21 pm, "Piotr Maslak" <piotr.mas...@xxxxx> wrote:
Hello everyone, I looking for a gently solution
how to get information from xml (giving url) and
then format and print with JS with interval
You cannot work with data across different domains. There are
different ways to use different auxiliary transports for cross-domain
XML data transfer (Web Services, Runtime Script Blocks, JSONet) - but
they are rather or very far from anything being "gently" :-)
What an odd opinion.
What is odd in here? That JavaScript cannot operate (by default)
across domains? The OP question was about possible JS solutions, not
just about any possible solution. ;-)
It are server-
side XML scripts that open the real possibilities, not XMLHttpRequest.
Virtually any server side language is able to make remote requests
(typically using sockets, but I've also used plain HTTP, ot whatever
channel that both parties understand). Most of the server languages
also have XML parsers. From the point you have those two tools (remote
requests + XML parser), the sky is the limit.
Yes, and doubled Internet traffic worldwide ;-) :-(
With client-side cross-domain handling we have:
Client <--> Server A
^-- <--> Server B
With any of content-grabbers we have:
Client
Client <--> Server A
^-- <--> Server A <--> Server B
So on each such call one has one absolutely "no added value" data
transfer.
Think of it as of a real standard and think of pentabytes of useless
data transfers across the Internet.
So no, my opinion is that server-side content-grabbers is a temporary
forced measure caused by stubbornness of UA producers (they kept
believing that it adds any security to their clients). The future is
for Web Services and server-side access permission files (WSDL).
.
- Follow-Ups:
- Re: How to parse xml in JS
- From: Bart Van der Donck
- Re: How to parse xml in JS
- References:
- How to parse xml in JS
- From: Piotr Maslak
- Re: How to parse xml in JS
- From: VK
- Re: How to parse xml in JS
- From: Bart Van der Donck
- How to parse xml in JS
- Prev by Date: Re: Newbie: Server Callback question
- Next by Date: Re: How to parse xml in JS
- Previous by thread: Re: How to parse xml in JS
- Next by thread: Re: How to parse xml in JS
- Index(es):
Relevant Pages
|