0 Replies Latest reply on Jun 29, 2009 11:52 AM by jo_sh

    Parsing html Dom when loaded into HTML tag for AIR

    jo_sh Level 1



      I'm trying to figure out how I can parse the html dom for a html page that has loaded in HTML tag in Adobe AIR.  I have an event listener waiting for the html to complete and a function that is being called.  I have seen a bunch of examples that use a JavaScriptObject that is created from a reference of the htmlDocument.window.document...


      var links:JavaScriptObject = this.htmlWin.htmlLoader.window.document.getElementsByTagName("a");

                      for(var j:Number = 0; j < links.length; j++)





      Something like the above.  My problem is that I'm not creating an HTML based AIR file and don't have access to JavaScriptObject (or maybe it's depreciated).  I don't know, but I do know that I want to parse the html dom once it is loaded to search for specific strings.  Anybody know how to do that/  Thanks in advance