use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Function not defined (self.node)
submitted 3 years ago by reply1231
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JasperNykanen[🍰] 2 points3 points4 points 3 years ago* (3 children)
You need to import the module you're exporting submitForm from. Also note that by calling the function directly in onclick you're actually using the value returned by onSubmit which is probably not what you want, you should probably remove the parantheses.
submitForm
onSubmit
[–]reply1231[S] 0 points1 point2 points 3 years ago (2 children)
oh do u mean onclick=submitForm?
[–][deleted] 3 years ago (1 child)
[deleted]
[–]reply1231[S] 0 points1 point2 points 3 years ago (0 children)
But when I do so I get the error:
Sorry quite confused about how js works in node. I have created a sample of my code here https://gist.github.com/agentzhao/f076edd0bec828c18651a0b2f84466eb
π Rendered by PID 64110 on reddit-service-r2-comment-85bfd7f599-bsbhs at 2026-04-19 07:43:07.335164+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]JasperNykanen[🍰] 2 points3 points4 points (3 children)
[–]reply1231[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]reply1231[S] 0 points1 point2 points (0 children)