Search results

  1. cbreemer

    Trackball code with glitch

    Yeah I see what you mean. The cube rotates, but it's not at all a smooth experience. Sometimes it repositions when you press the mouse key, but not consistently so. Also, the cube does seem to lack perspective compares to the one in the JS example. I'm afraid I have no idea how all this works...
  2. cbreemer

    Making Custom Classes Editable: Is it Possible?

    And now you just posted another open question with a big wad of unformatted code 🙄 It seems like any attempt to an answer merely results in new questions. I give up.
  3. cbreemer

    Making Custom Classes Editable: Is it Possible?

    I did not notice your JS code earlier. It looks like you already tried to implement this ? No it does not look right to me. Your function valueChanged() is seriously borked : 1) It's missing two closing curly brackets and a closing right parenthesis 2) These numbers (200) and (300) at the end...
  4. cbreemer

    How do I hide the modal after 5 seconds?

    N.B. I did add $('#testdiv').hide(); at the start of the self executing function, as I think you wanted to see the div only hen you click the button.
  5. cbreemer

    Making Custom Classes Editable: Is it Possible?

    Everything I read about JAWS talks about forms. I suggest that you try that, instead of chasing the idea with an editable span that does not seem to work in any browser. To conditionally hide or show a field you will have to write some Javascript.
  6. cbreemer

    Making Custom Classes Editable: Is it Possible?

    Oh ok, yes that would be the is probably the woke term for it. What I see is that Firefox recognizes and handles the contenteditable=true just as well as Chrome does. Why it does not speak out I have no idea. I don't know how to turn on that JAWS stuff, but since JAWS talks about "Forms mode" I...
  7. cbreemer

    scanf in loop crashes IDE

    Sure, the IDE gets in a strop when receiving invalid input. Not sure why. Try using a generic string input function like gets() and then use sscanf() to parse the string. This works better for me at least.
  8. cbreemer

    CSS CSS Grids Tutorial

    It could be just me but I have great trouble understanding what you are saying. It does not help that it goes so fast. Why are you making three such very short videos ?
  9. cbreemer

    How do I hide the modal after 5 seconds?

    This code works fine for me. I am using Chrome.
  10. cbreemer

    Making Custom Classes Editable: Is it Possible?

    Indeed I did not know that. Anyway it was silly to grab a screenshot when I could much easier have copied the HTML. So here goes. Note that <inline> seems to have no special status. Same error if I use <foobar> instead. Both are simply unrecognized elements. Error: Element inline not allowed as...
  11. cbreemer

    Making Custom Classes Editable: Is it Possible?

    Actually you can use that, and it works fine provided you set the contenteditable attribute correctly: <p>What is the bride's name? <span class="brideName" contenteditable="true">_ _ _ _</span></p> <p>What is the groom's name? <span class="groomName" contenteditable="true">_ _ _ _</span></p>...
  12. cbreemer

    Java Battery Low / Full status

    I'm familiar with Java but on Windows only, not on Android, so it seems unlikely I'll be able to help you. But it seems to me you are not saying what the actual problem is, except for "missing a few things". Also it is not clear how this snippet of code (which isn't even complete) fits in the...
  13. cbreemer

    Trackball code with glitch

    Ok, it is starting to make sense now. Too much irrelevant information is sometimes just as bad as too little relevant information 😁 Correctl me if I'm wrong but I think the problem could now be concisely stated like this: I found a site that uses JavaScript to rotate a 3D model of a cube with...
  14. cbreemer

    Python What are some interesting physics-related topics for an 11th grade Python presentation?

    I don't think a programming forum is the right place to ask about choosing a physics topic.... Someone here could probably help with your Python program. Not write it for you of course, but help if you get stuck on something.
  15. cbreemer

    Trackball code with glitch

    Took a look, came away none the wiser. Peered in my crystal ball, but no clue either. Really, it is totally unclear what you mean. The model rotates by an certain amount ? Is that bad ? I think your best bet would be to isolate this in a minimal one-source C program, stripping away everything...
  16. cbreemer

    JavaScript Javascript API trouble

    Respect ! You could probably earn a living with it. Be a plumber on even days and a programmer on odd days, or vice versa.
  17. cbreemer

    JavaScript Javascript API trouble

    Thanks for your explanations, very useful. I missed the fact you were declaring postObject and mediaObject twice. The new code is better for sure. "Just a plumber" 😅 Haha, you kid me not 😎
  18. cbreemer

    Unable to Solve SQL Query Interview Question

    You're right @Pony2 . I did not pick up on that fact. Not sure now that this answer would qualify, as it is not SQL, strictly speaking. I could not find the original interview question to see what exactly they were asking. Strange thing to want to do in SQL anyway.... It seems more like a...
  19. cbreemer

    Unable to Solve SQL Query Interview Question

    Good shot @Sudo_coder12 ! This is probably the right answer, as the question just asks for a computation without the need for having a table. If you actually have a table with numbers 1..100, the solution suggested by the OP works beautifully.
  20. cbreemer

    JavaScript New and lost. How does this work?

    That is not complete code. Please post the full html, as well as the initial.html, so that someone can see what is happening. So it seems that at least you are now getting to the submit event handler, which is progress. But as I wrote, that handler is not doing anything useful so what is the...
Top Bottom