PDA

View Full Version : Object doesn't support this property or method (ie8 maybe also other ie versions)



edude
08-21-2010, 03:42 PM
Hello hello,

i'm not very familiar with coding and that includes javascript :S
learning though...

anyway i got this ajax javascript thing for a dynamic photo album
and i'm also using jquery for navigation.

i noticed that IE8 both 32 and 64 bit version on windows 7 64 bit,
SOMETIMES, like 50%, stops loading the page with an obscure error (for me)
being: "Object doesn't support this property or method"

it gives me a line where i find:
{

xmlHttpReq = new XMLHttpRequest();

}

does this ring a bell??? i have no clue, been searching the net all day...
is it only on 64 bit systems? dunno will reboot a win7 32 bit and test asap.


greets and thx for any feedback!

edude
08-21-2010, 03:45 PM
Hello hello,

i'm not very familiar with coding and that includes javascript :S
learning though...

anyway i got this ajax javascript thing for a dynamic photo album
and i'm also using jquery for navigation.

i noticed that IE8 both 32 and 64 bit version on windows 7 64 bit,
SOMETIMES, like 50%, stops loading the page with an obscure error (for me)
being: "Object doesn't support this property or method"

it gives me a line where i find:
{

xmlHttpReq = new XMLHttpRequest();

}

does this ring a bell??? i have no clue, been searching the net all day...
is it only on 64 bit systems? dunno will reboot a win7 32 bit and test asap.


greets and thx for any feedback!

this is the function:

function xmlhttpPost(divName,ifile)

{

if ( debug ) alert( "xmlhttpPost('"+divName+"', '"+ifile+"');" );



var xmlHttpReq = false;

if (window.XMLHttpRequest) // Mozilla/Safari

{

xmlHttpReq = new XMLHttpRequest();

}

else if (window.ActiveXObject) // IE

{

xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");

}

else

{

if ( !has_been_warned )

alert( "Your browser is not AJAX compatible!" );



has_been_warned = true;



return;

}



xmlHttpReq.open('POST', divName + ".php", true);

xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

xmlHttpReq.onreadystatechange =

function()

{

if (xmlHttpReq.readyState == 4)

{

updatepage(divName, xmlHttpReq.responseText);

}

}

xmlHttpReq.send(getquerystring(ifile));

}

edude
08-22-2010, 11:48 PM
same for 32 bit ie8