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


Groups > de.comp.lang.javascript > #4941

not a function

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
From Jan Novak <repcom@gmail.com>
Newsgroups de.comp.lang.javascript
Subject not a function
Date Wed, 25 Apr 2018 13:41:30 +0200
Organization albasani.net
Lines 31
Message-ID <pbppha$jg2$1@news.albasani.net> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.albasani.net Nn+nsP462s4qiuKgUeKVQrcUpTTG2K1Xvlq7Ih7oIjhLlMgQv74qzcYrHWXJW8Ievn+2IS4PNKwyokS0qugN4+x6ryplfcFvE9VTth8uj/tMNqZSxItrG6SEQiIAYzaH
NNTP-Posting-Date Wed, 25 Apr 2018 11:41:30 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="E/cnubPMqWNzExkS7UWO2ELOyhfaL+lhmm1xdzqSuTvbjODix0Q7CZdFVjHk3IyjUEgGkC30ciO2xpQ73Aas4kugscveJ/Iqz2ShcbiItWLxQWBjToMMRpv+pMErT+v2"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0
Content-Language de-DE
X-Mozilla-News-Host news://news1.open-news-network.org:119
Cancel-Lock sha1:1g7OKlivGe5xdTi97uUxeWUA5ks=
Xref csiph.com de.comp.lang.javascript:4941

Show key headers only | View raw


Hallo Leute :-)

Ich habe folgenden JS Code aus bootstrap-treeview übernommen:

var initSelectableTree = $.getJSON(/include/fetch.php', function(data) {
        return $('#treeview-selectable').treeview({
         data: data,
         multiSelect: multiSelect,
         onNodeSelected: function(event, node) {
           $('#selectable-output').prepend('<p>' + node.text + ' was 
selected</p>');
         },
         onNodeUnselected: function (event, node) {
           $('#selectable-output').prepend('<p>' + node.text + ' was 
unselected</p>');
         }
       });
     });


wenn ich nun

      var $selectableTree = initSelectableTree();

aufrufe, dann erhalte ich den Fehler

Uncaught TypeError: initSelectableTree is not a function

Was fehlt denn da noch?

Jan

Back to de.comp.lang.javascript | Previous | NextNext in thread | Find similar


Thread

not a function Jan Novak <repcom@gmail.com> - 2018-04-25 13:41 +0200
  Re: not a function Sascha Hüdepohl <news@juenger-der-himmlischen-teekanne.de> - 2018-04-25 17:49 +0200
    Re: not a function Jan Novak <repcom@gmail.com> - 2018-04-26 07:39 +0200
  Re: not a function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-04-25 21:04 +0200
    Re: not a function Jan Novak <repcom@gmail.com> - 2018-04-26 07:55 +0200
      Re: not a function "Peter J. Holzer" <hjp-usenet3@hjp.at> - 2018-04-28 19:50 +0200
      Re: not a function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-04-29 01:14 +0200
    Re: not a function Jan Novak <repcom@gmail.com> - 2018-04-26 08:07 +0200
      Re: not a function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-04-29 01:30 +0200
        Re: not a function Jan Novak <repcom@gmail.com> - 2018-05-02 15:06 +0200
          Re: not a function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-05-05 01:00 +0100

csiph-web