-
Posts
602 -
Joined
-
Last visited
-
Days Won
19
Content Type
Profiles
Forums
Events
Everything posted by Funce
-
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?
-
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>
-
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
-
Please do not reply to old topics.
-
What datasets are you looking at specifically?
-
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.
-
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>
-
"keeps looping?" How many times does it loop? Your code as written sends as many alerts as there are sites in specificSiteLinksArray
-
What's the error you're getting?
-
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.
-
Very nice introduction, but do you need help with anything?
-
Need explanation about "conflicting" url and link address
Funce replied to HowdeeDoodee's topic in HTML/XHTML
You might find a bit more luck by including the code snippet inside the Forum's Code block feature rather than linking an FTP. -
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.
-
Nice meme.
-
Hey Valentino! You can see what's allowed in the Terms of Service Page. https://www.w3schools.com/about/about_copyright.asp
-
What issue are you having? What are you trying to do?
-
You might be able to use Regular Expressions. Find: X(\d+\.?\d*) Replace: $& U$1
-
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
-
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.
-
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.
-
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.
-
Check out the w3schools terms of service for how you can use the snippets! https://www.w3schools.com/about/about_copyright.asp