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. N

    JavaScript Can not figure out how streaming works

    I wish it was in the code I left out then I could mark this thread "problem solved" I would of seen that code get executed using the debugger. The server is getting a request but I don't know how that's being done. Here is all the html,css and js. Only elements with class ="default-action"...
  2. N

    JavaScript Can not figure out how streaming works

    The system works perfectly. I am getting around 24 frames/sec on 640 x 480 resolution. It is a lot of code to go through especially if you can not duplicate it. Plus it would be a lot of time on your part. I used the developer tools to step through the browser code and it doesn't go any...
  3. N

    JavaScript Can not figure out how streaming works

    How does the browser communicate with the server to start streaming? I see how the server communicates with the client but not how the client communicates with the server to start/stop streaming.
  4. N

    JavaScript Canvas drawing issue

    Nice expansion on that code. I like the way you got it to snap and the grid lines are nice ! I think that is a cool learning project.
  5. N

    JavaScript Can not figure out how streaming works

    It is very interesting to me too because I doubt very much this can all be done in the background. I will try to dig deeper into this mystery. But here is the server side code which is just a microcontroller with a camera as a peripheral, an esp32. This is the code that registers the...
  6. N

    JavaScript Canvas drawing issue

    Nice job on that, pretty cool
  7. N

    JavaScript Can not figure out how streaming works

    I am trying to figure out how the browser code is controlling the streaming of images from my server . I am fairly new to web technologies, markup languages and javascript. I am streaming images from a camera to a browser. To start the stream the user presses a button which executes javascript...
  8. N

    JavaScript function run without being called

    Ok, removed the form, now works as expected. Darn, did not know about that behavior with the form but I am really new to this. Thanks bud, been scratching my head for a night over this.
  9. N

    JavaScript function run without being called

    Yes, it is in a form. I previously used the once,true and it did not change the behavior. Let me try taking it out of the form and see.
  10. N

    JavaScript function run without being called

    I am new to javascript and having a problem with some code. It seems to me some of my functions are running even when not called. The page loads and DOMContentLoaded event fires which is expected. DOMContentLoaded event calls getRandomNumber which is also expected. I enter a guess of the...
  11. N

    JavaScript Using attribute methods

    Edit: I think I found the solution, using .getComputedStyle
  12. N

    JavaScript Using attribute methods

    I am trying to get a handle on html, css and javascript. One thing i ran into was using DOM and using the attribute methods element.getAttribute(name) – get the attribute value element.setAttribute(name, value) – set the value for the attribute element.hasAttribute(name) – check for the...
  13. N

    JavaScript code breaks when I use a variable

    LIke I said, I missed the bracket when I posted (cut & paste). Yes, I am finding out that my spelling needs more scrutiny. Normally I am writing C in a dev environment that catches these things and as you can see I have become lax with my spelling. Turns out the problem was not the code but I...
  14. N

    JavaScript code breaks when I use a variable

    Thank you. This looks like it will be helpful, just started with javascript, html, css.
  15. N

    JavaScript code breaks when I use a variable

    Hello EkBass, Thanks for responding. I missed the close bracket in the post but it is in the code. Just found out that when the code does not work I get the "dev tools missing ..." msg in the console. When I change my code to what works that msg doesn't show up.
  16. N

    JavaScript code breaks when I use a variable

    Using a webpage to control leds connected to a microcontroller. Just using a variable to substitute for document.getElementById('ID_LED_0') EDIT: Also get err in console: DevTools failed to load source map: Could not load content for...
Back
Top Bottom