Black Rhino Solutions Inc | Web Design Westchester New York
Web Design, Graphic Design, Applcation Development, Logo Design, Writing Services, Social Networking, Content Management System, Corporate Branding, SEO, Website Maintenance in Westchester New York

web design client log in

Archive for the ‘jquery’ Category

Input Box Inserting Blanks or Empty Strings

Thursday, 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 :)

“Object Expected” error in Internet Explorer

Wednesday, 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 :)