Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 03/02/2020 in Posts

  1. Hi All! I'm the coding projects manager at [link removed] and I'm very thrilled with W3Schools' latest developments. These signed-in learning paths and forums are great! I'm from New York, and Ruby on Rails is what I/we code with the most. But I'm excited to be learning more here at W3Schools. If any of you are interested, we have a bustling and supportive coding community at [link removed] --- we are the world's first not-for-profit social media community, where we help our members worldwide DIVE for their big BREAKs in life. I hope you'll come check it out--not only are we always
    2 points
  2. That was the days of html4 with strict doctype no longer supporting it, it was my main gripe as there was not cross browser support for anything else similar, so you had to use transitional doctype which allowed iframes. Then whoever realised what a major blunder they made, and it was resupported in html5
    2 points
  3. You should call exit or die any time you're redirecting a user to prevent the code from executing any of the instructions that are further down. Nothing about the header() function tells the code to stop executing. header('Location: /Logon/Logon.php?From=Home'); exit;
    2 points
  4. It is impossible to protect HTML code, but I will do what you asked. Here is the above code without password: <html> <head><title>Encryptor</title></head> <body> <div id="thecode" style="display:none"> &lt;script&gt; document.write(unescape("thecode")); &lt;/script&gt; &lt;noscript&gt;JavaScript must be enabled in your browse in order to see protected page.&lt;/noscript&gt; </div> <script> function do_encode() { orig = document.getElementById("as1").value; thecode1 = document.getElementB
    1 point
  5. orig_pass = prompt("Please enter password",""); To remove the password prompt, just replace the above line with whichever fixed value you want. orig_pass = "XYZ"; This code is not very good, the variables aren't properly declared and they're using outdated attributes. If you're intending to hide your source code from people, I will have to warn you that it is impossible. If the browser is able to read the source code then so can anybody.
    1 point
  6. Nay! he's being painting during lockdown, and didn't open any windows, it happens.
    1 point
  7. https://www.w3schools.com/code/tryit.asp?filename=GNVVBS9H7SVT
    1 point
  8. https://www.w3schools.com/code/tryit.asp?filename=GNU4PJEGMKOZ
    1 point
  9. I recommend doing the tutorials in the order HTML > CSS > Javascript. If there's something you don't understand you can always come back to review it later. This kind of knowledge builds up gradually over time.
    1 point
  10. I haven't checked but they most likely use AJAX to load a piece of content from the database and populate a box with it. There is Javascript and server-side code involved, it's not exactly simple.
    1 point
  11. Refresh page with cntrl F5, hopefully you are using local server 'wamp' or 'xamp', and not laptop file system.
    1 point
  12. Sort of, but even stacking of elements will cause linebreak which is treated as space and therefore a alignment problem. You get a similar problem in using display: inline-block; it usually results in a gap following it.
    1 point
  13. its a vertical-align issue, of all the ones to give it, they give it one that give a space at bottom. many ways to fix it, change default vertical-align, display: block, for img, font-size: 0; line-height: 0; for parent.
    1 point
  14. The libraries are not faster than writing native Javascript, they are just coded in an optimal way. You could try to go through their source code if you want to learn some techniques. A common technique to make canvas appear faster is to draw on a buffer (a hidden canvas) and then use drawImage() to draw the contents of the hidden canvas onto the visible canvas. Without more information on how you are writing code for canvas, I can't tell you how to optimize it.
    1 point
  15. Please read our guidelines: [topics] Must be a Specific Problem or Question related to web design and developmen Do you code?
    1 point
  16. No it is not found twice in the DB. Meanwhile I made a little search and what finally solved the issue is that intead of tracking keyup I used the input event...that solved it. Follows part of the event handler(JS) so you can understand what I am talking about. $('#search').on('input', function(e) { e.preventDefault(); var searchKeyword = $.trim($(this).val()); if(searchKeyword!=='') {//// tell me what you think...
    1 point
  17. ... and what it is all about and when to use it. I like it ...πŸ˜ƒ Sorry for my excitement, but I decided to bite the bullet and start building a website. More for practise at this stage. So I decided to look at CSS Responsive Web Design ... I liked that it uses HTML and CSS ... a good starting pointπŸ€” Anyway just thought I would share my excitement!😜🀠
    1 point
  18. The first slash is directory root for more subfolders before images folder.
    1 point
  19. Hi. I was wondering is you could make a dark mode for the entire w3schools, like how you did it for the tryit editor. That would be really cool thanks!
    1 point
  20. Here's a Dec 2020 link that addresses you question about "working cross browser": https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Introduction Here's a quote that stuck out:
    1 point
  21. Right, it has nothing to do with coding, its magic! Sorry! You are on the wrong forum try https://blackwitchcoven.com/ If it was coding and you actually provided the code, we might have been able to help, but a vague question will result in a multitude of possible answers of which the most likely answer is its pointing to the wrong directory, it can't find what it is coded to look for, so it fails. But! All this nothing you want to hear so i will now depart, Abracadabra!
    1 point
  22. That worked. At one point I was close, only a . away! Thanks!
    1 point
  23. Give nav links specific class name as in .navlinks then try a:hover:not(.navlinks){ } Should work.
    1 point
  24. Because i still didn't get what do you mean well, could you take a look at the link below, and tell me whether is has what you're looking for or not https://www.w3schools.com/html/html_images_picture.asp
    1 point
  25. Wrap in quotes 'p, div', then use for loop with makeBold.length to loop through collection from querySelectorAll(); to apply required style.
    1 point
  26. You have a semi-colon ; in the middle of the statement which is causing the problem. data[i].eosTxPort; + "<br>"
    1 point
  27. Personally, I don't like to follow trends. I evaluate each technology and determine whether it fulfills my needs or not.
    1 point
  28. Folks, Finally an experienced InDesign scripter helped me to find a solution that works perfectly πŸ‘ This is the correct JS syntax for text alignment in the specific table cell: curTable.columns[-2].cells.everyItem().texts.everyItem().justification = Justification.RIGHT_JUSTIFIED; The missing key was the relation to the cell itself. After adding the code the (horizontal) 'justification' property is working now. He also recommended an InDesign specific resource website providing a complete overview to other suitable commands / properties - here at the 'text' section: https:
    1 point
  29. I can only speak for myself, but my answer is: If the task you want to accomplish can be done in a browser, you probably don't need an app at all, PWA or otherwise. I notice a lot of companies trying to get users to download an app which is basically just an alternative way to navigate their website. If I was interested in building an app that works in the browser, I would not use PWA since I can build the app in native Javascript which allows more freedom and control over how the application is built. There is nothing that Google's PWA framework can do which cannot be done in native Java
    1 point
  30. Hey, Nice idea. Though design looks a bit outdated. Icon for a trash can should be more obvious, plus usually when you point to any element (button/icon) there's usually text that pops up like "edit", "delete". It took me a few seconds to realize that the trapeze is a trash can. Though everything should be clear at once - good for user experience.
    1 point
  31. YES! Your stylesheet should always follow bootstrap, check an element through web development tools F12, check elements for bootstrap styling, make note of bootstrap selector, style how you want it and if required add !important. Web developer will let you edit stylesheet live, without actually changing anything, therefore you changr, turn off the styling until you get result you require, it even list the changes you have made to achieve that result, although you have to enable it first.
    1 point
  32. Look into flex box layout, using display: flex;
    1 point
  33. If you are loading the file from another website, you have no way to know when it was last modified. To find out the modification time of a file, it has to be on your server. The ?ver=2.0 probably is just there so that older versions of the file are not loaded from the browser cache.
    1 point
  34. That is not the flex-grow property, it is the flex-basis property.
    1 point
  35. You might need to upgrade your version of Edge. The <details> tag is not supported in versions prior to 79.
    1 point
  36. I would do complete removal of 'active' class from both tabs and tabss if they exist or not. Get index of currently clicked and apply 'active' to .eq(indexref) of .tabs, then 'active' to $(this) currently clicked for .tabss. No if condition, No css nth-child, never used this? find that .eq() better suited. If this is what i think you are attempting.
    1 point
  37. It's just mismatched parentheses on this line: var days = Math.floor(distance % (1000 * 60 * 60 * 24 * 7)) / (1000 * 60 * 60 * 24)); Count the opening brackets and the closing brackets.
    1 point
  38. The problem is the semi-colon at the end of your if() statement on line 13. Your syntax highlighter has been kind enough to underline it in green to indicate that you probably don't want it there.
    1 point
  39. I'm not sure why this is in the HTML tutorial. These are Javascript APIs, not HTML APIs. In this context, the browser itself is the provider and your Javascript code is the client. The API is the interface through which you request data or a service from the browser.
    1 point
  40. I'm not sure to what extent it will affect the page on mobile, but the lack of a <!DOCTYPE html> tag on your page forces browsers into outdated rendering modes. The mobile devices may have an issue with this as well.
    1 point
  41. I added info about base tag
    1 point
  42. I don't how css can do that as its presentational, the most it can do is show text using :before and :after a link address. There is a base tag which would have the http domain and default root folder, you then must have relative paths without domain and root folder. https://www.w3schools.com/tags/tag_base.asp
    1 point
  43. I think you have to work from the last child instead of first
    1 point
  44. vLeftButton, IconL, leftAction(), hmmm wonder why it does not work for right? A real puzzler this one.
    1 point
  45. Only the content inside the loop is repeated. This is what the string looks like on each iteration of the loop: text = "<ul>"; "<ul>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li><li>Orange</li>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li><li>Orange</li><li>Apple</li>" text += "<li>" + fruits[i] + "</li>"; "<ul><li>Banana</li><
    1 point
  46. Oh no, Ingolme!!! It seems to be an interesting behaviour of window.getComputedStyle() and getPropertyValue("text-decoration") Its important to note, that the exercise checks for the existence of none inside this property value. On Firefox, when you've defined the text-decoration as none it actually removes the text-decoration-line(default: underline) and text-decoration-style(solid) keywords from the text-decoration property value. So you're only left with the text-decoration-color. Hence the process fails. On Chrome, text-decoration is property that seems to be directl
    1 point
  47. This maybe unhelpful but it is one of the reasons why I make all my own icons. I don't want to have to rely on 3rd party code because it opens up vulnerabilities in your website.
    1 point
  48. And all of the w3schools ad space is google powered, which only shows you what you've been looking at before that. If you do not like an ad, you can always report it in the corner of said ad if it says "powered by Google"
    1 point
  49. Apache resourcesThe "Apache HTTP Server" (often called just "Apache" for short, though technically, "Apache" are the creators of the program, not the program itself) is the most popular web server today, and is the one bundled with most of the packages above. One of the reasons it's favored over competing products like Microsoft's IIS web server is because it's open source software, and can therefore be made (i.e. be compiled) to run on a large range of operating systems, not just Windows. Any Apache related documentation you can find anywhere, you can try to apply on any package that contains
    1 point
  50. PM or Personal Messages (Not allways personal )Are messages sent by a forum member to another forum member where no one else can read them.For example if i had a percific problem i could PM a spercific member of the forum to help me with that!To PM click on the username of the member...and on there profile select "Send a Personal message"TA DAHope that helped!!Welcome to the forum... (im new-ish too)
    1 point
×
×
  • Create New...