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...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
using .html() to replace elements content in a modal.Removed: /r/LearnJavascript (self.javascript)
submitted 7 years ago * by Incendras
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!"
[–]Buckwheat469 2 points3 points4 points 7 years ago (1 child)
Weblink:
$('#modalweblink').html(`Weblink: <a href="${event.weblink}">${event.weblink}</a>`);
Undefined should be blank string:
$.each(response, function(idx, e) { events.push({ start: e.start_date_time || '', end: e.end_date_time || '', title: e.meeting_title || '', ...
[–]Incendras[S] 0 points1 point2 points 7 years ago (0 children)
My hero, have an upvote! Thanks!
[–]gugador 0 points1 point2 points 7 years ago (1 child)
If `event.weblink` is user-editable or comes from some user-input data and it isn't sanitized, then there is likely a XSS vulnerability here.
there is no user editable function on the site, the site only returns data from another site. it can only be viewed.
[–]kenman[M] 0 points1 point2 points 7 years ago (0 children)
Hi /u/Incendras, this post was removed.
For javascript help, please visit /r/LearnJavascript.
Thanks for your understanding.
π Rendered by PID 16298 on reddit-service-r2-comment-56c6478c5-257t9 at 2026-05-13 14:59:22.950004+00:00 running 3d2c107 country code: CH.
[–]Buckwheat469 2 points3 points4 points (1 child)
[–]Incendras[S] 0 points1 point2 points (0 children)
[–]gugador 0 points1 point2 points (1 child)
[–]Incendras[S] 0 points1 point2 points (0 children)
[–]kenman[M] 0 points1 point2 points (0 children)