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


Groups > comp.lang.javascript > #23416

undefined property, is not defined, is undefined - calling a value

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Cornelius Lange <coni@javas.invalid>
Newsgroups comp.lang.javascript
Subject undefined property, is not defined, is undefined - calling a value
Date Wed, 05 Mar 2014 13:40:34 +0100
Organization A noiseless patient Spider
Lines 81
Message-ID <lf7602$4r8$1@dont-email.me> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 5 Mar 2014 12:40:34 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="899544f221f4416bd5dad285a182947d"; logging-data="4968"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/i95i1ApWHAdR4q+lz5jZz"
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0
Cancel-Lock sha1:cOyAuuBpjPi07ImSZRdl+DY88+s=
Xref csiph.com comp.lang.javascript:23416

Show key headers only | View raw


hey,

does someone give a helping hand to find my blind spot -
in trying to call the value from "plaqueid"? (10516):

the (shortend) datastructure is:
----------------------------------
(
{
_layers:{
106:{
  options:{ ................. },
  _latlng:{lat:53.75272969271282, lng:-0.3258240222930908},
  _initHooksCalled:true,
  _leaflet_events:{ ................. },
  _popupHandlersAdded:true,
  _popup:{ ................. },  // end popup


  feature:{type:"Feature", geometry:{type:"Point", 
coordinates:[-0.32598227262497, 53.752937446804]}, 
properties:{plaqueid:"10516", plaquedesc:"<a 
href='./'>popupText</a><br><span class='id-poi'>10516</span>", 
colour:"white", imageid:""}},


  defaultOptions:{}, _leaflet_id:106,
  _map:{},
  _icon:({}),
  dragging:{ ................. }, // end dragging
  _shadow:null, _zIndex:50, edited:false
}	// end 106
}, // end _layers
  _initHooksCalled:true}
  ) // end console ... @ ...example3.js:191
----------------------------------
this datastructure was given by console.log(layers);
- from following "calling-place":






the calling code from example3.js
----------------------------------
function init() { ...
  map.on('draw:edited', function (e) {
     var layers = e.layers;
          alert(options.feature.plaqueid);    // here calling
     layers.eachLayer(function(layer) {    });    });
... }
----------------------------------
(shortend too)




I don't get further into the datastructur than "layers[106]" - by trying 
e.g. with

# console.log(layers); // ok, shown all.
# console.log(layers[106]); // ...undefined property layers[106] @ ...
# console.log(layers[106].feature); //
  - reference to undefined property this._animRequest @ ...leaflet.js:8
  - reference to undefined property layers[106] @ ... example3.js:191
  - layers[106] is undefined @ ... example3.js:191

# alert(Object.keys(e)); // layers,type,target
# alert(Object.getOwnPropertyNames(layers)); // _layers,_initHooksCalled
# alert(Object.keys(properties)); // properties is not defined


Where might be here the crux for me, to get this value?
What I've to see?




thanx for response,
coni

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


Thread

undefined property, is not defined, is undefined - calling a value Cornelius Lange <coni@javas.invalid> - 2014-03-05 13:40 +0100
  Re: undefined property, is not defined, is undefined - calling a value Christian Winter <thepoet_nospam@arcor.de> - 2014-03-05 14:23 +0100
    Re: undefined property, is not defined, is undefined - calling a value Cornelius Lange <coni@javas.invalid> - 2014-03-05 19:08 +0100

csiph-web