[jQuery] $.ajax() issue
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] AJAX issue
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] ajax issue
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] Ajax? issue in IE 7
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] ajax issue with ie6 ie7 ?
Hi, I have this ajax call: $.get(/cgi/check, function(data) { $(#check).append(data); }); as part of my local home page. The first time this loads on IE6 , IE7 it prompts an Operation cancelled alert, but later viewing/launching of the home page do not cause this behavior. This works ok with FF2. Any ideas why this might be ? Thanks jose