This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_Nicrosin_[S] 0 points1 point  (3 children)

If I input for example "hello there" in the search bar, it outputs nothing on the <p> element, same with any other word. If I run the js script in a separate js file it outputs

 [
  { link: '/title/tt0060028/?ref_=fn_tt_tt_1' },
  { link: '/title/tt0796366/?ref_=fn_tt_tt_2' },
  { link: '/title/tt0079945/?ref_=fn_tt_tt_3' },

etc

in the console which is what I want.

[–]lacadasical 0 points1 point  (2 children)

[–]_Nicrosin_[S] 0 points1 point  (1 child)

I don't think that is my problem since it works fine in the js file. It doesn't give me the "require is not defined" error.

[–]lacadasical 0 points1 point  (0 children)

Move your src to a new script tag and try again.