January 7th, 2010
Today I was doing a project and I got stumped on something so simple. I kept inserting a form with input text boxes and they kept inserting Empty Strings even though I was putting in data into the text box! I was getting so frustrated because I didn’t understand why there was no value. Well it turns out that if you don’t have value=”" it will not pick up a value. Very simple and kind of stupid…
Example:
<input name="nameHere" type="text" size="5" maxlength="5" value="" />
So the moral of the story is even if you are going to be inserting a blank value you have to have the value there. Wow I can’t believe I spent ten minutes on this problem! It happens to everyone
Tags: blank strings, input box, input box inserting blanks, input box inserting empty strings
Posted in Jquery |
15 Comments »
December 9th, 2009
Problem: I was writing a simple application and I received this error “Object Expected”. I was so confused because it worked perfectly in all the other browsers (firefox, safari, etc) I tested it on. After researching a bit, I figured out what the problem was. Basically it was giving the error “Object Expected” because it was calling my function prematurely. What was supposed to be called within the function hasn’t even been loaded on the page.
Solution: To fix the error I did something simple. I just moved my jquery code from the top of the page (the header) to the bottom of the page (the footer). Therefore, when it goes to call the function it will know where it is returning to
Tags: "object expected", internet explorer, object expected solution, objected expected, web application
Posted in Jquery, Programming |
10 Comments »