Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. P

    JavaScript String.prototype.doStuff new function is never defined

    prototypes.js: if (!String.prototype.doStuff) { String.prototype.doStuff = (str) => { // do stuff to this with str return this.substring(0, this.length()); }; alert(typeof doStuff); // returns "undefined" and I don't know why } index.html: <html> <head>...
  2. P

    JavaScript Function is undefined after dynamically including <script> to external JS with function

    I have an HTML file that contains a page that, upon clicking a button, should do the following: 1) A <div> panel opens up 2) That <div> panel contains <script src="scripts/record_update.js"></script> 3) The external .js file "record_update.js" contains only one function: officialRecordUpdate()...
  3. P

    :hover fails to display Tooltip

    I am tasked with displaying Tooltips, my absolute first time in my xx years of programming, and I am unable to display them using "hover". Though the cursor changes as expected, the tooltip remains hidden upon hovering. I honestly don't know why. This is mainly for MS Edge though should, in...
  4. P

    My using CSS @supports does not work with feature detection

    I am trying to perform a specific CSS action on a CSS class if you are using the Edge browser, however, the code I work fails to detect the CSS property that I thought was specific to Edge: .gallery, .game { display: flex; flex-direction: row; flex-wrap: wrap; justify-content...
  5. P

    JavaScript How to push onto browser history

    I am trying to push a URL onto a browser history to "prevent" the back button from going back to the previous page. Currently if the user clicks the back button, they simply go back to the Feedback page with the Submit button in a disabled state, which, while it prevents the user from flooding...
  6. P

    JavaScript Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'

    I am trying to be more consistent in using jQuery as much as possible, and I am trying to fix a drop(event) function I wrote that drops an image into a container. It works whenever I use the old DOM standard evt.target.appendChild(document.getElementById(data));, but it fails whenever I try to...
  7. P

    HTML & CSS linear-gradient text for small words

    .halloween { background-image: linear-gradient(to left, black, orange); -webkit-background-clip: text; -moz-background-clip: text; background-clip: text; color: transparent; } .christmas { background-image: linear-gradient(to left, green, crimson)...
Back
Top Bottom