search for: innertext

Displaying 10 results from an estimated 10 matches for "innertext".

2008 May 19
6
obtaining table cell text data
I''m writing some code to subset a table based on the contents of particular columns. My event handler starts off like this: subsetChange: function(e) { var subset = $F(''subsetSelector''); var rows = $$(''.content-row''); rows.each(function(row) { var value = row.down(''.Platform_Category'').childNodes[0].data;
2006 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and turn it into an associative array? Basically it would take something like this: <body> <item> <id>1</id> <name>Bob</name> </item> <item> <id>2</id> <name>John</name> </item> </body> And turn it into something like this: {
2006 Apr 03
7
Javascript helpers not updating table row in IE6
Trying to replace a table row with an id using both RJS templates and normal link_to_remote :update. Neither work in IE6, fine in FF etc. If I use the same code but target a div with an ID it works. This is tricky as I have a table with edit buttons, when the button is pressed that row gets updated with a partial containing a form for update. I need this to work as II don''t fancy
2009 Jan 26
2
RCurl unable to download a particular web page -- what is so special about this web page?
...echnology/business-computing/07program.html?_r=2" > ie <- COMCreate("InternetExplorer.Application") > txt <- list() > ie$Navigate(my.url) NULL > while(ie[["Busy"]]) Sys.sleep(1) > txt[[my.url]] <- ie[["document"]][["body"]][["innerText"]] > txt $`http://www.nytimes.com/2009/01/07/technology/business-computing/ 07program.html?_r=2` [1] "Skip to article Try Electronic Edition Log ... Many thanks for your time, C.C Windows Vista, running with administrator privileges. > sessionInfo() R version 2.8.1 (2008-12-22) i...
2006 Mar 17
6
Updated the xml code to be more object-oriented
...calName] = this._nodeAsText(node); } else { var key = node.tagName; if (hash[key]) { hash[key].push(this._nodeToHash(node)); } else { hash[key] = [ this._nodeToHash(node) ]; } } }, _nodeAsText: function (node) { return node.textContent || node.innerText || node.text || ''''; } } ); Usage: var doc = new XMLDoc(request.responseXML.documentElement); var hash = doc.asHash(); So, this xml: <document> <item id="1" type="blah" /> <item> <id>2</id> <type>blah</type> &lt...
2008 Oct 06
3
Extracting text from html code using the RCurl package.
Dear R-help, I want to download the text from a web page, however what i end up with is the html code. Is there some option that i am missing in the RCurl package? Or is there another way to achieve this? This is the code i am using: > library(RCurl) > my.url <- 'https://stat.ethz.ch/mailman/listinfo/r-help' > html.file <- getURI(my.url, ssl.verifyhost = FALSE,
2006 Jan 26
0
XML Request in R: Pointers/examples needed
...ds:Password> </ds:Request> </ds:Requests>"; objRequest.open("POST","http://product.datastream.com/zappy/acces spoint.asp, false); objRequest.setRequestHeader ("DSXMLAPIREQUEST", request); objRequest.send(""); //Get the response XML. divResponse.innerText = objRequest.responseText } --> </script> ################################################################# Thank you Pierre Lapointe ***************************************** AVIS DE NON-RESPONSABILITE: Ce document transmis par courrie...{{dropped}}
2006 Mar 23
4
XML parser fixed
...ion (hash, node) { var key = node.tagName; if (hash[key]) { hash[key].push(this._nodeToHash(node)); } else { hash[key] = [ this._nodeToHash(node) ]; } }, _nodeAsText: function (node) { return node.textContent || node.innerText || node.text || node.childNodes[0].nodeValue || ''''; } } ); /* --------------------------------------- */ /* How To use it */ /* --------------------------------------- */ <*cript> function showBlog(xml) { $(''outputField'').innerHTML = ''...
2005 Sep 21
2
Result Documents XML or JSON?
My Java servlets can generate both JavaScript objects, like JSON, and XML. I can generate both pretty easily. What''s best practice for AJAX responses? Return scripts to be evaled by the Ajax control, or return XML documents and iterate them using XML DOM? Thanks. -- Alan Gutierrez - alan@engrm.com - http://engrm.com/blogometer/index.html -
2006 Jul 18
6
RJS - Insert at top of table?
Quick question regarding RJS and inserting to the top of a table. Here''s the view I''m working with: <table id="links-list"> <tr> <th>Display title</th> <th>URL</th> <th>Description</th> <th>Category</th> </tr> <% for link in @links %> <tr id="link-<%= h link.id