VK said:
Bart, first of all you did a great job by putting efforts both into
the script itself, the documentation and even the site layout.
Thanks VK.
Secondly, and in continuation of our discussion this is not AJAX and
it is not cross-domain IMO.
My argument would be that it is AJAX because the ACD object is very
similar to the XMLHttpRequest object (ACD.responseText,
ACD.getAllResponseHeaders, ACD.getResponseHeader()...). The javascript
programmer has a hierarchy of objects available, and AJAX Cross Domain
adds just one to it, namely the ACD object. That's why I would prefer
the term 'extension' for it.
Probably you would rather call it a wrapper (which is basically how it
works indeed, see section 'Flowchart' in the docs) but that depends
from which point you look at it. The javascript programmer has his
usual DOM + one new object.
You state that it's not cross-domain. I can't think of a reason why it
would not be cross-domain because that's how it's intended to work.
It is yet another
nicely done "pacified" content-grabber to be run server-side. There is
an N amount of such scripts written and X currently in use. Far not
all of them are used for content stealing, many are forcedly used by
server admins for the legitimate purpose as yours. A year or so ago I
also proposed in this group my StarGates PERL script as a temporary
workaround for the cross-browser lock:
http://www.geocities.com/schools_ring/stargates/index.html
I was not aware of this program that you wrote. I see you use a number
of similar techniques as me, like putting the URL in query-string,
LWP, ... (by the way, you should really use 'strict' and 'warnings'
mode). But I think there is much more to it than the part you have
coded out. One thing which is not clear is how the authentication is
done. With no authentication anyone can request any resource from your
server under your name - just think how happy spammers would be with
that (when intended for admin tasks only, then authentication is
different of course).
In all modesty, I think I have taken it some steps further than you. I
believe my library could be suitable for public web sites and easy to
work with for javascript programmers.
An endless amount of such programs can be found in the Net starting
from the oldest PERL repository (after SPAN of course)
You probably mean CPAN ?
Yes, I've been familiar with ResourceIndex
since the end of the nineties or so.
Anyone can take any of them and use for AJAX instead of content
stealing.
I do remain on my point of view - no one has to share it - that this
traffic-doubling server-side solution is a dead branch of evolution.
It existence solely supported by the pointless stubbornness of all
browser producers first, and later by slow moving of alternate
producers who tried to avoid Web Service implementation as long as
possible.
A good point is the dedoubling of traffic indeed. But one bridge too
far for me is concluding that such applications have no future.
Client side content-grabbers will never have the same possibilities
like server-side due to all kinds of (necessary) security measures.
That's why I believe AJAX Cross Domain could be a useful gateway to
provide in this functionality for the javascript programmer.
You're right that (of course) some of the techniques are (must be)
identical than the classic CGI-interfaces to mini-browsers. But as far
as I can see, none of them does it the AJAX-way, which is like
XMLHttpRequest works. Of course I'm fishing at the programmer here to
make him think "Hey! That's simple, I already know this, it's just
like XHR!". I consider this immediate Aha-Erlebnis as a big advantage
in user-friendliness and transparency for programmers.