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


Groups > comp.lang.javascript > #28430

Re: Retrieve a select from a table cell

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it>
Newsgroups comp.lang.javascript
Subject Re: Retrieve a select from a table cell
Date Wed, 15 Jul 2015 10:17:49 +0200
Organization A noiseless patient Spider
Lines 49
Message-ID <mo54re$e75$1@dont-email.me> (permalink)
References <mo2utl$9s5$1@dont-email.me> <1620289.04d1OFRnt4@PointedEars.de> <mo50sg$2kh$1@dont-email.me> <7566852.WQMuBqMNHx@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 15 Jul 2015 08:15:43 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="93dc01ef9af982d6d69cb0207cd22879"; logging-data="14565"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19EpyoKVQOWODNAqHTL8Xnu"
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
In-Reply-To <7566852.WQMuBqMNHx@PointedEars.de>
Cancel-Lock sha1:JW7bCI+iGouODniP6yhXN9rkHtc=
Xref csiph.com comp.lang.javascript:28430

Show key headers only | View raw


Il 07/15/2015 09:46 AM, Thomas 'PointedEars' Lahn ha scritto:
> danca (Daniele Campagna) wrote:
>
>> The onclick() is only a quick way to display via alert() the fetched
>> values, it is nothing more than a (for internal use only) test.
>
> Why do you not use the DOM Inspector instead?
>
>
Yes, i do!
But this time it was of no help. The DOM inspector did not show the 
spaces, just the <select> after the <td> so I was puzzled and began to 
put the onclick() to eventually use an old piece of code i wrote years 
ago, when I was unaware of the Mozilla debugger and opera Dragonfly and 
so on.
Here is the code, JFC:

function inspect(anOb,aFrame){					
// caveat: some properties are not visible, and others raise an exception
  var txt="";
  if (!aFrame) aFrame=window.open()
   if (z) clearTimeout(z);	
    inside=0
    for(var prop in anOb){
     inside=1;
     txt=txt+"<a href='#' onclick='window.opener.inspect("+prop+"); 
  return false'>"+prop+"</a>"			
     try{
     txt=txt+" = "+anOb[prop]
     }catch(e){
     if (inside==0)  {var z=setTimeout(function()
     {inspect(aBox,aDoc,isWr)},333)
     } else {
     txt=txt+' = errore!';
     }
   }
txt=txt+"<br>"
}
aFrame.document.write(txt)
aFrame.document.close()
}

It is a Q&D way to see the internals of an object, so I was planning to 
write onclick=inspect(this)... :-)

Dan
-- 
"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