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


Groups > comp.lang.javascript > #7624

Re: Get value of named object

Message-ID <1855899.XyKBKyFPRe@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2011-10-22 21:22 +0200
Subject Re: Get value of named object
Newsgroups comp.lang.javascript
References <a185a7pdddj3ui58j7a8rrtuivpe4gu92l@4ax.com> <8927386.SEqChMirdb@PointedEars.de> <3016a7h721gekekruu1hmbiqv1p0vmsd67@4ax.com>
Followup-To comp.lang.javascript

Followups directed to: comp.lang.javascript

Show all headers | View raw


Swifty wrote:

> Thomas 'PointedEars' Lahn wrote:
>> (Your current show() would still cause document.write() to be called
>> consecutively, which is a bad idea.)
> 
> And there I was, congratulating myself on having very nearly written
> an entire page in JavaScript. One step at a time.
> 
> The page is half learning exercise, half reference for properties that
> interest me, and which I may eventually use somewhere.

If it is supposed to be a learning exercise, then you have slept right 
through it.  In essence:

1. Avoid using eval().  Use property access syntax instead.

2. Do not call document.write() consecutively.  Pass it a string value
   (or a value convertible to a string) that you build before.


PointedEars
-- 
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee

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


Thread

Get value of named object Swifty <steve.j.swift@gmail.com> - 2011-10-22 11:56 +0100
  Re: Get value of named object "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-10-22 11:20 +0000
    Re: Get value of named object Swifty <steve.j.swift@gmail.com> - 2011-10-22 18:57 +0100
      Re: Get value of named object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-22 21:20 +0200
  Re: Get value of named object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-22 14:35 +0200
    Re: Get value of named object Swifty <steve.j.swift@gmail.com> - 2011-10-22 18:59 +0100
      Re: Get value of named object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-22 21:22 +0200
  Re: Get value of named object Scott Sauyet <scott.sauyet@gmail.com> - 2011-10-22 12:53 -0700
  Re: Get value of named object Lasse Reichstein Nielsen <lrn.unread@gmail.com> - 2011-10-23 02:10 +0200
    Re: Get value of named object Swifty <steve.j.swift@gmail.com> - 2011-10-23 09:01 +0100
      Re: Get value of named object Lasse Reichstein Nielsen <lrn.unread@gmail.com> - 2011-10-23 11:57 +0200
        Re: Get value of named object Swifty <steve.j.swift@gmail.com> - 2011-10-24 14:11 +0100
  Re: Get value of named object Dr J R Stockton <reply1142@merlyn.demon.co.uk> - 2011-10-23 21:16 +0100

csiph-web