Bug Tracker

Custom Query (13852 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (22 - 24 of 13852)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Ticket Resolution Summary Owner Reporter
#3263 invalid xmlhttprequest change jamescampbell
Description

woudn't putting this in the code be better:

if(typeof(XMLHttpRequest) == "undefined")){
	XMLHttpRequest = function(){
		var xmlHttp = null;
		try
	    {
			xmlHttp	=	new ActiveXObject("Msxml2.XMLHTTP");
	    }
		catch (e)
	    {
			xmlHttp	=	new ActiveXObject("Microsoft.XMLHTTP");
	    }
		return xmlHttp;
	}
}

so later instead of using this.

var xhr = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();

you use this

var xhr = new XMLHttpRequest();

#4617 duplicate xml() function, or addition to html() function yuniti
Description

Not sure what the preference would be - the advantage of making an xml() function would be that it is more sensical and would not allow a parameter, whereas html() would be consistent. In any case, below are both functions. xml() has been tested, html() was simply modified using the xml() code.

html: function( value ) {

var node = this[0]; return value === undefined ?

(node ?

(node.innerHTML ?

node.innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") :

(node.xml
(new XMLSerializer()).serializeToString(node) "")

.replace(new RegExp("(<
w*" + node.tagName + "[
>]*>)|(<
w*
/
w*" + node.tagName + "[>]*>$)", "gi"), "")) :

null) :

this.empty().append( value );

},

xml : function()

{

var node = this[0],

tagName = node.tagName;

if ( ! tagName )

return this.html();

return (node.xml
(new XMLSerializer()).serializeToString(node) "").replace(

new RegExp("(<
w*" + tagName + "[
>]*>)|(<
w*
/
w*" + tagName + "[>]*>$)", "gi"), "");

}

#2365 worksforme xml selector issue with IE7 (IE6 also ?) lideln
Description

Hi,

I tried my jQuery ajax code (that was working fine in firefox) under IE7. When trying to get a tag content from my xml answer, I get empty string (NOT in firefox but in IE7). This is a simple request that returns a <result>blahblah</result> result, and I try to get result with "var result = $('result', data).text();".

Maybe I missed something, but it does not work (but when displaying the response text, I can see it is good - which is normal since it works in FF)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Note: See TracQuery for help on using queries.