diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/web/client/Traccar.java | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/org/traccar/web/client/Traccar.java b/src/org/traccar/web/client/Traccar.java index c596972d..3b4bfda7 100644 --- a/src/org/traccar/web/client/Traccar.java +++ b/src/org/traccar/web/client/Traccar.java @@ -29,37 +29,7 @@ public class Traccar implements EntryPoint, LoginController.LoginHandler { @Override public void onModuleLoad() { - //new LoginController().login(this); - - try { - String messageXml = "<a>1</a><b>2</b>"; - //parse the XML document into a DOM - String x = XmlParser.getElement(messageXml, "b"); - XmlParser.enumerateElements(messageXml); - - - - - - // find the sender's display name in an attribute of the <from> tag - /*Node fromNode = messageDom.getElementsByTagName("from").item(0); - String from = ((Element)fromNode).getAttribute("displayName"); - fromLabel.setText(from); - - // get the subject using Node's getNodeValue() function - String subject = messageDom.getElementsByTagName("subject").item(0).getFirstChild().getNodeValue(); - subjectLabel.setText(subject); - - // get the message body by explicitly casting to a Text node - Text bodyNode = (Text)messageDom.getElementsByTagName("body").item(0).getFirstChild(); - String body = bodyNode.getData(); - bodyLabel.setText(body);*/ - - new AlertMessageBox("Info", "a=" + x).show(); - - } catch (DOMException e) { - new AlertMessageBox("Error", e.getMessage()).show(); - } + new LoginController().login(this); } @Override |