# programming

**URL:** https://forum.kirupa.com/c/programming/41.md?page=31

[Latest](https://forum.kirupa.com/latest.md) · [Categories](https://forum.kirupa.com/categories.md)

**Page:** 32

---

## [Adding Emojis to HTML Forms](https://forum.kirupa.com/t/adding-emojis-to-html-forms/651944)

<div class="topic-metadata">

**Author:** [@typomaniac](https://forum.kirupa.com/u/typomaniac)\
**Replies:** 8\
**Last updated:** [May 23, 2022, 12:43pm UTC](https://forum.kirupa.com/t/adding-emojis-to-html-forms/651944 "2022-05-23T12:43:02Z")

</div>

Scenario: Recently a person copy pasted an FB post into a textarea part of a form on our website and emojis were part of the original post. This resulted in some rather strange looking characters in the output. Emoji sup…

---

## [How to pass a value rather than object ?](https://forum.kirupa.com/t/how-to-pass-a-value-rather-than-object/650351)

<div class="topic-metadata">

**Author:** [@vmars316](https://forum.kirupa.com/u/vmars316)\
**Replies:** 9\
**Last updated:** [May 21, 2022, 3:00pm UTC](https://forum.kirupa.com/t/how-to-pass-a-value-rather-than-object/650351 "2022-05-21T15:00:48Z")

</div>

main.js (sends a msg to renderer.js) console.log("2 main.js 'did-start-navigation' = " + url) \*\*// this shows a value\*\* win.webContents.send('Send-url', url) ; }) // 'did-start-navigation' \`\`\` preload.js (r…

---

## [Trying to parse NPR json feed in JavaScript](https://forum.kirupa.com/t/trying-to-parse-npr-json-feed-in-javascript/651894)

<div class="topic-metadata">

**Author:** [@dragonfly](https://forum.kirupa.com/u/dragonfly)\
**Replies:** 3\
**Last updated:** [May 18, 2022, 3:12pm UTC](https://forum.kirupa.com/t/trying-to-parse-npr-json-feed-in-javascript/651894 "2022-05-18T15:12:16Z")

</div>

Hi. I’d like to display headlines on our internal digital signage from a JSON feed like this one: https://feeds.npr.org/feeds/1013/feed.json However, when I try to fetch it via JavaScript I get a “Cross-Origin Request Bl…

---

## [Detecting If the User is Idle or Inactive](https://forum.kirupa.com/t/detecting-if-the-user-is-idle-or-inactive/352423)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 25\
**Last updated:** [March 6, 2021, 4:32pm UTC](https://forum.kirupa.com/t/detecting-if-the-user-is-idle-or-inactive/352423 "2021-03-06T16:32:58Z")

</div>

by kirupa | 11 September 2013 Some apps require your constant attention. Such apps often include games, media players, anything that is CPU/battery intensive, and so on. For these kinds of apps, it may b…

---

## [window.open and scrollbars](https://forum.kirupa.com/t/window-open-and-scrollbars/651772)

<div class="topic-metadata">

**Author:** [@AdarshLokesh](https://forum.kirupa.com/u/AdarshLokesh)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 10:19pm UTC](https://forum.kirupa.com/t/window-open-and-scrollbars/651772 "2022-05-05T22:19:37Z")

</div>

Hello, I’m trying to create a html page on the fly and open it. My code: mywindow = window.open('Testing', 'Welcome', 'width=900,resizable,scrollbars'); mywindow.document.write(myText); The variable myText has all th…

---

## [Super long lines](https://forum.kirupa.com/t/super-long-lines/651528)

<div class="topic-metadata">

**Author:** [@travis](https://forum.kirupa.com/u/travis)\
**Replies:** 7\
**Last updated:** [May 2, 2022, 5:19pm UTC](https://forum.kirupa.com/t/super-long-lines/651528 "2022-05-02T17:19:40Z")

</div>

I’m developing a website for a client, the design calls for some long vertical lines that sort of “connect” various elements (although they aren’t attached). I’m trying to think of the best way of doing this. On the su…

---

## [Changing multiple elements values with just 2 buttons](https://forum.kirupa.com/t/changing-multiple-elements-values-with-just-2-buttons/651505)

<div class="topic-metadata">

**Author:** [@ridesirat](https://forum.kirupa.com/u/ridesirat)\
**Replies:** 6\
**Last updated:** [April 18, 2022, 9:44am UTC](https://forum.kirupa.com/t/changing-multiple-elements-values-with-just-2-buttons/651505 "2022-04-18T09:44:23Z")

</div>

Hi Kirupa & team! I’ve been surfing and learning so much in here. I have to say it’s one of the best places to learn javascript - and I search a lot. Way back to Flash era I really learned so much with you …

---

## [Picking Colors with an Eyedropper in JavaScript](https://forum.kirupa.com/t/picking-colors-with-an-eyedropper-in-javascript/651543)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [April 17, 2022, 1:05am UTC](https://forum.kirupa.com/t/picking-colors-with-an-eyedropper-in-javascript/651543 "2022-04-17T01:05:55Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/javascript/eyedropper\_colorpicker.htm

---

## [Let's have another Live Hangouts Session!](https://forum.kirupa.com/t/lets-have-another-live-hangouts-session/647751)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 49\
**Last updated:** [April 11, 2022, 4:58am UTC](https://forum.kirupa.com/t/lets-have-another-live-hangouts-session/647751 "2022-04-11T04:58:31Z")

</div>

It’s been ages since we all had a real-world virtual sync :stuck\_out\_tongue: Who all is up for it? Shall we shoot for Wednesday (June 3rd) at 6pm PST? (@senocular , @krilnon , @TheCanadian , @tbo , @travis , @prg9, @pas…

---

## [Smooth Parallax Scrolling](https://forum.kirupa.com/t/smooth-parallax-scrolling/352136)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 7\
**Last updated:** [April 11, 2022, 2:48am UTC](https://forum.kirupa.com/t/smooth-parallax-scrolling/352136 "2022-04-11T02:48:52Z")

</div>

by kirupa | 1 July 2013 For many practical reasons, our UIs are designed to be two dimensional. Once you throw in meaningful content, some navigation, and other doo-dads to make your application usable, add…

---

## [Working with URLs](https://forum.kirupa.com/t/working-with-urls/651457)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [April 9, 2022, 1:10am UTC](https://forum.kirupa.com/t/working-with-urls/651457 "2022-04-09T01:10:24Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/javascript/working\_with\_urls.htm

---

## [Playing a Randomly Generated Sound](https://forum.kirupa.com/t/playing-a-randomly-generated-sound/651418)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [April 6, 2022, 4:01am UTC](https://forum.kirupa.com/t/playing-a-randomly-generated-sound/651418 "2022-04-06T04:01:54Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/html5/randomly\_generated\_sound\_web\_audio\_api.htm

---

## [Restarting a CSS Animation](https://forum.kirupa.com/t/restarting-a-css-animation/650724)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 9\
**Last updated:** [April 1, 2022, 12:07pm UTC](https://forum.kirupa.com/t/restarting-a-css-animation/650724 "2022-04-01T12:07:26Z")

</div>

Learn how to restart a CSS animation in a way that works across all modern mobile and desktop browsers! This is a companion discussion topic for the original entry at https://www.kirupa.com/animations/restarting\_css\_an…

---

## [All About nth-of-type and nth-child | kirupa.com](https://forum.kirupa.com/t/all-about-nth-of-type-and-nth-child-kirupa-com/352441)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 3\
**Last updated:** [March 31, 2022, 8:25am UTC](https://forum.kirupa.com/t/all-about-nth-of-type-and-nth-child-kirupa-com/352441 "2022-03-31T08:25:43Z")

</div>

by kirupa | 27 November 2012 By now, you know that you can craft CSS selectors that target one element or a bunch of elements by using an element's tag, id value, class value, or a combination o…

---

## [what is the function of the word return?](https://forum.kirupa.com/t/what-is-the-function-of-the-word-return/651042)

<div class="topic-metadata">

**Author:** [@CoolDude01](https://forum.kirupa.com/u/CoolDude01)\
**Replies:** 1\
**Last updated:** [March 8, 2022, 10:59am UTC](https://forum.kirupa.com/t/what-is-the-function-of-the-word-return/651042 "2022-03-08T10:59:36Z")

</div>

I’m new to programming and I don’t understand how and why return is used. Could you explain it to me? preferably with an example, I’m a bit dumb :slight\_smile:

---

## [Javascript](https://forum.kirupa.com/t/javascript/651286)

<div class="topic-metadata">

**Author:** [@dougbegg28](https://forum.kirupa.com/u/dougbegg28)\
**Replies:** 4\
**Last updated:** [March 27, 2022, 9:25pm UTC](https://forum.kirupa.com/t/javascript/651286 "2022-03-27T21:25:21Z")

</div>

Hello everyone. I’m new to the Javascript language and wish to ask for some help please. I’ve been given a task but I’m unsure how to go about it. I managed to work out how long it’ll take but unsure how to add in the 1…

---

## [Make the ::after pseudo-element responsive](https://forum.kirupa.com/t/make-the-after-pseudo-element-responsive/651209)

<div class="topic-metadata">

**Author:** [@Helena\_G](https://forum.kirupa.com/u/Helena_G)\
**Replies:** 2\
**Last updated:** [March 27, 2022, 1:14pm UTC](https://forum.kirupa.com/t/make-the-after-pseudo-element-responsive/651209 "2022-03-27T13:14:58Z")

</div>

Hi. Hope you are fine. I have a question for you. I’m trying to make a pseudo-element (::after) responsive. I just want to show another picture on mobile version. But it has a very strange behaviour, which doesn’t al…

---

## [Event Capturing and Bubbling in JavaScript](https://forum.kirupa.com/t/event-capturing-and-bubbling-in-javascript/352070)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 3\
**Last updated:** [March 24, 2022, 12:03pm UTC](https://forum.kirupa.com/t/event-capturing-and-bubbling-in-javascript/352070 "2022-03-24T12:03:33Z")

</div>

Get a deeper look at how events work by understanding bubbling, capturing, stopping propagation, and more! This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/event\_capturing\_bubb…

---

## [building up our react app using terminal in linux](https://forum.kirupa.com/t/building-up-our-react-app-using-terminal-in-linux/651193)

<div class="topic-metadata">

**Author:** [@shahriyar](https://forum.kirupa.com/u/shahriyar)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 3:32pm UTC](https://forum.kirupa.com/t/building-up-our-react-app-using-terminal-in-linux/651193 "2022-03-18T15:32:03Z")

</div>

Hi Kirupa I just finished reading your book (Learning React , a hands on guide …). I enjoyed all of it and every thing, It was only the last page where I couldn’t build up my react app by typing “node\_modules.bin\\webpac…

---

## [Creating DOM Elements...and Other Related Stuff!](https://forum.kirupa.com/t/creating-dom-elements-and-other-related-stuff/399251)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 4\
**Last updated:** [March 15, 2022, 3:53am UTC](https://forum.kirupa.com/t/creating-dom-elements-and-other-related-stuff/399251 "2022-03-15T03:53:42Z")

</div>

by kirupa | 28 January 2014 This part may blow you away. For the following sentences, I suggest you hold onto something sturdy: This is a companion discussion topic for the original entry at http://www.kirup…

---

## [This week in: Code from the Wild](https://forum.kirupa.com/t/this-week-in-code-from-the-wild/650717)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 7\
**Last updated:** [March 15, 2022, 12:17am UTC](https://forum.kirupa.com/t/this-week-in-code-from-the-wild/650717 "2022-03-15T00:17:21Z")

</div>

getAnimation(animation.animation) What do we want!?! Animation! :fist: Where do we get it from!?! The animation property… Of what!?! The… animation…

---

## [Create a Draggable Element in JavaScript](https://forum.kirupa.com/t/create-a-draggable-element-in-javascript/638149)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 142\
**Last updated:** [March 12, 2022, 10:41am UTC](https://forum.kirupa.com/t/create-a-draggable-element-in-javascript/638149 "2022-03-12T10:41:23Z")

</div>

by kirupa | 26 April 2018 Have questions? Discuss this HTML5 / JavaScript tutorial with others on the forums. This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/drag.…

---

## [SolidJS](https://forum.kirupa.com/t/solidjs/650989)

<div class="topic-metadata">

**Author:** [@Wayne](https://forum.kirupa.com/u/Wayne)\
**Replies:** 1\
**Last updated:** [March 7, 2022, 9:00pm UTC](https://forum.kirupa.com/t/solidjs/650989 "2022-03-07T21:00:55Z")

</div>

Check how fast it is https://www.solidjs.com/

---

## [mistakes in Absolute Beginner's guide 2nd Edition](https://forum.kirupa.com/t/mistakes-in-absolute-beginners-guide-2nd-edition/650723)

<div class="topic-metadata">

**Author:** [@ninedeadeyes](https://forum.kirupa.com/u/ninedeadeyes)\
**Replies:** 6\
**Last updated:** [March 7, 2022, 3:36am UTC](https://forum.kirupa.com/t/mistakes-in-absolute-beginners-guide-2nd-edition/650723 "2022-03-07T03:36:15Z")

</div>

Only 40% through the book but I have notice there to be some mistakes and I am just wondering where is the best place to report them ? eg: calculation on page 156 is incorrect as the total amount should be 78 not 31 Pa…

---

## [MDN Redesign](https://forum.kirupa.com/t/mdn-redesign/650958)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 3\
**Last updated:** [March 6, 2022, 2:53pm UTC](https://forum.kirupa.com/t/mdn-redesign/650958 "2022-03-06T14:53:29Z")

</div>

Blog: A new year, a new MDN - Mozilla Hacks - the Web developer blog See it live: https://developer.mozilla.org/ Screenshots: Home Page JavaScript Tutorial (Prototypes) Specifications and compatibility tabl…

---

## [Make menu disappear when you click outside!](https://forum.kirupa.com/t/make-menu-disappear-when-you-click-outside/650800)

<div class="topic-metadata">

**Author:** [@rhfproject221](https://forum.kirupa.com/u/rhfproject221)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 10:36pm UTC](https://forum.kirupa.com/t/make-menu-disappear-when-you-click-outside/650800 "2022-02-15T22:36:32Z")

</div>

I made this tutorial of menu but made the menu smaller and I have been trying to make it disappear when I click outside it not when I click on it and it never work. how I can do that? help, please. menu tutorial: …

---

## [Simple Video Chating with WebRTC](https://forum.kirupa.com/t/simple-video-chating-with-webrtc/637297)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 30\
**Last updated:** [February 12, 2022, 3:54pm UTC](https://forum.kirupa.com/t/simple-video-chating-with-webrtc/637297 "2022-02-12T15:54:14Z")

</div>

In the Accessing your Webcam in HTML tutorial, we learned about the getUserMedia API and how it allows you to access, among other things, our webcam and display a video stream to our screen. This is kinda cool, but there…

---

## [Large React Apps](https://forum.kirupa.com/t/large-react-apps/650783)

<div class="topic-metadata">

**Author:** [@Wayne](https://forum.kirupa.com/u/Wayne)\
**Replies:** 0\
**Last updated:** [February 11, 2022, 4:25am UTC](https://forum.kirupa.com/t/large-react-apps/650783 "2022-02-11T04:25:18Z")

</div>

What are your check lists for handling large react web applications? And how do you test large apps? To keep things in order after doing changes to parts of the app without breaking it? My list: Typescript SOLID prin…

---

## [Understanding WebViews](https://forum.kirupa.com/t/understanding-webviews/639672)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 29\
**Last updated:** [February 8, 2022, 7:04am UTC](https://forum.kirupa.com/t/understanding-webviews/639672 "2022-02-08T07:04:00Z")

</div>

When it comes to accessing internet content, we typically use a browser like Chrome, Firefox, Safari, Internet Explorer, and Edge. You are probably using one of those browsers right now to read this article! While browse…

---

## [I re-invent the wheel - a rant.](https://forum.kirupa.com/t/i-re-invent-the-wheel-a-rant/650356)

<div class="topic-metadata">

**Author:** [@radmo](https://forum.kirupa.com/u/radmo)\
**Replies:** 28\
**Last updated:** [February 2, 2022, 11:42pm UTC](https://forum.kirupa.com/t/i-re-invent-the-wheel-a-rant/650356 "2022-02-02T23:42:42Z")

</div>

I like to re-invent the wheel. People who say you shouldn’t, are probably employers and silly people (well, perhaps I am a bit harsh now, so forgive me). I am now 56 years old, and there seems to be an inate aversion t…

[Previous page](https://forum.kirupa.com/c/programming/41.md?page=30)

[Next page](https://forum.kirupa.com/c/programming/41.md?page=32)
