Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. 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. R

    JavaScript Chrome not asking permission to use camera

    why is window.isSecureContext returning false in localhost?
  2. R

    JavaScript Chrome not asking permission to use camera

    <video id="live-stream" autoplay controls></video> const video = document.getElementById('live-stream'); if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) { navigator.mediaDevices.getUserMedia({ video: true }) .then((stream) => { // Set...
  3. R

    JavaScript Chrome not asking permission to use camera

    Uninstalled Chrome Adobe extension. Uninstalled the re installed Chrome. Console says getUserMedia is not supported in this browser Failed to load resource: the server responded with a status of 404 (Not Found)
  4. R

    JavaScript Chrome not asking permission to use camera

    When I ran this javascript const video = document.getElementById('live-stream'); if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) { navigator.mediaDevices.getUserMedia({ video: true }) .then((stream) => { // Set the video source to the camera...
  5. R

    JavaScript Chrome not asking permission to use camera

    I tried that example Console says Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
  6. R

    JavaScript Chrome not asking permission to use camera

    CacheStore.js:18 Cache set failed: ReferenceError: caches is not defined at CacheStore.set (CacheStore.js:18:93) at CacheStore.setWithTTL (CacheStore.js:18:351) at async GenAIWebpageEligibilityService.getExplicitBlockList (GenAIWebpageEligibil…yService.js:18:1290) at async...
  7. R

    JavaScript Chrome not asking permission to use camera

    Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
  8. R

    JavaScript Chrome not asking permission to use camera

    I ran into a problem trying to post this. I am using a .js library that I linked to. But for some reason, the post would not submit with it. I had the script in code tags and it would not post. I kept getting Error 404 wh Instead I am hoping it will post without using code tags. en...
  9. R

    JavaScript Chrome not asking permission to use camera

    I have this code <video id="webCam" autoplay playsinline></video> <canvas id="canvas"></canvas> const webCamElement = document.getElementById("webCam"); const canvasElement = document.getElementById("canvas"); const webCam = new webCam(webCamElement, "user"...
  10. R

    Dropdown check-list not rendering properly

    The problem is display flex. I removed the style from the containing div and the dropdown displays correctly. No idea why flex was affecting the dropdown, only it was.
  11. R

    Dropdown check-list not rendering properly

    I am trying to implement this dropdown checklist from codepen, but its not rendering properly like this Instead, it displays as below When I click on the icon, the icon flips, but the list does not render like this instead, the icon flips, b tut this list does not display Then after...
  12. R

    HTML & CSS Horizontal scrollbar below table

    I have 2 tables side by side inside a container div, flex direction row. As you can see from the screenshot, the horizontal scrollbar of the right table is overlapping the bottom row of the table, which I don't want. Is it possible to have the horizontal scrollbar below the table, so the last...
  13. R

    Sticky columns

    Does anyone know a solution for borders in sticky columns @125% scale? I have a table in a div that has 16 columns, 15+ rows, including a header row. The first 4 rows are positioned sticky. The problem is at 125% scale, borders are not behaving consistently. With border collapse set to...
  14. R

    CSS sticky columns

    I tried that thead tr > th:nth-child(-n+1), tbody tr > td:nth-child(-n+1) { position: sticky; right: 0; background:#ddd; } thead tr > th:nth-child(-n+2), tbody tr > td:nth-child(-n+2) { position: sticky; right: 150px; background:#ddd; } thead tr >...
  15. R

    CSS sticky columns

    Almost there, got the row header and last row sticking, but can't get the first 3 columns to stick thead tr > th { background:#ccc; position: sticky; padding:.5rem; z-index: 3; top: 0; } thead tr > th:nth-child(-n+3), tbody tr > td:nth-child(-n+3) { position...
  16. R

    CSS sticky columns

    I got first and last sticky, just need to add two more columns, 2nd & 3rd
  17. R

    CSS sticky columns

    That is the codepen I was trying to tweak. It uses first-child. I tried using the nth-child instead, but not having any success with it.
  18. R

    CSS sticky columns

    I have a table with 10 columns. I want the header row, first three columns and the last column sticky. I have managed to get the header row and first column sticky with the code below. table{ table-layout: fixed; width: 100%; height: 100%; } table thead tr th{ width...
  19. R

    JavaScript Count decreases automatically

    I figured out the problem. I had count variables initially set to 0 within the query, which means the count variable reset to 0 each time the query executed, instead of increasing. I put the variables outside so they don't get reset within the query.
  20. R

    JavaScript Count decreases automatically

    I am using jQuery.inArray() If a checkbox id is in an array of id's (not equal to -1), and is checked, increase a count by 1. This works. If a checkbox is unchecked, decrease the count by one, count--. When I display the count after count-- is applied, the count is -1, not 0. Why did the...
Back
Top Bottom