News for hackers. Stuff that matters.
Re:How to manage HTML DOM with vanilla JavaScript only? by redis_mlc on Thursday April 02, 2020 @08:57AM (#22758390)
I'm a vanilla-js guy.

That cookbook is pretty good.

If anybody has a good way of doing a password dialog in vanilla-js, please post a link.

It's the one thing I've encountered where I wish I had used a framework.

Re:How to manage HTML DOM with vanilla JavaScript only? by austincheney on Thursday April 02, 2020 @09:32AM (#22758727)
I have never used the dialog HTML element before, but I was playing around with adding an input type="password" this morning inside a HTML dialog and didn't see any problems.
Re:How to manage HTML DOM with vanilla JavaScript only? by edflsafoiewq on Thursday April 02, 2020 @11:15AM (#22759934)
Send a 401 (let's call this "vanilla-http").
Re:How to manage HTML DOM with vanilla JavaScript only? by 101008 on Thursday April 02, 2020 @08:59AM (#22758409)
Sorry, what's a password dialog?
Re:How to manage HTML DOM with vanilla JavaScript only? by omgwtfbbqhihihi on Thursday April 02, 2020 @09:05AM (#22758457)
A dialog box that prompts for your password. Never seen one?
Re:How to manage HTML DOM with vanilla JavaScript only? by satvikpendem on Thursday April 02, 2020 @09:07AM (#22758480)
Like <input type="password">? Or something more complex?
Re:How to manage HTML DOM with vanilla JavaScript only? by ken on Thursday April 02, 2020 @09:11AM (#22758508)
That’s a password field. Now just put it in a <dialog>.
Re:How to manage HTML DOM with vanilla JavaScript only? by satvikpendem on Thursday April 02, 2020 @09:21AM (#22758614)
What's the problem exactly? I assume you looked into putting that input element inside a dialog element and it didn't work, is that the issue?
Re:How to manage HTML DOM with vanilla JavaScript only? by redis_mlc on Thursday April 02, 2020 @11:46AM (#22760280)
dialog is not supported on Firefox and Safari without a polyfill.