id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blocking	blockedby
5093	$.post() and $.get() XML bug	Vadtec		"I am using jQuery 1.3.2 with FireFox 3.5.2 on Windows XP, FireFox 3.0.11 on CentOS 5.3 (Linux 2.6.18-128.2.1.el5 #1 SMP Tue Jul 14 06:39:56 EDT 2009 i686 athlon i386 GNU/Linux) and IE 6 on Windows XP.

I am trying to use the following code:

if ($) {
	$(document).ready(
		function() {
			var my_sid = 12345;
			
			console.log(""SID: "" + my_sid);
			
			$.post(
				'nav_xml.php',
				{sid: my_sid},
				function (xml) {					
					console.log(""entry"");
				},
				'xml'
			);
		}
	);
}

If I pass data, in FireBug I see the HTTP POST request and response and it works properly, however, the callback function is never called. Thus, in the console log I see:


SID: 12345
HTTP POST & response

If I comment out the data and run the code, in FireBug I see:

SID: 12345
HTTP POST & response
entry

After talking to atula in #jquery on freenode, I removed the 'xml' parameter and everything worked just fine in all 3 browsers.

So simply put, having the 'xml' parameter causes the callback to not be called, but removing it allows everything to work just fine.

I have attached the exact jquery source I am working with for reference.

Thanks, Vadtec"	bug	closed	major	1.3.2	ajax	1.3.2	duplicate	post, get, xml, ajax			
