Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Funce

  1. Hmm.. This is interesting because on its own, the code for your top bar works fine. But when you put that code one after the other, the second set of styles override the first. Have you tried adding separate classes for each navigation and styling them?
  2. Funce

    ASP web page.

    Hi @Rewillis You've missed out one character! Make sure you have the = character after the first % sign so that the @DateTime.Now is outputted rather than only being evaluated. <p>The time is <%= @DateTime.Now %></p>
  3. Well I imagine you can use the info from both of these tutorials to figure out the login form. PHP Form Handling - https://www.w3schools.com/php/php_forms.asp CSS Login Form - https://www.w3schools.com/howto/howto_css_login_form.asp Our SQL section can handle your Database questions. https://www.w3schools.com/sql/default.asp Here's the hosting section if you want to figure out what database you want that W3 have tutorials on. https://www.w3schools.com/sql/sql_hosting.asp
  4. Please do not reply to old topics.
  5. What datasets are you looking at specifically?
  6. There's nothing odd with this one. You're missing the fact that the program checks for two things Valid URL (FILTER_VALIDATE_URL) Has a query string (FILTER_FLAG_QUERY_REQUIRED) "https://www.w3schools.com" is a valid URL, but lacks a query string and therefore does not succeed the check.
  7. You could use a For loop in combination with document.getElementsByClassName And add a class to all the elements you want disabled together. <h2>ClassName For Loop</h2> <label><input onchange="some_function(this);" type="checkbox" checked>Check</label> <input type="text" class="some-class"> <input type="text" class="some-class"> <input type="text" class="some-class"> <input type="text" class="some-class"> <input type="text" class="some-class"> <input type="text" class="some-class"> <input type="text" class="some-class"> <input type="text" class="some-class"> <input type="text" class="some-class"> <input type="text" class="some-class"> <script> function some_function(letterCheckBox) { var element_list = document.getElementsByClassName("some-class"); let element_length = element_list.length; let element_disable = !letterCheckBox.checked; for (let i = 0; i < element_length; i++) { element_list[i].disabled = element_disable; } } </script> </body> </html>
  8. "keeps looping?" How many times does it loop? Your code as written sends as many alerts as there are sites in specificSiteLinksArray
  9. What's the error you're getting?
  10. There could be many things going wrong here, but we won't know it until you include some code. Try the forum's code block feature.
  11. Very nice introduction, but do you need help with anything?
  12. You might find a bit more luck by including the code snippet inside the Forum's Code block feature rather than linking an FTP.
  13. To answer your float/double question, decimal numbers don't have infinite accuracy due to their representation in binary. As you can see you're 0.000000000001 out due to that. This is usually why choosing your data type and rounding appropriately are important. Different data types have different accuracies. Your third question seems like there's something else underneath which you aren't asking. I'll answer it as generally as possible. Method Overloading like that is used for when you want to use one function for multiple different data types, or different amounts of them, and you require it to be handled differently per case. Easiest way to see it in action is the '+' operator. String x = "32" + "4"; System.out.println(x); // Outputs 324 int y = 2 + 4; System.out.println(y); // Outputs 6 Two strings concatenate, two numbers add together. With an overload for every combination of data types that "+" can support.
  14. That would be because you're "C:/Users/YourName>" is the example of what's in your terminal already. The command you had to run was simply javac MyClass.java
  15. Hey Valentino! You can see what's allowed in the Terms of Service Page. https://www.w3schools.com/about/about_copyright.asp
  16. Funce

    CSS issues

    What issue are you having? What are you trying to do?
  17. You might be able to use Regular Expressions. Find: X(\d+\.?\d*) Replace: $& U$1
  18. Funce


    Do you have a link to the topic?
  19. Funce

    CSS form element

    Oh that changes things, there are general attribute selectors. They work well enough, its just better to use the id or class. Here's where you can read up on those attribute selectors: https://www.w3schools.com/css/css_attribute_selectors.asp
  20. Funce

    from api to php

    I can haphazard a guess, that you haven't put quotes around your string. You also may want to directly include the error, because an "error" could possible be your internet being offline.
  21. Hey there! Good find on that one, could you use the "Report Error" at the bottom of the page with a description of this, and it'll make its way to the developers.
  22. Link them? It works just like a normal link. Add your URL to the href attribute, and when people click on them, they'll be navigated to that location.
  23. Check out the w3schools terms of service for how you can use the snippets! https://www.w3schools.com/about/about_copyright.asp
  24. This is because its being taken as your class "HashSet", You've overidden the class "HashSet" with your program called "HashSet", you may want to change it.
  • Create New...