Version: unknown (using KDE 3.1.92 (CVS >= 20031019), (testing/unstable)) Compiler: gcc version 3.3.2 (Debian) OS: Linux (i686) release 2.4.22-hadron I have some scripts which require the ability to fetch a file via HTTP to function properly. I'd like to see support for Mozilla's XMLHttpRequest method of doing this, or some equivalent.
I think that this would very useful. there are many sites that use this extension alot.
Like?
http://www.orkut.com
ok, and another to support your "many" statement?
Oh, sorry - that's the most visible. I can't show any other publicly accessible websites but I'm sure there are others. I've personally seen 4 more who use about the same logic as Orkut: The Israeli's ministry of transportation on-line shop (where you can renew a driver license) is also based on .net so it might be related. Also, in three not related consulting gigs I was involved in, someone at some stage wanted to use or already used xmlHttpRequest with the argument that its ok to use it as its perfectly cross-platform - it works on both IE and Mozilla. That's MS-Windows mindset at its best, but still they have a point
We we will be using this more and more in Plone (www.plone.org) and would love to see it supported in Konqueror.
It is used by most of the a few of the more modern Javascript remote scripting frameworks. eg. http://sarissa.sourceforge.net/ I am working on one too which i'd like to work with konqueror: http://oss.metaparadigm.com/jsonrpc/ It requires a working XMLHttpRequest object. We have a few internal web apps using this sort of functionality to avoid page reloading (by sending XML-RPC messages). It is the way of the future for web apps. BTW - Safari has this object working. I notice in 3.2.1 the object is there but I just get "undefined" after doing a send on the object.
This bug was resolved in the latest version of Safari. David Hyatt talks about it here: http://weblogs.mozillazine.org/hyatt/archives/2004_02.html#004874
In 3.2.0 the object is there too and if using synchronous doesn't throw any exception. It doesn't seems right. i had to add this workaround function main() { try { var queryStr = query_browser(); if (navigator.vendor.indexOf('KDE') != -1) throw new Error('KDE XMLHttpRequest Object buggy'); var req = getHttpReq(); req.open('POST', '<?php echo $_SERVER['PHP_SELF'];?>', false); if (errorStr != 'hecchan_js_error_checker') queryStr += (errorStr + 'User Agent: ' + navigator.userAgent +sep + sep); req.send(queryStr); window.location = '<?php print($_SESSION['ReqPage']);?>'; } catch(e) { log_error(e); if (errorStr != 'hecchan_js_error_checker') queryStr += (errorStr + 'User Agent: ' + navigator.userAgent +sep + sep); send_by_form(queryStr, '<?php echo $_SERVER['PHP_SELF'];?>', 'hecchan_js_checker'); } } I hope konqueror will fix it soon...
CVS commit by zrusin: After long, long wait they're finally here: XMLHTTPRequest and XMLSerializer. Safari code was pretty nice but because of the id handling differences, kio, http headers and xml parsing problems it took me way more time then it should. So yeah, Orkout fans please stop emailing us. CCMAIL:66816-done@bugs.kde.org M +1 -1 dom/dom_doc.h 1.43 M +5 -1 ecma/Makefile.am 1.46 M +5 -1 ecma/kjs_window.cpp 1.377 M +1 -1 ecma/kjs_window.h 1.104 M +513 -12 ecma/xmlhttprequest.cpp 1.2 M +87 -5 ecma/xmlhttprequest.h 1.2