Jump to content

Ingolme

Moderator
  • Content Count

    14,366
  • Joined

  • Last visited

  • Days Won

    94

Everything posted by Ingolme

  1. 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.
  2. 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.
  3. If you just want to display the button, an <img> tag will work. If you want it to actually do something when you click on it, that would be very complicated.
  4. This code would replace the part of your code which is calling DisplayDemoPopUp.
  5. You might get a quicker response if you report it to help@w3schools.com. I am not certain how frequently they check the forums.
  6. You can count whether seven days have passed by comparing the timestamps. The getTime() method converts each date into a number measured in seconds. var SEVEN_DAYS = 7 * 24 * 60 * 60; // How many seconds in 7 days if(localStorageDate.getTime() - currentDate.getTime() > SEVEN_DAYS) { // Popup code here }
  7. There seems to be an issue with the site. They might respond faster if you send an email to help@w3schools.com
  8. Ingolme

    PHP Tryit Editor

    I just had a bit of time and checked. There certainly does seem to be a problem. The problem is not on your computer, it's the server that has a problem. When the manual is talking about the operating system, it is referring to the server's operating system, not your computer's operating system.
  9. Ingolme

    PHP Tryit Editor

    Which tryit example are you referring to? By Tryit editor, I assume you're referring to something like this: https://www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_strlen
  10. Are you able to use the DOM inspector to see which styles are being applied? Edit: Considering Safari is the one with the problem, have you cleared the browser's cache? I am aware that Safari has a very aggressive cache.
  11. This should work: display: block; max-width: 100vw; max-height: 100vh; width: auto; height: auto; The element containing the image should take up the full size of the window for this to work correctly.
  12. The == was probably checking that both strings were pointing to the same space in memory, which they probably were not.
  13. See if shouldLoginNo.trim().equals("Yes") makes a difference.
  14. Ingolme

    Rob

    XSLT can only deal with valid XML. If you have another programming language available to you, you could have it replace the entities before sending the XML to the XSLT engine.
  15. There may be invisible characters. What number do you get when you call shouldLoginNo.length() ?
  16. Ingolme

    Rob

    I tried to test this in the browser but it rejected the XML because of undefined entities. Which XSLT engine are you using? It looks like your XSLT engine is allowing it to run but stripping out entities that it does not understand.
  17. Can you show the full code including the section where the data is retrieved from the spreadsheet?
  18. Print the variable to see if it contains the value you expected it to have. System.out.println("*" + shouldLoginNo + "*");
  19. Ingolme

    Rob

    Did you try changing the value of "disable-output-escaping"?
  20. What data type is that variable? Where did it come from?
  21. I would start by printing the return value of shouldLoginNo.trim(). It clearly is not equal to "Yes".
  22. Ingolme

    Rob

    In XML, those would be considered invalid entities, though it is valid if the document is HTML. You can escape them by turning every & into &amp; <pronounce>&amp;abreve;-b&amp;umacr;s&amp;prime; d&amp;emacr;-t&amp;ebreve;ramp;&prime;&amp;ebreve;nt</pronounce> Doing this straight through XSLT, I'm not certain, but you might want to set disable-output-escaping to "no" so that it will escape the characters.
  23. What does your code look like? Maybe you forgot to replace the comma on the previous line with a semi-colon. If that's not the issue, then it sounds like all of the other font files are missing from your server or are corrupted.
  24. You might need to upgrade your version of Edge. The <details> tag is not supported in versions prior to 79.
  25. You could give the body an overflow: scroll property to always have a scrollbar there.
×
×
  • Create New...