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 <URLs1.getLength();i++)
                                        {

                                                String str1 = 
URLs1.item(i).getAttributes().getNamedItem
("name").getNodeValue();
                                                Field f1 = new Field (str1);
                                                String str2 = 
URLs1.item(i).getAttributes().getNamedItem
("maxLength").getNodeValue();
                                                int length = 
Integer.parseInt(str2);
                                                f1.setMaxLength(length);
                                                String str3 = 
URLs1.item(i).getAttributes().getNamedItem
("elementDef").getNodeValue();
                                                
fucn1(str1,verticalPanel,f1,str3);
                                                verticalPanel.add(f1);

                                        }


                                }

Again no output for Firefox/chrome but yes for IE


On Aug 27, 10:28 am, Rahul <[email protected]> wrote:
> Hi Jason,
> what do think is the problem?
>
> On Aug 26, 3:33 pm, Jason <[email protected]> wrote:
>
> > Having same problem here but I don't think its related to the
> > RequestBuilder.
>
> > On Aug 26, 11:20 am, Rahul <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to