Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Ingolme

  1. Unfortunately, the website staff do not interact on the forums. You might be able to contact them at help@w3schools.com It looks like the material of the courses is the same as the related tutorials on the website. It says this on the HTML course page: https://courses.w3schools.com/courses/html The General forum is OK for questions that don't have a particular forum for the category.
  2. It is important to learn data structures and algorithms if you intend to do real programming, but it is no use if you just memorize a few existing ones. If you don't learn how to build your own data structures and algorithms suited to the task at hand then you will not be a competent developer.
  3. The font-size CSS rule is not deprecated, but your HTML code is invalid because the background-color rule is not inside the quote marks of the style attribute. It would be better to set styles using an external CSS stylesheet.
  4. Which list are you referring to? It would be helpful to specify which page has the problem. The W3Schools staff do not actively participate on the forum, so if you need help with their website you will have to send an email to help@w3schools.com.
  5. Two problems I notice: The operator should be "&&" The value you want to compare with "sunny" is weather, not IamHappy. To fix it, the line should look like this: if(IamHappy && weather == "sunny") { By the way, this is Javascript, not Java. They're two different languages.
  6. Ingolme

    Css hacking

    Unfortunately, the W3Schools staff do not actively participate in the forums. CSS cannot be used to hack, it is not even a programming language. You probably are confusing it with some other unrelated technology. CSS is just a way to set the font, colors and positions of things on a website in a browser like Chrome or Safari.
  7. Ingolme


    Regular expressions are usually used to validate strings. If you want to verify that a string is an email address, a regular expression like (.+)@(.+) is a very simple way to do it.
  8. The required attribute of the field causes the browser to automatically check whether the field has been filled in.
  9. No, just update the keys of the data array to be the same as the placeholders. There is some information about PDO placeholders on this page: https://www.w3schools.com/php/php_mysql_prepared_statements.asp
  10. The keys in your array don't match the placeholders in the SQL query.
  11. If you make an SVG image file with that shape and gradient you can use it as a background image for your div.
  12. The HTTP status (requestObject.status) will usually provide some useful information. It will provide a number returning one of the codes listed on this page: https://www.w3schools.com/tags/ref_httpmessages.asp If the user's internet was offline at the time, the status code would be zero.
  13. What I mean to say is that an experienced programmer would have to spend weeks writing the code. There is not a short piece of code which can be posted on a forum.
  14. This sounds very complicated. It could take weeks of research if this were one of my projects. In summary, there's no simple piece of code you can copy and paste, it requires a certain depth of knowledge.
  15. You can use the cURL library to request data from any server. This example comes from the PHP manual page for curl_exec(): <?php // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://www.example.com/"); curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass it to the browser curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); ?>
  16. For security reasons, Javascript is not able to read files on a different domain than the one that the page is on unless the owner of the domain sends an HTTP header allowing it.
  17. Try sending an email to help@w3schools.com to see if they can help solve the problem. The website staff are not active on the forums.
  18. It would be helpful to learn Javascript instead of copying code, because the change is not very difficult to do if you know Javascript. You just have to loop through the table cells in a row instead of selecting just one of them: // Declare variables var input, filter, table, tr, tds, td, i, j, txtValue, found; input = document.getElementById("myInput"); filter = input.value.toUpperCase(); table = document.getElementById("myTable"); tr = table.getElementsByTagName("tr"); // Loop through all table rows, and hide those who don't match the search query for (i = 0; i <
  19. I don't see anything obviously wrong with the code. Does the text file exist in the same folder as your PHP file?
  20. You should omit the domain altogether. Preceding a path with a slash will make it relative to the website's root: <a href="/things"> If you need to access your site from a different website you should put it on a public server.
  21. This forum is completely community run, the W3Schools staff do not actively participate here. The members of the forum are random people who just signed up and kindly decided to answer questions. I am just a moderator, I'm not actually part of the W3Schools staff. I used to answer questions more frequently but these days I don't have as much time, so beyond keeping the forums in check I usually only answer shorter questions. I can provide a short answer but it will require some knowledge on your part, otherwise you'll just be blindly copying code which I don't have time to explain in
  22. I don't use Python much, but it looks like it should work just fine. The variable M is available and can be passed into the range() function, so there should be no problem.
  23. Unfortunately, you can only remove listeners is you have access to the function which was assigned as the event handler. This "tippy" library, if it was built properly, must have some methods to remove tooltips. If not, then your only hope is to recreate the element and delete the old one. // Get the old element var old = document.getElementById("tippy_test"); // Create a new element var replacement = document.createElement("div"); replacement.id = "tippy_test"; replacement.innerHTML = old.innerHTML; // Replace the old element with the new one old.parentNode.insertBefore(replace
  24. Try sending an email to help@w3schools.com to see if the site staff can help you. They don't interact with the forums, so nobody will be able to help you here.
  25. It seems your conditions weren't correct. This is how the collision condition should be tested: if ((mybottom < othertop) || (mytop > otherbottom) || (myright < otherleft) || (myleft > otherright)) {
  • Create New...