Jump to content

Ingolme

Moderator
  • Content Count

    14,254
  • Joined

  • Last visited

  • Days Won

    83

Ingolme last won the day on May 18

Ingolme had the most liked content!

Community Reputation

1,001 Excellent

About Ingolme

  • Rank
    Coding Fox

Previous Fields

  • Languages
    Java, PHP, MySQL, Javascript, CSS, HTML

Contact Methods

  • Website URL
    http://www.thecodingfox.com/
  • ICQ
    0

Profile Information

  • Interests
    Web development, drawing, videogames, foxes.

Recent Profile Visitors

187,190 profile views
  1. You cannot pass values to addEventListener callbacks. Callbacks have to be just the name of the function without parentheses. If you use parenthesis, you will call the function immediately and assign its return value as an event listener instead.
  2. Ingolme

    It is SCSS, not SASS

    Are you referring to the SASS tutorial? https://www.w3schools.com/sass/default.asp SASS is a CSS preprocessor: https://sass-lang.com/
  3. It is probably faster to reach them by email. I am not sure how frequently they look at the forums. At the bottom of each page is a button labeled "Report error". If you click on it it displays the email address (help@w3schools.com) to which you can indicate a mistake on any page.
  4. In UTF-8 encoding, any Unicode character with a code higher than 127 is split into multiple bytes. Each byte starts off with a number of 1s indicating how many of the following bytes belong to the same character. UTF-8 encoded bytes have structures like the following: 0XXXXXXX 110XXXXX 10XXXXXX 1110XXXX 110XXXXX 10XXXXXX Your character has to be split into two bytes because its Unicode value is highter than 127. Its binary representation is: 10111101. These bits are split into the following two UTF-8 bytes: 11000010 10111101. The hexadecimal representation of the above bytes is C2 BD If you're actually seeing the C2 character, it means that the the software reading the bytes is not aware that it is UTF-8 encoded. The email has to contain a header indicating that it is using UTF-8 as the character encoding.
  5. I think it looks correct. It is passing a two-byte UTF-8 encoded character. The %## encoding in a URL can only have two characters following the %. If you have a multi-byte character, each byte will be encoded on its own. The server should be able to decode it without a problem as long as it is treating strings as UTF-8.
  6. It has an error because you forgot to declare i with the var keyword.
  7. This pattern should work: ([0-9]{9})?
  8. The best way to learn is to set yourself a project and try to accomplish it. Along the way you'll run into problems you don't know how to solve. When you do, you do research on those specific things and that is how you learn. You will find tools in Java which do what you need them to. The more problems you run into while developing something, the more things you will learn when researching the solutions to those problems. On the other hand, try not to start a project that is too far out of your reach.
  9. Ingolme

    my borders are mixing

    This is the behaviour I would expect to see from inline elements. Most likely setting them to display: block will solve the issue.
  10. What is self.view? It looks like you may be using some kind of framework. Without knowing which framework you are using and how the framework works I can't tell you how to solve this.
  11. Use an <a> tag, give it a class attribute and then remove the underline using the class as a seletor. <div class="w3-panel"> <a href="other-page.html" class="box-link"> ... </a> </div> CSS: .box-link { text-decoration: none; }
  12. You can use the border-spacing property to set the spacing between the cells horizontally and vertically. table { border-spacing: 0 5px; }
  13. The page loads in order from top to bottom and the Javascript runs as soon as it can even if the rest of the page has not loaded yet. One way to solve it is to always put scripts before the closing </body> tag. Another way is to have the code wait for the page to load before assigning the event listener. This can be done with the DOMContentLoaded event: window.addEventListener("DOMContentLoaded", attachEvents); function attachEvents() { var p = document.getElementById("btn"); p.addEventListener ("click", test); } function test() { alert("Test"); }
  14. That code won't work. The code that opens the popup is gone. Of course, you need to replace the "// Popup code here" comment with the actual code that makes the popup appear. The "if (localStorageDate == currentDate)" block would need to be removed since that is the part that was checking for the current day before. It seems like you are not familiar enough with Javascript yet. You should make an effort to understand what each line of code is doing. If there is a line of code that you don't understand, ask about it and I can explain it to you.
  15. HTML is not able to send emails, you will need to learn a server-side programming language for that. PHP can send emails using the mail() function.
×
×
  • Create New...