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.

Reply via email to