Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Tags
    3. javascript
    Log in to post
    • Tilen Štraus

      Nodebb shuts down(502 bad gateway)
      NodeBB Development • google apps script javascript write-api • • Tilen Štraus

      3
      0
      Votes
      3
      Posts
      1648
      Views

      EnDylan

      Bad gateway might occur due to an incorrect setting in your Proxy.

      It is recommended by me to use Nginx as it is easy to setup and apparently automatically recovers after a bad gateway.

      What Operating System Are you using?

    • Tilen Štraus

      Write api inserting/updating tags doesn't work
      NodeBB Development • google apps script javascript tags write-api • • Tilen Štraus

      6
      0
      Votes
      6
      Posts
      2242
      Views

      julian

      @Tilen-Štraus Glad you got it working, and thank you for sharing your solution for others who may run into the same trouble 😄

    • Doppy

      Is it possible put parameter in html form another javascript?
      NodeBB Plugins • html javascript jquery plugin • • Doppy

      2
      0
      Votes
      2
      Posts
      1521
      Views

      yariplus

      in the client, those values are stored in ajaxify.data

      For your jQuery, you don't append a closing tag, it does that automatically. When you want to insert the element into the div, you need to use appendTo(). Also, unless your label has additional data, I recommend using html() instead of text().

      Here's a fiddle. I also added an ID to the new label so it isn't added more than once.

      Edit fiddle - JSFiddle - Code Playground
    • scottalanmiller

      Using JS to Render Rotating Images in the Global Sidebar Widget
      Technical Support • javascript sidebar widget area • • scottalanmiller

      5
      0
      Votes
      5
      Posts
      1684
      Views

      scottalanmiller

      Thanks, we have it working now!

    • frissdiegurke

      JavaScript edge cases
      General Discussion • javascript • • frissdiegurke

      9
      1
      Votes
      9
      Posts
      3697
      Views

      rbeer

      Duh! Of course! That annoying ;-insertion. Nicely done!

      semi: [2, "always"] 😉

    • Nicolas

      Split JS Minification on Client/Board and ACP
      Feature Requests • javascript minify uglify • • Nicolas

      8
      1
      Votes
      8
      Posts
      2566
      Views

      julian

      Nicolas, I'm assuming you don't want to put your js inline in the template? 😄

      For my plugins (I have my own fork of quickstart that I use), I actually make them require.js modules, so they are loaded on-demand: https://github.com/NodeBB/nodebb-plugin-quickstart/blob/julian/static/lib/admin.js

      But looking back, this might also minified, so... 😆

    • Nicolas

      Client actions for posts
      Plugin Development • action client javascript plugin • • Nicolas

      5
      0
      Votes
      5
      Posts
      2391
      Views

      rbeer

      @pitaj
      Boy, that was quick! Thanks 🙂

    • Nicolas

      Client JavaScript in Templates
      Technical Support • client javascript theme • • Nicolas

      6
      0
      Votes
      6
      Posts
      3387
      Views

      Nicolas

      @psychobunny nice, It's very helpful.

    • Nicolas

      ACP: JavaScript
      Plugin Development • acp best-practices javascript minification • • Nicolas

      21
      0
      Votes
      21
      Posts
      7645
      Views

      julian

      @pichalite try this 😄

    • JonDoe12

      Emaze Plugin Help
      NodeBB Plugins • help javascript plugin support • • JonDoe12

      14
      0
      Votes
      14
      Posts
      8822
      Views

      JonDoe12

      I was just going to let you take most of the credit. It's still your plugin, and you helped me make the modifications. I'm working on a new modification now, though. I'm trying to get the presentations to embed into an area of the user's profile.

      Right now, I'm testing it with the Fullname field on the profile, by entering the URL of the presentations (instead of a human name) and seeing if it parses into an embedded slide show.

      Would this be easy to accomplish? If not, are there any hints you could give me @a_5mith ?

      So far, I've edited the library.js file and replaced data.post and data.post.conent with data.fullname and data.fullname.content. I've also tried changing the hook in plugin.js from:

      { "hook": "filter:parse.post", "method": "parse", "callbacked": true } ]

      to

      { "hook": "action:user.set", "method": "parse", "callbacked": true } ]

      I feel like I'm missing something, though. If you're up to it, I'd like to collaborate with you further.

    • Tanner

      Javascript not compiling on normal start
      Bug Reports • javascript nodebb • • Tanner

      6
      0
      Votes
      6
      Posts
      2353
      Views

      B

      i removed pidfile and it started normally

    • esiao

      Hovering a link = 404
      Bug Reports • bug console javascript • • esiao

      5
      0
      Votes
      5
      Posts
      1913
      Views

      baris

      @esiao if you update to latest you shouldn't need to add a data-ajaxify anymore. https://github.com/NodeBB/NodeBB/issues/1938

      barisusakli created this issue in NodeBB/NodeBB closed href.slice(-1) === "#"; checks last element #1938
    • H

      plugin OR widget Which One for Nodebb JavaScript web Apps?
      NodeBB Plugins • javascript plugin widget • • himadree

      2
      0
      Votes
      2
      Posts
      1734
      Views

      psychobunny

      Depends, if you're doing largely front-end code (like embedding an iFrame to some chat application) then a widget works best. If you want to modify the API or save things into the database, then a plugin is right for you.

      I think your best bet is to figure out what you need to do, and then find a plugin that does something similar, and modify that plugin, or take code from it (it's open source afterall ;))

    • Ganzuelo

      How did you learn JavaScript?
      General Discussion • javascript • • Ganzuelo

      3
      0
      Votes
      3
      Posts
      1801
      Views

      Schamper

      Had half a year to waste because it was too late to switch school level (I'm not even going to bother trying to translate this into weird USA school terms :P), I already knew quite a bit of MIPS (PSP hacking) by then, and wanted to try something else.

      Don't know why I chose JavaScript, just did. Started with w3schools (ikr), eventually just learned by doing, doing and more doing. Along the way of doing I of course read the occasional article, "guide", best practices, documentations etc. No books and courses though.