Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28436

Re: Retrieve a select from a table cell

From "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it>
Newsgroups comp.lang.javascript
Subject Re: Retrieve a select from a table cell
Date 2015-07-15 13:11 +0200
Organization A noiseless patient Spider
Message-ID <mo5f1j$g9p$1@dont-email.me> (permalink)
References (1 earlier) <1620289.04d1OFRnt4@PointedEars.de> <mo50sg$2kh$1@dont-email.me> <7566852.WQMuBqMNHx@PointedEars.de> <mo54re$e75$1@dont-email.me> <3500213.FrBZzccehh@PointedEars.de>

Show all headers | View raw


Il 07/15/2015 11:47 AM, Thomas 'PointedEars' Lahn ha scritto:
> danca (Daniele Campagna) wrote:
>
>> […] The DOM inspector did not show the spaces, […]
>
> You need to enable “Show whitespace characters” and the like.
>
> See also <http://devtoolsecrets.com/> (referred to by the FAQ).
>

Holy crap!
"There Are More Things In The Earth And In The Sky Than A Man Can Even 
Imagine" (cit. [probably inexact])

>> Here is the code, JFC:
>>
>> function inspect(anOb,aFrame){
>> // caveat: some properties are not visible, and others raise an exception
>
> /Essato/.  With a for-in statement you only get the *enumerable* properties,

Uhm... if it is not an obscure latin word maybe you mean "esatto" 
(correct, right, exact - richtig)

> and you cannot convert all property values to string.  In theory, ES 5’s
> Object.getOwnPropertyNames(…) gives you the names of all own property names,
> regardless whether the property is enumerable; but I have observed that it
> does not work that well with host objects – the array may be empty,
> unexpectedly.  However, the two approaches can be combined for a more
> complete picture.  (I wonder how they are doing it in the DOM Inspector;
> probably it is just a matter of UTSL.)
>

You know, I had to search for this (www.abbreviations.com).
JFTR :

UTSL
     [Unix] On-line acronym for ‘Use the Source, Luke’ (a pun on Obi-Wan 
Kenobi's “Use the Force, Luke!” in Star Wars) — analogous to RTFS (sense 
1), but more polite. This is a common way of suggesting that someone 
would be better off reading the source code that supports whatever 
feature is causing confusion, rather than making yet another futile pass 
through the manuals, or broadcasting questions on Usenet that haven't 
attracted wizards to answer them.Once upon a time in elder days, 
everyone running Unix had source. After 1978, AT&T's policy tightened 
up,... [omissis]

>>      inside=0
>
> Undeclared identifier.  (You *really* want to use strict mode, and JSHint.)
Oops
>
>>      for(var prop in anOb){
>>       […]
>>       try{
>>       txt=txt+" = "+anOb[prop]
>>       }catch(e){
>>       if (inside==0)  {var z=setTimeout(function()
>>       {inspect(aBox,aDoc,isWr)},333)
>
> Why?
>

Re-oops. A residual piece of code from another implementation, sorry.

>> […]
>> }
>>
>> It is a Q&D way to see the internals of an object, so I was planning to
>> write onclick=inspect(this)... :-)
>
>    onclick="console.log(this)"
>

Right, we are in 2015 now...

-- 
"Everybody should pay taxes with a smile"
I tried, but they want money.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Retrieve a select from a table cell "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-14 14:24 +0200
  Re: Retrieve a select from a table cell "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-07-14 14:45 +0200
    Re: Retrieve a select from a table cell Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-14 16:54 +0200
      Re: Retrieve a select from a table cell "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-07-14 23:20 +0200
    Re: Retrieve a select from a table cell "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-15 09:11 +0200
  Re: Retrieve a select from a table cell Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-14 21:36 +0200
    Re: Retrieve a select from a table cell Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-14 21:41 +0200
    Re: Retrieve a select from a table cell "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-15 09:10 +0200
      Re: Retrieve a select from a table cell Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-15 09:46 +0200
        Re: Retrieve a select from a table cell "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-15 10:03 +0200
          Re: Retrieve a select from a table cell "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-07-15 06:33 -0700
        Re: Retrieve a select from a table cell "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-15 10:17 +0200
          Re: Retrieve a select from a table cell Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-15 11:47 +0200
            Re: Retrieve a select from a table cell "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-07-15 13:11 +0200
              Re: Retrieve a select from a table cell Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-18 18:04 +0200
  Re: Retrieve a select from a table cell Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-07-14 16:44 -0300
    Re: Retrieve a select from a table cell Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-07-14 17:03 -0300
      Re: Retrieve a select from a table cell Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-14 22:07 +0200
        Re: Retrieve a select from a table cell Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-07-14 17:28 -0300
          Re: Retrieve a select from a table cell Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-15 00:23 +0200
    Re: Retrieve a select from a table cell Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-14 22:02 +0200

csiph-web