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

    I fixed it; turned out to be a typo in the original way I wrote the block in the first place accidentally defining the wrong prototype function. Thanks!
  2. 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>...
  3. P

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

    I don't mind the questions, and, yes, this is for work. I actually ended up solving it myself by performing $.getScript('scripts/record_update.js') on the onClick event in the previous panel (where you click the "Update Record" button): <span class="button" id="myButton"...
  4. P

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

    No; I can add onto it via writing Java that runs classes that will submit information to be formatted into an HTML string to be inserted into the static HTML
  5. P

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

    Can't do that. The HTML file is a static HTML file that is pretty much off-limits to me. I can only dynamically include code via Java processes via Servlet via XMLHttpResponse object, hence the unusual architecture. I can't even run <script>alert('hello world');</script> either; nothing at...
  6. P

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

    That also produced the exact same "Uncaught ReferenceError" error, and the script resides in the external .js file in my filesystem. I tried <script src="scripts/record_update.js"></script> to no avail
  7. 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()...
  8. P

    :hover fails to display Tooltip

    Thanks for the tip! I removed "bottom" altogether late last night and was able to finally see all of the tooltips as well, but this solution sounds equally doable
  9. 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...
  10. P

    My using CSS @supports does not work with feature detection

    Ok, it appears that there is an issue in Edge whereby too many images per row causes them to scrunch together. I am working on a fix for it; I don't know any other way to do so other than this: handleImageRowsEdge() { if (!HAS_QS && isEdge() && !isChrome() && !isFirefox() &&...
  11. P

    My using CSS @supports does not work with feature detection

    I might be going at this wrong: How many images per row do you or anyone else see? I see 6 per row on my laptop (2 on my tablet, 1 on my phone)
  12. P

    My using CSS @supports does not work with feature detection

    I got the exact same version 112.0.1722.68 (Official build) (64-bit)
  13. P

    My using CSS @supports does not work with feature detection

    I do. On Edge the images are next to each other without space. On Chrome the images are spaced evenly apart from each other.
  14. P

    My using CSS @supports does not work with feature detection

    Ok, I reverse-engineered everything for you to see the original problem. Please go here: My Gallery Page Please go to this page, viewing it in Edge, Chrome and Firefox. You will see how different (wrong) it looks in Edge vs how it looks (correct) in Chrome and Firefox. Here is my CSS...
  15. P

    My using CSS @supports does not work with feature detection

    It's not "hurtful"; it does not properly evenly space the Gallery images in Edge as opposed to Chrome/Firefox using the original CSS Flexbox properties: .gallery, .game { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-evenly; align-items: center...
  16. P

    My using CSS @supports does not work with feature detection

    None of the padding takes place in the CSS @supports block, nor anything else, because "-ms-box-sizing" is not supported in my version of Edge, nor is "-ms-ime-align" nor anything starting with "-ms-*". I am trying to find a very specific CSS property supported only by Edge, whether Chromium...
  17. P

    JavaScript How to push onto browser history

    I rewrote the code: /** * Prevent the back browser button from practically working by pushing onto the browser history. Click * <a * href="https://stackoverflow.com/questions/19558038/how-to-restrict-the-user-not-go-to-previous-pages-by-clicking-the-browsers-back"> * here </> * for more...
  18. P

    JavaScript How to push onto browser history

    Yes. I put in alert() statements within the code and proved that execution should take place, however, the history stack is unaffected; you are still able to go back to the previous page when there should be 1 more instance of the same URL that is in between your old previous page and where you...
  19. 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...
  20. 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...
Back
Top Bottom