Re: Problem deploying with Firefox/Chrome
On 08/31/2009 07:43 AM, Rahul wrote: > > Hi > I just checked and i am not getting an null response > xmlDoc1 is not empty with FireFox also What happens after the removeWhitespace() call? Also, try pruning the MDL file to a bare minimum. See if that works on all browsers. Then start adding back HTML elements. I'm not convinced that there isn't an error about which either FF or Chrome is stricter than IE. The other thing you can try is to take the result of the removeWhitespace() call (via capturing the output from a call to GWT.log), add any missing elements (like Head), put it into a separate HTML file and load it via the "load file." See if all three browsers correctly load the file. > > > > On Aug 28, 3:53 pm, Jeff Chimene wrote: >> On 08/28/2009 07:03 AM, Rahul wrote: >> >> >> >> >> >>> Hi >>> This is a sample code how i am using to create my UI from parsing XML >>> files >> >>>protected void fucn(final VerticalPanel verticalPanel, String >>> substring,final PickupDragController drag) { >>>// TODO Auto-generated method stub >>>RequestBuilder builder1 = new RequestBuilder >>> (RequestBuilder.GET,substring+".mdl"); >>>try >>>{ >>>Request request1 = builder1.sendRequest(null, new >>> RequestCallback() >>>{ >> >>>public void onError(Request request1, Throwable >>> exception) { >>>} >> >>>@Override >>>public void onResponseReceived(Request request1, >>>Response response1) >>>{ >>>Document xmlDoc1 = >>> XMLParser.parse(response1.getText()); >> >> You wrote earlier that "... I am believing that it gets an null response" >> >> is xmlDoc1 indeed empty? >> >> My guess is that there is a subtle syntax error in the MDL file; which >> problem IE ignores. FF on the other hand doesn't let it slide. >> >>>XMLParser.removeWhitespace(xmlDoc1); >> >> Does xmlDoc1 lose its contents after this call? > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem deploying with Firefox/Chrome
Hi I just checked and i am not getting an null response xmlDoc1 is not empty with FireFox also On Aug 28, 3:53 pm, Jeff Chimene wrote: > On 08/28/2009 07:03 AM, Rahul wrote: > > > > > > > Hi > > This is a sample code how i am using to create my UI from parsing XML > > files > > > protected void fucn(final VerticalPanel verticalPanel, String > > substring,final PickupDragController drag) { > > // TODO Auto-generated method stub > > RequestBuilder builder1 = new RequestBuilder > > (RequestBuilder.GET,substring+".mdl"); > > try > > { > > Request request1 = builder1.sendRequest(null, new > > RequestCallback() > > { > > > public void onError(Request request1, Throwable > > exception) { > > } > > > �...@override > > public void onResponseReceived(Request request1, > > Response response1) > > { > > Document xmlDoc1 = > > XMLParser.parse(response1.getText()); > > You wrote earlier that "... I am believing that it gets an null response" > > is xmlDoc1 indeed empty? > > My guess is that there is a subtle syntax error in the MDL file; which > problem IE ignores. FF on the other hand doesn't let it slide. > > > XMLParser.removeWhitespace(xmlDoc1); > > Does xmlDoc1 lose its contents after this call? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem deploying with Firefox/Chrome
On 08/28/2009 07:03 AM, Rahul wrote: > > Hi > This is a sample code how i am using to create my UI from parsing XML > files > > protected void fucn(final VerticalPanel verticalPanel, String > substring,final PickupDragController drag) { > // TODO Auto-generated method stub > RequestBuilder builder1 = new RequestBuilder > (RequestBuilder.GET,substring+".mdl"); > try > { > Request request1 = builder1.sendRequest(null, new > RequestCallback() > { > > public void onError(Request request1, Throwable > exception) { > } > > @Override > public void onResponseReceived(Request request1, > Response response1) > { > Document xmlDoc1 = > XMLParser.parse(response1.getText()); You wrote earlier that "... I am believing that it gets an null response" is xmlDoc1 indeed empty? My guess is that there is a subtle syntax error in the MDL file; which problem IE ignores. FF on the other hand doesn't let it slide. > XMLParser.removeWhitespace(xmlDoc1); Does xmlDoc1 lose its contents after this call? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem deploying with Firefox/Chrome
Hi This is a sample code how i am using to create my UI from parsing XML files protected void fucn(final VerticalPanel verticalPanel, String substring,final PickupDragController drag) { // TODO Auto-generated method stub RequestBuilder builder1 = new RequestBuilder (RequestBuilder.GET,substring+".mdl"); try { Request request1 = builder1.sendRequest(null, new RequestCallback() { public void onError(Request request1, Throwable exception) { } @Override public void onResponseReceived(Request request1, Response response1) { Document xmlDoc1 = XMLParser.parse(response1.getText()); XMLParser.removeWhitespace(xmlDoc1); Element root1 = xmlDoc1.getDocumentElement(); NodeList URLs1 = root1.getChildNodes(); for (int i =0; i wrote: > Hi Jason, > what do think is the problem? > > On Aug 26, 3:33 pm, Jason wrote: > > > Having same problem here but I don't think its related to the > > RequestBuilder. > > > On Aug 26, 11:20 am, Rahul wrote: > > > > Hi, > > > There are few posts with problems with firefox but i was not able to > > > find a solution reading those so i am having a new post. > > > My code runs fine on IE but it fails on Firefox/Chrome. > > > I am using RequestBuilder to parse some xml files and showing them as > > > labels on my UI. > > > > The UI is build perfectly wit IE but not with Firefox/Chrome > > > I am believing that it gets an null response received with > > > RequestBuilder with firefox/chrome. > > > any idea whats causing this problem and how to solve it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem deploying with Firefox/Chrome
Hi Jason, what do think is the problem? On Aug 26, 3:33 pm, Jason wrote: > Having same problem here but I don't think its related to the > RequestBuilder. > > On Aug 26, 11:20 am, Rahul wrote: > > > Hi, > > There are few posts with problems with firefox but i was not able to > > find a solution reading those so i am having a new post. > > My code runs fine on IE but it fails on Firefox/Chrome. > > I am using RequestBuilder to parse some xml files and showing them as > > labels on my UI. > > > The UI is build perfectly wit IE but not with Firefox/Chrome > > I am believing that it gets an null response received with > > RequestBuilder with firefox/chrome. > > any idea whats causing this problem and how to solve it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem deploying with Firefox/Chrome
Having same problem here but I don't think its related to the RequestBuilder. On Aug 26, 11:20 am, Rahul wrote: > Hi, > There are few posts with problems with firefox but i was not able to > find a solution reading those so i am having a new post. > My code runs fine on IE but it fails on Firefox/Chrome. > I am using RequestBuilder to parse some xml files and showing them as > labels on my UI. > > The UI is build perfectly wit IE but not with Firefox/Chrome > I am believing that it gets an null response received with > RequestBuilder with firefox/chrome. > any idea whats causing this problem and how to solve it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Problem deploying with Firefox/Chrome
Hi, There are few posts with problems with firefox but i was not able to find a solution reading those so i am having a new post. My code runs fine on IE but it fails on Firefox/Chrome. I am using RequestBuilder to parse some xml files and showing them as labels on my UI. The UI is build perfectly wit IE but not with Firefox/Chrome I am believing that it gets an null response received with RequestBuilder with firefox/chrome. any idea whats causing this problem and how to solve it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---