Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Ingolme last won the day on September 12

Ingolme had the most liked content!

Community Reputation

918 Excellent

About Ingolme

  • Rank
    Coding Fox

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
    Not Telling
  • Interests
    Web development, drawing, videogames, foxes.

Previous Fields

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

Recent Profile Visitors

175,976 profile views
  1. Ingolme

    check if server and client are connected

    You can send an XMLHttpRequest periodically and check that the HTTP status is 0. Building up on the line of code you provided earlier. // ... More code xhttp.open("GET", "online_check.txt", true); xhhtp.onreadystatechange = function() { if(xhttp.readyState == 4) { if(xhttp.status == 0) { // Show disconnected message } else { // Show connected message } } } // ... More code To save on server resources, you probably should not make requests more frequently than once every 5 seconds.
  2. Ingolme

    "var" keyword not used with =+ operator?

    You declare a variable only once, then use it as many times as you need to. Using the var keyword creates a new variable. It doesn't make sense to create a variable that already exists.
  3. Ingolme

    embedded TrueType font not working

    Which browser has the issue? I know that Internet Explorer / Edge will refuse to show certain fonts if you haven't obtained a licensed version of it. You can tell if that's the case because The browser's console will show an error message about the font. If this is your problem, the solution to the problem is to modify the font file, here's a tool that can help fix font files: https://www.fontsquirrel.com/tools/webfont-generator
  4. Ingolme

    How to check if a string is empty

    You're calling the subroutine passing in variables that have not been initialized. Initialize the variables first, then call the subroutine.
  5. Ingolme

    check if server and client are connected

    In what way? In HTTP, the connection between client and server ends as soon as the page finishes loading.
  6. Ingolme

    W3CSS sidebar stopped closing

    The Javascript console says that "w3_close" does not exist. I checked your function definitions and they are inside the following script tag: <script type="Javascript"> That syntax will probably not work, the browser thinks it's not Javascript so it won't run it. Either omit the type attribute or set it to one of the valid values: "application/javascript" or "application/ecmascript"
  7. Ingolme

    Working with require and typeof

    Is it not possible to just include the Javascript file with a <script> tag?
  8. Ingolme

    How to Discipline a Misbehaved iPhone Keyboard

    That's a feature that only kicks in when the font in your dropdowns is smaller than the standard for accessibility, it was designed to help people with poor vision. You can prevent that by making sure that your dropdowns have a font size of 16 pixels or greater. I advise against changing the value of any meta tag, these are read once when the page loads and are never expected to change. I can't answer your question about the iPhone keyboard since I don't have the means to reproduce it right now and I don't fully understand the issue. I would expect the keyboard to span the full width of the phone's screen, there's not much space on it and there are a lot of letters to cram into there. Given that you mention that the issue is similar to the dropdown one and that it occurs when focusing the search field, I would suggest making your search field larger as well.
  9. Ingolme

    Line Break in email not working

    That's because you're using mysqli_real_escape_string. You don't need that function, that's only for databases and it's also only used in really old code. If all you're doing is sending an e-mail, remove the entire database connection file. For escaping things in an HTML e-mail, use htmlspecialchars(). That semi-colon is correct, it separates two of the components of the Content-Type header.
  10. Ingolme

    HTML and CSS

    Add "clear: both" to the CSS of your footer. Content that follows a floated element will try to go next to it.
  11. Ingolme

    Javascript command for finish the program

    There is no command to end the program, but if there are no event listeners, you can wrapall of your code in a function and call "return" when you want it to end. If you do have event listeners then you will have to remove all of the event listeners before stopping the program.
  12. If you want to detect that a string has a line break, you just search for "\n". In the following code, the variable "hasLineBreak" will be true when the string has a line break in it. var hasLineBreak = str.indexOf("\n") >= 0; You might want to split a string by its line breaks. The following code creates an array of strings, each string is one of the lines of the first string. var lines = str.split("\n"); When printing a string to HTML, if you want the line breaks to still be visible, you have to replace them with <br> tags. Here's how you would do that: var output = str.replace(/\n/g, "<br>"); element.innerHTML = output;
  13. Ingolme

    AJAX post method

    Most browsers do not allow AJAX to work on the local filesystem by default due to security settings, it has to be from a server. You can install a test server on your computer using XAMPP or WAMP and test AJAX on the localhost domain.
  14. Ingolme

    w3schools.invisionzone.com SSL issue?

    It would be a good idea if they could update the forum to use a secure connection. Right now it's all over plain HTTP.
  15. Ingolme

    HTML Symbols: displaying a text as it is

    You just need to encode the "&", like this: &amp;amp;