Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

Interchange, ajax and IE

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


m.mescoli at omnib

Aug 9, 2011, 4:54 AM

Post #1 of 3 (384 views)
Permalink
Interchange, ajax and IE

More tests with browsers, OSs and different js lines code but the result
is the same:
IE 8 and 9 get error on retreive result from remote server
(xmlhttp.responseText) but runs without problems w3schools.com ajax example.

Any idea ?
P.S js alert in the example code on IE 8,9 say:'IE6, IE5'

--- snip ---
function loadXMLDoc(){
var xmlhttp;
if (window.XMLHttpRequest) alert('IE7+, Firefox, Chrome, Opera, Safari');
else alert('IE6, IE5');
if (window.XMLHttpRequest) xmlhttp=new XMLHttpRequest();
else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200)

document.getElementById('clients_list').innerHTML=xmlhttp.responseText;
}
var url = '[area boll/clients_lnk ]'
+ "&id=[data session id]"
+ "&cod_boll=[cgi cod_boll]"
+ "&key=" + document.getElementById('key').value
xmlhttp.open( "GET", url, true );
xmlhttp.send();
}
--- snip ---

IE9 on w7 SCRIPT58734: Errore di sistema: -1072896658.
FF on w7 ok
IE8 on xp: Impossibile completare l'operazione a causa di un errore
c00ce56e.
FF on xp: ok
FF on linux: ok
Opera on linux: oK
Chrome on linux: oK
Safari on OSX: ok
FF on OSX: Error: uncaught exception: [Exception... "Not enough
arguments [nsIXMLHttpRequest.send]" nsresult: "0x80570001
(NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame ::
http://omnibit.mine.nu/cgi-bin/elcat/boll/testa_mod_ajax.html?mv_arg=&cod_boll=599057
:: loadXMLDoc :: line 46" data: no]

thanks to the list
--
Marco "Fino alla bara sinpara"
Marco "Up to demise we rise"

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


peter at pajamian

Aug 9, 2011, 5:30 AM

Post #2 of 3 (386 views)
Permalink
Re: Interchange, ajax and IE [In reply to]

On 09/08/11 23:54, marco wrote:
> IE9 on w7 SCRIPT58734: Errore di sistema: -1072896658.

Google for "system error 1072896658" shows this as the first result:
http://keelypavan.blogspot.com/2006/07/system-error-1072896658-in-ie.html

> IE8 on xp: Impossibile completare l'operazione a causa di un errore
> c00ce56e.

http://forums.tizag.com/showthread.php?t=12779

Both of the above are the same, IE is complaining because you're using
an invalid charset (you probably have MV_HTTP_CHARSET set to "UTF8"
instead of "UTF-8").

> FF on OSX: Error: uncaught exception: [Exception... "Not enough
> arguments [nsIXMLHttpRequest.send]" nsresult: "0x80570001
> (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame ::
> http://omnibit.mine.nu/cgi-bin/elcat/boll/testa_mod_ajax.html?mv_arg=&cod_boll=599057
> :: loadXMLDoc :: line 46" data: no]

send() has an optional argument which is ignored for GET or HEAD
methods. It is possible that on this particular browser it is not quite
so optional. Try changing xmlhttp.send(); to xmlhttp.send(""); It
should still be ignored but the added argument will allow it to pass the
sanity check of FF on OSX.


Peter

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


m.mescoli at omnib

Aug 9, 2011, 9:44 AM

Post #3 of 3 (381 views)
Permalink
Re: Interchange, ajax and IE [In reply to]

Il 09/08/2011 14:30, Peter ha scritto:
> On 09/08/11 23:54, marco wrote:
>> IE9 on w7 SCRIPT58734: Errore di sistema: -1072896658.
>> IE8 on xp: Impossibile completare l'operazione a causa di un errore
> an invalid charset (you probably have MV_HTTP_CHARSET set to "UTF8"
> instead of "UTF-8").
>> FF on OSX: Error: uncaught exception:
> send() has an optional argument which is ignored for GET or HEAD
> Peter

1) In catolog.cfg i had not any MV_HTTP_CHARSET declaration
then i put: Variable MV_HTTP_CHARSET UTF-8
2) Copy paste and adapt js code from forums.tizag.com with js .send(null)

IE9 on w7:ok solved
FF on w7 ok
IE8 on xp:ok solved
FF on xp: ok
FF on linux: ok
Opera on linux: oK
Chrome on linux: oK
Safari on OSX: ok
FF on OSX: ok solved

:-) Grande Pietro sei unico !

Thanks
--
Marco "Fino alla bara sinpara"
Marco "Up to demise we rise"

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.