[jQuery] Re: $.ajax() issue
Hi, I installed fiddler and analyised the traffic but i am not able to find the result. So, can you help me out to find whats going wrong? On Aug 29, 7:13 pm, MorningZ morni...@gmail.com wrote: I do not understand did you not ask in the original post: So i need help to figure out whether this is client-side or server- sideissue Using Fiddler will tell you if it's a client side or server sideissue because it will show you EXACTLY what the browser is trying to do something littering your code with alert-s is not going to accomplish... Whatever i suppose good luck solving yourissuehow you see fit On Aug 29, 10:01 am, g...@iec abhi.pur...@gmail.com wrote: Is there any other way to find out the root cause apart from these. On Aug 29, 6:55 pm, MorningZ morni...@gmail.com wrote: Have you tried an HTTP monitor like Fiddler (http://www.getfiddler.com) to see what is going on when the $.ajaxrequest starts? That will help diagnose for sure On Aug 29, 9:46 am, g...@iec abhi.pur...@gmail.com wrote: Hi all, I have anissue. I am submitting XML data usingajaxcall which updates data on server. It works fine in firefox but gave 404 error in IE. Theajaxcall which i am using is mentioned below : var url = '/' + serviceContext + '/services/content/update/' + structid; alert(nodeData); $.ajax({ url: url, type: 'POST', data: nodeData, contentType: 'application/xml;charset= UTF-8', cache: false, processData: false, dataType: 'xml', success: function(){ changeCounter = 0; $('#messages').text('Changes to metadata updated successfully.'); return false; }, error: function(xhr, textStatus, errorThrown) { $('#messages').text('Error! HTTP Error code ' + xhr.status).addClass('warning'); return false; } }); Here nodeData is a xml which i am sending to server. So i need help to figure out whether this is client-side or server- sideissue. This call works fine in firefox and updates data on server but in ie it gave 404 error (and response from server says : ' Could not find resource at '/' + serviceContext + '/services/content/update/' + structid link. ') Thanks to all in advance for providing suggestions.
[jQuery] Re: $.ajax() issue
Hi MorningZ, I found the problem. In ie, 'contentType' changed from 'application/xml' to 'text/xml' and on server-side we are expecting 'application/xml'.And in firefox,contentType is application/xml. But don't know how it got changed? Any idea is welcomed. On Sep 1, 11:22 am, g...@iec abhi.pur...@gmail.com wrote: Hi, I installed fiddler and analyised the traffic but i am not able to find the result. So, can you help me out to find whats going wrong? On Aug 29, 7:13 pm, MorningZ morni...@gmail.com wrote: I do not understand did you not ask in the original post: So i need help to figure out whether this is client-side or server- sideissue Using Fiddler will tell you if it's a client side or server sideissue because it will show you EXACTLY what the browser is trying to do something littering your code with alert-s is not going to accomplish... Whatever i suppose good luck solving yourissuehow you see fit On Aug 29, 10:01 am, g...@iec abhi.pur...@gmail.com wrote: Is there any other way to find out the root cause apart from these. On Aug 29, 6:55 pm, MorningZ morni...@gmail.com wrote: Have you tried an HTTP monitor like Fiddler (http://www.getfiddler.com) to see what is going on when the $.ajaxrequest starts? That will help diagnose for sure On Aug 29, 9:46 am, g...@iec abhi.pur...@gmail.com wrote: Hi all, I have anissue. I am submitting XML data usingajaxcall which updates data on server. It works fine in firefox but gave 404 error in IE. Theajaxcall which i am using is mentioned below : var url = '/' + serviceContext + '/services/content/update/' + structid; alert(nodeData); $.ajax({ url: url, type: 'POST', data: nodeData, contentType: 'application/xml;charset= UTF-8', cache: false, processData: false, dataType: 'xml', success: function(){ changeCounter = 0; $('#messages').text('Changes to metadata updated successfully.'); return false; }, error: function(xhr, textStatus, errorThrown) { $('#messages').text('Error! HTTP Error code ' + xhr.status).addClass('warning'); return false; } }); Here nodeData is a xml which i am sending to server. So i need help to figure out whether this is client-side or server- sideissue. This call works fine in firefox and updates data on server but in ie it gave 404 error (and response from server says : ' Could not find resource at '/' + serviceContext + '/services/content/update/' + structid link. ') Thanks to all in advance for providing suggestions.
[jQuery] Re: $.ajax() issue
Have you tried an HTTP monitor like Fiddler (http:// www.getfiddler.com) to see what is going on when the $.ajax request starts? That will help diagnose for sure On Aug 29, 9:46 am, g...@iec abhi.pur...@gmail.com wrote: Hi all, I have an issue. I am submitting XML data using ajax call which updates data on server. It works fine in firefox but gave 404 error in IE. The ajax call which i am using is mentioned below : var url = '/' + serviceContext + '/services/content/update/' + structid; alert(nodeData); $.ajax({ url: url, type: 'POST', data: nodeData, contentType: 'application/xml;charset= UTF-8', cache: false, processData: false, dataType: 'xml', success: function(){ changeCounter = 0; $('#messages').text('Changes to metadata updated successfully.'); return false; }, error: function(xhr, textStatus, errorThrown) { $('#messages').text('Error! HTTP Error code ' + xhr.status).addClass('warning'); return false; } }); Here nodeData is a xml which i am sending to server. So i need help to figure out whether this is client-side or server- side issue. This call works fine in firefox and updates data on server but in ie it gave 404 error (and response from server says : ' Could not find resource at '/' + serviceContext + '/services/content/update/' + structid link. ') Thanks to all in advance for providing suggestions.
[jQuery] Re: $.ajax() issue
Is there any other way to find out the root cause apart from these. On Aug 29, 6:55 pm, MorningZ morni...@gmail.com wrote: Have you tried an HTTP monitor like Fiddler (http://www.getfiddler.com) to see what is going on when the $.ajax request starts? That will help diagnose for sure On Aug 29, 9:46 am, g...@iec abhi.pur...@gmail.com wrote: Hi all, I have an issue. I am submitting XML data using ajax call which updates data on server. It works fine in firefox but gave 404 error in IE. The ajax call which i am using is mentioned below : var url = '/' + serviceContext + '/services/content/update/' + structid; alert(nodeData); $.ajax({ url: url, type: 'POST', data: nodeData, contentType: 'application/xml;charset= UTF-8', cache: false, processData: false, dataType: 'xml', success: function(){ changeCounter = 0; $('#messages').text('Changes to metadata updated successfully.'); return false; }, error: function(xhr, textStatus, errorThrown) { $('#messages').text('Error! HTTP Error code ' + xhr.status).addClass('warning'); return false; } }); Here nodeData is a xml which i am sending to server. So i need help to figure out whether this is client-side or server- side issue. This call works fine in firefox and updates data on server but in ie it gave 404 error (and response from server says : ' Could not find resource at '/' + serviceContext + '/services/content/update/' + structid link. ') Thanks to all in advance for providing suggestions.
[jQuery] Re: $.ajax() issue
I do not understand did you not ask in the original post: So i need help to figure out whether this is client-side or server- side issue Using Fiddler will tell you if it's a client side or server side issue because it will show you EXACTLY what the browser is trying to do something littering your code with alert-s is not going to accomplish... Whatever i suppose good luck solving your issue how you see fit On Aug 29, 10:01 am, g...@iec abhi.pur...@gmail.com wrote: Is there any other way to find out the root cause apart from these. On Aug 29, 6:55 pm, MorningZ morni...@gmail.com wrote: Have you tried an HTTP monitor like Fiddler (http://www.getfiddler.com) to see what is going on when the $.ajax request starts? That will help diagnose for sure On Aug 29, 9:46 am, g...@iec abhi.pur...@gmail.com wrote: Hi all, I have an issue. I am submitting XML data using ajax call which updates data on server. It works fine in firefox but gave 404 error in IE. The ajax call which i am using is mentioned below : var url = '/' + serviceContext + '/services/content/update/' + structid; alert(nodeData); $.ajax({ url: url, type: 'POST', data: nodeData, contentType: 'application/xml;charset= UTF-8', cache: false, processData: false, dataType: 'xml', success: function(){ changeCounter = 0; $('#messages').text('Changes to metadata updated successfully.'); return false; }, error: function(xhr, textStatus, errorThrown) { $('#messages').text('Error! HTTP Error code ' + xhr.status).addClass('warning'); return false; } }); Here nodeData is a xml which i am sending to server. So i need help to figure out whether this is client-side or server- side issue. This call works fine in firefox and updates data on server but in ie it gave 404 error (and response from server says : ' Could not find resource at '/' + serviceContext + '/services/content/update/' + structid link. ') Thanks to all in advance for providing suggestions.
[jQuery] Re: AJAX issue
You might try this: $(data).find(item).each(function(i, item) { stuff = $item.find('[nodeName=content:encoded]') ... Where 'data' is what comes back from the ajax call. I couldn't find another way to get the data from a 'xx:yy' element. I asked the question on the board here and this was the best answer I got. On May 9, 1:24 pm, Connor con...@letsbeglobal.com wrote: Hi, I've been experimenting with jQuery's AJAX capabilities. I was trying to create an effect that pulls data from an XML RSS feed and displays it. Long story short, I got everything to work, but I couldn't figure out how to pull data from a CDATA section like the following: item content:encoded![CDATA[p Some text /p ]]/content:encoded /item I wanted to put the Some Text in a variable. But I have no clue how. This is what my jquery looks like so far: $.ajax({ type: GET, url: vid.xml, dataType: xml, success: function(xml) { $(xml).find('item').each(function(){ var text = $(this).children(content).text(); }); //close each( } }); //close $.ajax( How would I go about targeting the p tag or the content inside? Thanks for any help, Connor
[jQuery] Re: AJAX issue
-Mensagem Original- De: Connor con...@letsbeglobal.com ... item content:encoded![CDATA[p Some text /p ]]/content:encoded /item How would I go about targeting the p tag or the content inside? --- Try: $(xml).find('content:encoded').each(function(){ var text = $(this).text(); Maurício
[jQuery] Re: AJAX issue
Hello guys and gals, would greatly appreciate it if anyone could help out with a problem I'm having while using FCKeditor?! Whenever I edit some content and submit it, it auto corrects stuff, i.e. image tags or adds these: \quot; into places. Creates loads of problems, nonetheless so if you would help out, that'd be great. Naz. On 9 May 2009, at 22:24, Mauricio (Maujor) Samy Silva wrote: -Mensagem Original- De: Connor con...@letsbeglobal.com ... item content:encoded![CDATA[p Some text /p ]]/content:encoded /item How would I go about targeting the p tag or the content inside? --- Try: $(xml).find('content:encoded').each(function(){ var text = $(this).text(); Maurício
[jQuery] Re: ajax issue
Try asking this question in the jQuery UI group the UI guys hang out over there mostly and would probably be the best to help you. Good luck, Ralph On Wed, Apr 8, 2009 at 5:05 PM, Rogers roghell...@aol.com wrote: The following code works well in all cases, except when run under the UI tabs as an ajax called program. Using the (latest versions of jquery and UI) I can see by the console.log that prgm is set to the correct value, but the program is called, but when run under tabs data is always empty. Any ideas where is need to look or poke next? console.log(Vitals from assessment prgm:%s,prgm); $.post(prgm,function(data){ console.log(Vitals - from assessment data:%s,data);
[jQuery] Re: Ajax? issue in IE 7
I found the problem. $('a.thickbox').click(function(){ $(*).css(padding,0); $(*).css(margin,0); }); I hadn't pasted that in the mail because I didn't think of the missing quotes around * causing a problem. I'm pretty sure I just pasted that directly from somewhere... Anyway, don't ya hate it when you spend hours scouring your code and questioning your sanity and the whole time it was someone else's causing problems :/ Live and learn... David D On Apr 8, 10:53 pm, David D [EMAIL PROTECTED] wrote: I'm not for certain the event is firing. What seems kind of strange is hide, show, and other effects dont seem to work correctly in that particular area of the page as well. What marr.adam is saying does kind of describe what seems to be happening, but it only happens from the main page. I am running a php framework (xaraya) and any jquery code that is loaded from other templates appear to work correctly in IE 7. I'm rather stumped. The only thing I can think of is to work on the rest of the project and hope I find an answer somewhere along the way. David D On Apr 6, 10:35 pm, Hamish Campbell [EMAIL PROTECTED] wrote: Either the event didn't bind properly, or something is preventing it reaching return false; Is the even definitely firing? Do your other calls include the fadeOut and, if not, does it work when you remove that line? On Apr 7, 9:39 am, David D [EMAIL PROTECTED] wrote: I have a login box that loads inside a container via an ajax request, using .click. Here's the code: $(document).ready(function(){ $('a.login').click(function(){ var thiscontainer = # + this.rel; $.ajax({ url: this.href + pageName=html, cache: false, success: function(html){ $(thiscontainer).append(html); } }); $('.login').fadeOut('slow'); return false; }); }); It works fine in FF2, but in IE7 it just opens the url, instead of loading the requested page in the container (div). I have several other ajax requests that use the same code and they all seem to work fine in IE7. Any ideas why this particular request is different? Thanks for the help.
[jQuery] Re: Ajax? issue in IE 7
Ah, hate it when that happens. By the way, are you using Firebug for Firefox? That would help you find this sort of issue a lot quicker. On Apr 11, 6:16 am, David D [EMAIL PROTECTED] wrote: I found the problem. $('a.thickbox').click(function(){ $(*).css(padding,0); $(*).css(margin,0); }); I hadn't pasted that in the mail because I didn't think of the missing quotes around * causing a problem. I'm pretty sure I just pasted that directly from somewhere... Anyway, don't ya hate it when you spend hours scouring your code and questioning your sanity and the whole time it was someone else's causing problems :/ Live and learn... David D On Apr 8, 10:53 pm, David D [EMAIL PROTECTED] wrote: I'm not for certain the event is firing. What seems kind of strange is hide, show, and other effects dont seem to work correctly in that particular area of the page as well. What marr.adam is saying does kind of describe what seems to be happening, but it only happens from the main page. I am running a php framework (xaraya) and any jquery code that is loaded from other templates appear to work correctly in IE 7. I'm rather stumped. The only thing I can think of is to work on the rest of the project and hope I find an answer somewhere along the way. David D On Apr 6, 10:35 pm, Hamish Campbell [EMAIL PROTECTED] wrote: Either the event didn't bind properly, or something is preventing it reaching return false; Is the even definitely firing? Do your other calls include the fadeOut and, if not, does it work when you remove that line? On Apr 7, 9:39 am, David D [EMAIL PROTECTED] wrote: I have a login box that loads inside a container via an ajax request, using .click. Here's the code: $(document).ready(function(){ $('a.login').click(function(){ var thiscontainer = # + this.rel; $.ajax({ url: this.href + pageName=html, cache: false, success: function(html){ $(thiscontainer).append(html); } }); $('.login').fadeOut('slow'); return false; }); }); It works fine in FF2, but in IE7 it just opens the url, instead of loading the requested page in the container (div). I have several other ajax requests that use the same code and they all seem to work fine in IE7. Any ideas why this particular request is different? Thanks for the help.- Hide quoted text - - Show quoted text -
[jQuery] Re: Ajax? issue in IE 7
I'm not for certain the event is firing. What seems kind of strange is hide, show, and other effects dont seem to work correctly in that particular area of the page as well. What marr.adam is saying does kind of describe what seems to be happening, but it only happens from the main page. I am running a php framework (xaraya) and any jquery code that is loaded from other templates appear to work correctly in IE 7. I'm rather stumped. The only thing I can think of is to work on the rest of the project and hope I find an answer somewhere along the way. David D On Apr 6, 10:35 pm, Hamish Campbell [EMAIL PROTECTED] wrote: Either the event didn't bind properly, or something is preventing it reaching return false; Is the even definitely firing? Do your other calls include the fadeOut and, if not, does it work when you remove that line? On Apr 7, 9:39 am, David D [EMAIL PROTECTED] wrote: I have a login box that loads inside a container via an ajax request, using .click. Here's the code: $(document).ready(function(){ $('a.login').click(function(){ var thiscontainer = # + this.rel; $.ajax({ url: this.href + pageName=html, cache: false, success: function(html){ $(thiscontainer).append(html); } }); $('.login').fadeOut('slow'); return false; }); }); It works fine in FF2, but in IE7 it just opens the url, instead of loading the requested page in the container (div). I have several other ajax requests that use the same code and they all seem to work fine in IE7. Any ideas why this particular request is different? Thanks for the help.
[jQuery] Re: Ajax? issue in IE 7
I don't know the ins and outs, and my company is still stuck on ie6, but when we do ajax calls on a tags, we remove the href attribute. There are different ways to achieve the same result w/out the href (this happens often to allow pages to degrade nicely for users with js turned off, replicate the href func with mouseover), and I'm not sure about how the adding a js click event is different than using onclick on the tag, however I do know that IE doesn't seem to like when functions return false as opposed to the onclick. This may not be the issue, but when I've used onclicks in the past, calling a function that returns false still allows the page to forward to the href in IE, so a href='blah' onclick=returnFalse()/ executes the function, but then forwards to blah, where onclick=returnFalse(); return false;' does not. Just a guess, but sounds like this may be the issue.