Community Questions & Answers

Parsing HTML to DOM

Hi I was hopping to be able to parse a HTML in DOM var responseText = this.responseText; // This is my page dom = Ti.XML.parseString(xml); // This is crashing Ti.API.info(dom); What I would like to achieve, is reading a page and extrapolate the...

How to replace the string by html parser?

I am using the htmlparser for titanium. https://gist.github.com/zeuxisoo/1016047 This is my script below. I can succeeded to get the contents of a certain tag. ~~~ html //raw html data is in this variable. var select = soupselect.select; ...

Ti.XML.DOMImplementation and the use of...

I'm trying to create an XML documentin my app and then fire the XML off for processing. I have the following snippet from my function ~~~ exports.xmlAddPaymentRecipient = function(prn, friendlyName, defaultAmount){ var xmlDoc =...

Parsing HTML without YQL

Hi, I am trying to parse the HTML output retrieved by a web page, but after I get the responseText string containing the HTML source I could find a way to call the DOM methods to parse the page. Trying to use responseXML doesn't work because it's a HTML...

Parsing HTML without YQL

Hi, I am trying to parse the HTML output retrieved by a web page, but after I get the responseText string containing the HTML source I could find a way to call the DOM methods to parse the page. Trying to use responseXML doesn't work because it's a HTML...

Info TiDOMElement

Hi, I need to get all Children of an TiDOMElement, but i can't find anything in the Docs for get them. I currently using this code: var c = TiDOMElementObj.getElementsByTagName('my_single_tag'); Ti.API.debug("child 0="+c.getChild(0) ); // is...

DOM parsing is memory expensive

Hello, I'm downloading and parsing a lot of RSS content from the web and in my view I have a "Refresh" button which us being used a lot. I noticed in Instruments that every time I "Refresh" it takes up more memory and not releasing...

webview vs. DOM

hello, i have to deal with content serverside, within a webview, communication with TI by Ti.App.fireEvent. works nice so far, but i wonder if i have to set touchEnabled = false for the webview (since i only need clicks within the remote html page). any...

Parsing HTML without YQL

Hi, I am trying to parse the HTML output retrieved by a web page, but after I get the responseText string containing the HTML source I could find a way to call the DOM methods to parse the page. Trying to use responseXML doesn't work because it's a HTML...

Accessing a webview's dom with evaljs

Titanium Dev 1.2.1 Android SDK 1.6 (also tried 2.1-update) My html has a td tag with an id of 'gas' Webview loads OK. However, it does not populate with the following evalJs, neither does it show me the initial value inside the tag. In fact it crashes the...

Webview DOM

I need to access the DOM for a webview from within titanium, the closest I have been able to do is use the HTML property to read the contents, but I need full DOM access to the webview contents. Is there any way to do this?

Showing 1-27 of 27