Hey thanks a lot. So if I understand this right, the inputs[i] array couldn't reach within the scope of the anonymous function? I would have had to pass that array as a variable to function for it to access the array's properties?
Anyway, your second solution is much more concise and logical...
I'm having a problem with a basic addevent() javascript implementation. I basically want to find all <input> tags and add 'onfocus' events to them that will clear their 'value' attributes. I created a test page that gives me an "inputs[i] has no properties" error when it gets to the addevent...
New to js here. I'm going to be receiving a URL in this format:
http://www.domain.com/form.html?x&=subscriberID&=John&=Franklin ....etc.
I know it's messy and all to send data this way, but it's what was decided on, so here's what I need to do with it. I want to take all the info from the...
That looks good, however I still want the 'about' link to be "active" even when you're on, say, domain.com/about/philosophy.html, not only when you're on domain.com/about. Will it do this?
Hi there,
I'm a total javascript newbie, but I figure my request is pretty basic for someone with any experience.
I have a navigation in unordered list < ul > format. I apply an id of "active" to the anchor <a id="active"> within a list item <li> in order to indicate the current section/page...
working on a site: http://kallywag.com/res
css: http://kallywag.com/res/style.css
when viewed in firefox, it's fine, the two columns line up right next to each other.
when viewed in IE, there is a three pixel gap between the two columns I can't seem to get rid of.
this fix...
I made this website: http://newsroom.bu.edu/newsline
But I just became aware that background images from my style sheet aren't appearing on IE5 Macintosh. It's weird, because all the positioning works and so do the img tags, but any background images in my style sheet aren't appearing. Is there...
yes that helps. how do you get the messages "successfully sent" or "error in sending mail" to post on the same page instead of on a new blank white page? As an alternative to that, how do I get it to redirect the user to a 'thankyou.html' page if it is submitted successfully?
I'm making this simple php mail form using the mail() function to send an information request to an email address, and I've got several fields including name, email, phone, title, subject and message. but when i try to run it i get the following message:
Warning: mail() expects at most 5...
After browsing the markup of several CSS gurus including simplebits.com, I've come to the realization that you simply can't employ left or right margin settings with a floating div and expect cross-browser compatibility. Instead, you must add in an extra container div around the floating div you...
I'm really having trouble understanding the differences in how netscape and IE interpret the box model. I've read about 100 different explanations of how ie5.x and ie6(quirks mode) interpret the box model so that the width setting includeds padding and border, and netscape only includes the...
yeah i'll separate it eventually, it's just a pain in the ass to work with when you have to have two files open and saving it constantly so I merged them together again for now.
thanks for putting all that work into this, but im not sure i understand what's going on here. the first thing you say is to delete all my navbox1-3 and navbox_line1-3 ids from my CSS code, but you use them in the javascript (objSrc + "_line") and in the html <div id="navbox1"...
no i dont want to get rid of my hover attribute, and it doesn't resolve the problem for me when i remove it anyway. any other suggestions? what's weird is that when i remove the width:100% from the boxes, the problem disappears, but then i lose the ability to hover over anywhere on the div and...
ok i figured out how to apply the color change to all and i updated it at http://stromengineering.com/new but there is still that bug in IE when you hover down the list of links inside the boxes, they resize. any ideas?
I've got a page here:
http://stromengineering.com/new/
but if you view the page in IE, and you hover over the links in the archive box, as you near the bottom, the height of the box flickers back and forth. why is this? secondly, how do i apply the javascript so that the other boxes in the...
yeah i had discovered that thing with the border, but i didnt want a border there and i didnt want to change the padding. the problem, which someone from another forum discovered, was the margins for my <h1> tags. they have a default width, and if you set them to 0 you can play around with...
hello. i just learned about css a week ago and im having a silly problem. im working on a website with nested divs here:
http://www.stromengineering.com/newsite/
the stylesheet:
http://www.stromengineering.com/newsite/stylesheet.css
I've temporary changed the divs' background colors so you...
when i print drop my pages, the drop shadows behind some titles are causing the entire text box to appear slight shade darker than the rest of the background even though it doesn't appear this way in InD when zoomed way in. What can I change to keep this from happening and just have nice clean...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.