Hello, I am using Sarissa v 0.9.7.6 and prototype v 1.5. In ajax application, I am retrieving xml string from a local servlet and displaying it using xslt processing by sarissa. This works perfectly well in FF, however it gives bunch of error in IE. I have posted same type of problem quite few days back and I stopped using Sarissa. Now I need to use Sarissa so any help would be highly appreciated. Error in IE: Error -2147467262 No such interface supported No such interface supported undefined Error -2146828218 Permission denied Permission denied Code Base: URL = ''/ParserServlet?action=ajaxnews''; new Ajax.Request(URL, { method: ''get'', onSuccess: function(transport) { var newsDoc = transport.responseXML; var newDocument = processor.transformToDocument(newsDoc); $(''_loadingId'').update(''''); $(''_content'').update(''''); $(''_content'').appendChild(newDocument.firstChild); }, onError: function(transport,exception){ alert("Error :"+exception); }, onException: function(transport,exception) { alert("Exception :"+exception); var err; for(var ex in exception) { err += "<br/>"+exception[ex]; } document.write(err); } }); regards, Ranjan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I think the "permission denied" error in IE is caused by trying to access a different domain or by trying to access a DOM element for which you don''t have the rights (eg: 2 popup windows trying to access the parent at the same time). Do you know which line is throwing all these error messages ?> -----Original Message----- > From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails- > spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Ranjan Baisak > Sent: Monday, April 02, 2007 10:21 PM > To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: [Rails-spinoffs] Some cryptic error in IE > > Hello, > I am using Sarissa v 0.9.7.6 and prototype v 1.5. In ajax > application, I am retrieving xml string from a local servlet and > displaying it using xslt processing by sarissa. This works perfectly well > in FF, however it gives bunch of error in IE. I have posted same type of > problem quite few days back and I stopped using Sarissa. Now I need to use > Sarissa so any help would be highly appreciated. > > Error in IE: > Error > -2147467262 > No such interface supported > No such interface supported undefined > Error > -2146828218 > Permission denied > Permission denied > > Code Base: > > URL > > ''/ParserServlet?action=ajaxnews''; > > new Ajax.Request(URL, { > > method: ''get'', > > onSuccess: > > function(transport) { > > var > > newsDoc = transport.responseXML; > > var newDocument = processor.transformToDocument(newsDoc); > > $( > > ''_loadingId'').update(''''); > > $( > > ''_content'').update(''''); > > $( > > ''_content'').appendChild(newDocument.firstChild); > > }, > > onError: > > function(transport,exception){ > > alert("Error :"+exception); > > }, > > onException: > > function(transport,exception) > > { > > alert("Exception :"+exception); > > var err; > > for(var ex in exception) > > { > > err += "<br/>"+exception[ex]; > > } > > document.write(err); > > } > > } > > ); > > > > regards, > > Ranjan > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On further debugging, I realized that there are some ascii and non-english characters in xml string returned from servlet, which causes exception when IE converts string to DOM Document. I think by changing encoding of xml string might solve the problem, but have no idea how can I change encoding? Any help on encoding issue of XHR? - R On 4/3/07, Sherif Zaroubi <szaroubi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I think the "permission denied" error in IE is caused by trying to access > a > different domain or by trying to access a DOM element for which you don''t > have the rights (eg: 2 popup windows trying to access the parent at the > same > time). > > Do you know which line is throwing all these error messages ? > > > -----Original Message----- > > From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails- > > spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Ranjan Baisak > > Sent: Monday, April 02, 2007 10:21 PM > > To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > Subject: [Rails-spinoffs] Some cryptic error in IE > > > > Hello, > > I am using Sarissa v 0.9.7.6 and prototype v 1.5. In ajax > > application, I am retrieving xml string from a local servlet and > > displaying it using xslt processing by sarissa. This works perfectly > well > > in FF, however it gives bunch of error in IE. I have posted same type of > > problem quite few days back and I stopped using Sarissa. Now I need to > use > > Sarissa so any help would be highly appreciated. > > > > Error in IE: > > Error > > -2147467262 > > No such interface supported > > No such interface supported undefined > > Error > > -2146828218 > > Permission denied > > Permission denied > > > > Code Base: > > > > URL > > > > ''/ParserServlet?action=ajaxnews''; > > > > new Ajax.Request(URL, { > > > > method: ''get'', > > > > onSuccess: > > > > function(transport) { > > > > var > > > > newsDoc = transport.responseXML; > > > > var newDocument = processor.transformToDocument(newsDoc); > > > > $( > > > > ''_loadingId'').update(''''); > > > > $( > > > > ''_content'').update(''''); > > > > $( > > > > ''_content'').appendChild(newDocument.firstChild); > > > > }, > > > > onError: > > > > function(transport,exception){ > > > > alert("Error :"+exception); > > > > }, > > > > onException: > > > > function(transport,exception) > > > > { > > > > alert("Exception :"+exception); > > > > var err; > > > > for(var ex in exception) > > > > { > > > > err += "<br/>"+exception[ex]; > > > > } > > > > document.write(err); > > > > } > > > > } > > > > ); > > > > > > > > regards, > > > > Ranjan > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---