Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. You need Javascript to look at the fields when the form submit event fires and check that they have a proper value.
  2. The innerHTML property refers to what's between the opening and closing tags of an element. The <input> element is an empty element, so there's no innerHTML for it. When you're working with <input> and <textarea> objects you have to use the value property.
  3. That means that current.queue('fx') is not returning anything. Perhaps because current is not referring to any elements.
  4. No, that's not valid HTML, the search engine and the browsers will completely ignore it. The alt attribute belongs only to the <img> element. Be sure to check your code in the HTML validator: http://validator.w3.org/
  5. Whether it draws it correctly or not depends on if you gave it the right values.
  6. The validator doesn't care what's inside most attributes.
  7. Why do you have an empty onsubmit attribute on your <form> element?
  8. Ingolme

    css

    Why do you have a title attribute on your <link> element?
  9. There's no oninput event that I know of. You can use the onkeyup event. onkeyup="drawShape()" Inside the event handler you have to access the element and get its value: function drawShape() { var dieX = document.getElementById("dieX").value; var dieY = document.getElementById("dieY").value;
  10. That would be text/css
  11. Ingolme

    html forms

    To give a more specific example. I have a form where I can edit information from a database row. I give the ID of that object as a hidden input in the form. Another example is in a form with multiple pages. When the first page of the form has been completed, the user is taken to the second page of the form, some data from the first page could be placed in hidden inputs. As for a Javascript example, one idea could be a range picker. The user sees a horizontal bar with two sliders which indicate a minimum and maximum value. When the sliders are moved, the value of hidden inputs are updated with new numbers.
  12. A quick search gave me this: http://www.htmlcenter.com/blog/creating-a-favicon-for-your-website/ I have a Photoshop plug-in that creates .ico files but I'm not sure if it saves multiple layers, I never tried.
  13. I think Google's trying to filter out the abundance of obvious lies that show up when people search for things. For example, when people search "moon landing hoax" Google would return reliable sources that show it wasn't a hoax.
  14. You have to learn to use the right tools for the job. Each data type has to be treated differently, prepared statements take care of that for you.
  15. Ingolme

    understand

    Usually when obtaining a third party library I read their documentation to figure out what it does. I don't actually read through minified code unless I'm reverse engineering something that the person didn't want to document.
  16. Ingolme

    html forms

    Two major reasons: 1. Passing data from one form page to the next 2. Allowing Javascript to provide a different interface to change form data before it's sent.
  17. This is a problem because not everybody accepts the facts, but perhaps it's for the better to improve education by giving conspiracy theory websites a lower ranking. I see this has been addressed in the article:
  18. The result of a concatenation can only be a string. A value cannot be of two different types at the same time. Perhaps an array will do what you want: array('john', 5);
  19. You can't easily solve that and it's a good idea not to try to. An ID is a unique identifier of something. If you delete something and put something else in its place, permanent links to pages with that ID will now show something they weren't supposed to. Look at this page: w3schools.invisionzone.com/index.php?showtopic=52696 The ID is 52696. If, for some reason, this topic is deleted and another one is put in its place, then anybody who used to link to it are now linking to something completely unrelated.
  20. W3Schools doesn't simulate Javascript. Whatever W3Schools does is real Javascript and it's bound by the same limitations Javascript is.
  21. The "underline" is actually a box that's one pixel tall and as wide as the link. The code for it is right there on their website: .underline { overflow: hidden; display: inline-block; margin-bottom: -14px; /* Value depends on your design. Fix the awkward space from overflow:hidden. */}.underline:before { content: ""; position: absolute; left: -100%; bottom: 0; display: block; width: 100%; height: 1px; background-color: black;}.underline:hover:before { left: 0;} You need to set the content to something in order to make the :before pseudo-element exist. Setting it to an empty string is good enough.
  22. I do question the need to have a window.onerror handler, since all that information is available in the Javascript console.
  23. Yes, that is a web server. If you have been able to load the file on the localhost domain then it is running on a web server.
  24. It's no good to make hundreds of accounts to mark your mail as not spam. You can't fool the spam detectors. If you don't want your mail marked as spam you need to make sure the content doesn't look like spam to the spam filters. You can test your e-mails by sending them to your own account first. If it lands in spam, rewrite it and try again. Many companies, while using their own domain names in e-mail addresses, use services like Google Apps and Office365, which are just Gmail and Outlook but customized with the company's domain name.
×
×
  • Create New...