[jQuery] How to implement file upload using AJAX?
Hi, Does anybody know how a file pload using AJAX can be implemented in JQuery? If so, please give me an example. I intend to use PHP for the data receiving, but the problem is the sending actually. Thanks in advance Emilian -- View this message in context: http://www.nabble.com/How-to-implement-file-upload-using-AJAX--tf2408953.html#a6714606 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] $.ajax(...) not working under IE
Hi, I've already found out the answer, but big thanks for the post :) Blair McKenzie-2 wrote: response is the XMLRequest whatsit. This is so you can access response headers if you need to. So if the result is JSON: $.ajax({ type: 'GET', url: 'php/query/product.php?id=1', success: function(response){ var result = eval((+response.responseText+)); alert(result.id http://response.id/); } }); On 9/29/06, Balkanski [EMAIL PROTECTED] wrote: Hi, I tried following : $.ajax({ type: 'GET', url: 'php/query/product.php?id=1', success: function(response){ alert(response.id); } }); the php script throws {id:1} (JSON notation data) The alert under IE is 'undefined'; If I alert (response) - 'object' is displayed. I tried many things - eval(response) eval('var p = ' + response); and many more but nothing works... Any ideas ? Thanks in advance. -- View this message in context: http://www.nabble.com/%24.ajax%28...%29-not-working-under-IE-tf2356844.html#a6564807 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/%24.ajax%28...%29-not-working-under-IE-tf2356844.html#a6599076 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] $.ajax(...) not working under IE
Hi, I tried following : $.ajax({ type: 'GET', url: 'php/query/product.php?id=1', success: function(response){ alert(response.id); } }); the php script throws {id:1} (JSON notation data) The alert under IE is 'undefined'; If I alert (response) - 'object' is displayed. I tried many things - eval(response) eval('var p = ' + response); and many more but nothing works... Any ideas ? Thanks in advance. -- View this message in context: http://www.nabble.com/%24.ajax%28...%29-not-working-under-IE-tf2356844.html#a6564807 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] 'this' can't be used in $('elt').bind('event', function(){}) under IE
Hi, the following problem occurred to me under IE. Firefox is dealing OK with the code. For example : $('#list_element ul li').bind('click', function() { $(this).addClass('some_class'); }); IE throws a JS error I think that under IE 'this' is not recognized as the object just being clicked. If we have in the body of the function - alert(this.tagName) - FF - alerts 'LI' IE - alerts 'undefined' I'll be very grateful for any sugestions and solutions, thanks in advance. -- View this message in context: http://www.nabble.com/%27this%27-can%27t-be-used-in-%24%28%27elt%27%29.bind%28%27event%27%2Cfunction%28%29%7B%7D%29-under-IE-tf2355391.html#a6560398 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/