parse xml problem
root menu type=FFolder 1 menu type=SFolder 1 Shortcut 1/menu menu type=SFolder 1 Shortcut 2/menu menu type=FFolder 1 Folder 1 menu type=SShortcut1/menu menu type=FShortcut2/menu /menu menu type=SFolder 1 Shortcut 3/menu /menu menu type=FFolder 2 menu type=FFolder 2 Folder 1/menu menu type=FFolder 2 Folder 2/menu menu type=SFolder 2 Shortcut 1/menu /menu menu type=FFolder 3 menu type=SFolder 3 Shortcut 1/menu menu type=FFolder 3 Shortcut 2/menu /menu menu type=SShortcut 1/menu /root Hi all, I have a problem parsing this xml. First, I tried to get node list with getChildNodes(). It returns 4 nodes, that's what I want. Then, I tried to get next node list with if a node has child by hasChildNodes() and if it's type is F. In this stage, I can't use getChildNodes(), but I tried to get node list with getElementByTagName(menu), it return all elements under that node. I wonder why I can't get node list with getChildNodes(). I want only child element of eg. Folder1(Folder 1 Shortcut 1, Folder 1 Shortcut 2, Folder 1 Folder 1, Folder 1 Shortcut 3) not including child of Folder1 Folder1(Shortcut1, Shortcut2). Any help! Thanks in advance. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
call J2EE servlet that generate xml to be used in the GWT Application
Hi all, I would like to know how to call servlet(not RPC) that generate xml to be used in my gwt application. I've already tried to read simple xml file under public folder. For that, I use HTTPRequest.asyncGet(GWT.getModuleBaseURL() + xmlFile, new ResponseTextHandler(){ public void onCompletion(String responseText) {} But in this case, xml come from the servlet, so can I use this or any other way to call that servlet? Hope ur reply as soon as possible. Reply to my mail please. Thanks in advance. Best Regards, Aye --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
need help to refresh frame using javascript function
Hi, I have 3 frames added on one panel, again that panel is added on Viewport(GWT-Ext). I want to refresh frame using JSNI or javascript function. Normally, we use top.headerFrame.location.href=top.headerFrame.location; for frame (ie. named headerFrame in this code) that is directly added to html page. But this is not working on GWT. cos, in GWT we need panel as one media to add widget. Is it? So, please teach me how to access frame inside panel to refresh using javascript code. Thanks in advance. I already tried with this code. It's working. Frame tFrame = new Frame(); String frameUrl = tFrame.getUrl(); tFrame.setUrl(frameUrl); I want the javascript funtion to refresh GWT frame similar to top.headerFrame.location.href=top.headerFrame.location; . Hope reply as soon as possible. I tried to search the solution over 1 week :-(. Thanks and Regards, Aye --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
JSNI to call html body onload=
Hi all, I created javascript function from existing java function using JSNI. The problem is I can call the converted javascript function from onclick. I want to call that function from body onload=. I already tried to call. But not working. Any idea? Hope ur help. Thanks in advance. Aye --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---