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

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

    HTML Click handler for <embed> element

    I have a page with an <embed> element that is displaying PDF files: <embed id="Preview" type="application/pdf"> It works great but for some arcane reason I cannot put an onClick handler on this element. Well I can, but the function is never called. To overcome this I had overlayed the <embed>...
  3. cbreemer

    JavaScript Canvas drawing issue

    I am having fun with drawing stuff on a Canvas using Graphics2D. Basically I want to mimic a Form Editor like that of Visual Studio, where you can paint a component on the screen by drawing rectangle with the mouse. Essentially, the rectangle should grow or shrink as long as the mouse is being...
  4. cbreemer

    Dynamic load of CSS file

    Just wondering is anyone here has experience with dynamic loading of stylesheets. I am doing this and it works well, just not the first time. I fail to see what difference there is between the first time and the second. Either I am overlooking something obvious, or there is more to it than meets...
  5. cbreemer

    HTML & CSS Set minimum with for HTML <dialog> ?

    I am having fun with the HTML <dialog> element. I like that it adapts its size to fit snugly around its contents, however this can result in a ridiculously narrow element when there is little content. For that reason I want to set a minimum width for a dialog, but I cannot find how to do it. I...
  6. cbreemer

    Syntax for external files

    Not a problem, just a question. I am struggling to understand why the syntax for including external CSS and JS is so different. Currently I use this : <script src="http://localhost:80/lib/dialogs.js"></script> <link rel="stylesheet" href="http://localhost:80/lib/dialogs.css">...
  7. cbreemer

    PHP PHP Warning: Undefined array key

    Hey folks, I hope someone can help explaining two PHP warnings. My calling code is xhr.open('POST', "manfac.php", false); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.send(`func=facturen&name=*`); My PHP file manfac.php starts with these lines: <?php $func =...
Back
Top Bottom