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

    Python Problem with code

    Based on the Python code you post here, there is no reason why Python should print 149.3 instead of 149.25. There must be something you're not telling us. BTW Your statement I'm not expecting the answer that I wanted both amuses and confounds me. I guess you meant I'm not getting the answer that...
  2. cbreemer

    HTML Automatic selection of elements

    Yes that could be an idea, thanks. But now, in a sudden flash of inspiration, I thought of a much simpler solution : window.addEventListener("mousemove", (e) => { e.preventDefault(); });
  3. cbreemer

    HTML Automatic selection of elements

    EDIT - Please ignore this post. It's standard browser behavior, nothing to do with what I am doing in the page. --------------------------------------------------------------------------------------------------------------------------- I have a little drawing project where a <canvas> is...
  4. cbreemer

    JavaScript vscode console

    It seems to me that is exactly what you are having here. Sources left, HTML page top right, debugger+console bottom right. What more do you want ? Once again I have no idea what you mean 🤔
  5. cbreemer

    JavaScript Passing data from (html-JavaScript) table to JavaScript Function

    I don't see right away what is wrong here, but I find your code to create the fila string rather convoluted and error-prone. Consider using the backtick operator, which has the advantage that you can create a multiline string with linefeeds and you can easily insert your counter like this ...
  6. cbreemer

    JavaScript JavaScript not doing what I expected

    I don't see your initButton() function being called anywhere 😉
  7. cbreemer

    JavaScript Question about JavaScript tutorials

    I have always found the tutorials on W3C Schools eminently clear and helpful. Whether they offer the specific detail and specialism you are looking for, I am not sure.
  8. cbreemer

    JavaScript Wait datatable to finish

    initComplete seems to be a jQuery thingy. I am not familiar with jQuery, but have you made sure your buildTable() function is actually executed ? Put a console.log() statement in there, or step through it in the debugger, to be 100% sure. Personally I would not append to table.innerHTML for...
  9. cbreemer

    JavaScript Can not figure out how streaming works

    I don't think iCloud comes for free with the amount of stuff I have 🙄 But Ill keep cloud backup in mind as an option, thanks for the tip. Best close this thread now, I think. If one of my replies helped you out, please mark that as the solution.
  10. cbreemer

    validation confusion

    Indeed. Perhaps it was pasted in several steps, (inadvertently) adding a linefeed with each step. Quite weird that you should have to reassemble the URL in Javascript 🤔
  11. cbreemer

    Python Training a logistic regression model

    I fed that snippet to Python as well, and it was accepted without errors.
  12. cbreemer

    JavaScript Can not figure out how streaming works

    That is not a bad idea actually, thanks. I have always resisted cloud backup because I don't want to pay for extra cloud storage (the default storage for e.g. free OneDrive is grossly insufficient). On the other hand that cost is not staggering and having automatic cloud backup would have...
  13. cbreemer

    JavaScript Can not figure out how streaming works

    Ok, thanks. I have no trouble understanding the way it works, but was just wondering abut the physical details. Knowing these now, it does not seem that an ESP32 board can help me improve the handling of the files on my Samsung smartphone, alas. I'll have to think of some other avenue. Now I'm...
  14. cbreemer

    validation confusion

    Good. So now you can juggle these breakpoints and watches 🤪
  15. cbreemer

    validation confusion

    That is not so easily told. And it's a bit like asking "please tell me how to drive a car". You just need to get up and DO it. Just search around and pick a beginner's tutorial like this one that looks useful.
  16. cbreemer

    JavaScript Can not figure out how streaming works

    Sorry to drone on a bit, but what camera is it ? And what kind of connection ? USB, or ?
  17. cbreemer

    validation confusion

    Don't consider them separate learning paths. When you work with JS you will meet the Console, and you should invoke the debugger to step through your code. When you work with HTML and CSS you should use the DOM inspector, for example to check is an element has the styles you think it should...
  18. cbreemer

    JavaScript Can not figure out how streaming works

    Oh ok. These lines var baseHost = document.location.origin //location origin is esp32 (192.168.1.7) var streamUrl = baseHost + ':81' //for internal use only lead me to suspect localhost, especially because the IP address is only mentioned in the comment. But...
  19. cbreemer

    JavaScript Can not figure out how streaming works

    Glad I could help a bit. Still puzzled that you use localhost ports 80 and 81. Usually these are used by your local webserver such as IIS or Apache. I would have thought that your ESP would have its own IP address. Anyway, looking at that pinout which goes right over my head, I decided right...
  20. cbreemer

    validation confusion

    So you keep saying. Why not work on it ? You can hardly be a web developer without knowing your way around JS. <-- Instead of specifying "src", give the iframe an "id" so you can access it programmatically --> <iframe id="foobar" width="300" height="150" style="border:0;" allowfullscreen=""...
Back
Top Bottom