Read the statement by Michael Teeuw here.
A little help with my own module
-
Hey, thanks for your reply.
I have already figured out that the entire request-block is the problem and was hoping for someone to look over it and maybe find what my problem with it is. There must be some logical error hidden inside there somewhere - which I don’t know of, as I only just started working with JS.
Which means I am as far as knowing that entire request-block isn’t executed at all, which I know because not even if I add log-commands directly after the request-statement, will they be executed.
-
I am really not familiair with requests and such, but I did notice this line:
var a = $(this).next();
Are you sure you want to use this here and not self?
-
@tosti007 Hi, yeah - what I’m trying to achieve with that line is to work with the each statement. I’m working within the scope of the each loop and try to find the next object after the one that was found there in the document.
-
@kichilron alright :)
Does your console show any errors when you run your code?
Since the callback isn’t called at all it might also be a problem with the
request("omitted"
part. Try doing something simple (only log something) inside the callback. If it doesn’t show up then I think the problem lays in the request function that might be called wrong. -
@tosti007 I will have to try again, but what I did was similar to what you suggested.Atleast I believe it was.
The thing that’s mainly bothering me is the fact, that the same code executed on its own and not automated within the node_helper is working fine.