-
Posts
14,901 -
Joined
-
Last visited
-
Days Won
177
Content Type
Profiles
Forums
Events
Everything posted by Ingolme
-
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.
-
Error: Unable to get property 'length' of undefined or null reference
Ingolme replied to Blueie's topic in JavaScript
That means that current.queue('fx') is not returning anything. Perhaps because current is not referring to any elements. -
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/
-
How can my Form input values pass to a draw canvas Function?
Ingolme replied to cstahr's topic in HTML/XHTML
Whether it draws it correctly or not depends on if you gave it the right values. -
The validator doesn't care what's inside most attributes.
-
how to collect data from a form tag, e.g an <input type='text">
Ingolme replied to proudly's topic in HTML/XHTML
Why do you have an empty onsubmit attribute on your <form> element? -
Why do you have a title attribute on your <link> element?
-
How can my Form input values pass to a draw canvas Function?
Ingolme replied to cstahr's topic in HTML/XHTML
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; -
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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:
-
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);
-
Yes, that's what it's doing.
-
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.
-
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.
- 1 reply
-
- hover effects
- underline
-
(and 1 more)
Tagged with:
-
I do question the need to have a window.onerror handler, since all that information is available in the Javascript console.
-
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.