Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by squeezedjuicybits

  1. I think you are looking for some dynamic select elements using AJAX. Either of the following appear to be quite good: http://php-ajax-code.blogspot.com/2007/07/ajax-triple-dropdown-with-states-cities.html http://www.chazzuka.com/blog/?p=206 I'm certain the others will also have a few to add.
  2. This might seem silly so I appologise if you have addressed this already, however, have you started the WAMP services?
  3. http://www.smashingmagazine.com/2008/12/17/the-ultimate-web-developers-christmas-wish-list/ Scroll down to section 16, it has a selection of password managers you may wish to look into.
  4. body { margin: 0; padding:0; background-image: url(images/blibackground.jpg); text-align: justify; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #274690; } Should do it.
  5. Or: p { margin:0; padding:0; } // reset margins & padding on all paragraphs Sometimes it can be beneficial to reset all margins and padding for the whole document so you have a 'blank' canvas to start with: * { margin:0; padding:0; } Either method would work for you.
  6. Any particular reason for creating the relationship? If it is so that your hyperlink knows which image to target, assuming you always add your hyperlinks after the image you could use the jQuery .prev() function. $(this).prev('img').attr('href');
  7. >> I read over my post, and as usual, I was a bit short I get that way posting from work, but I mean well. I assumed it was constructive criticism, so that is how it was interpreted. >> even if only but a small margin, I do it Agreed. It's the small performance increases that cause the major performance increase.
  8. >> Your jQuery attaches the event handler to every link in the document The second method does so yes. The first method of attaching click event handlers to hyperlinks does not. I was attempting to show different methods for achieving a similar effect. However I understand where you are coming from on this and agree it is very inefficient. >> Also, you've used the $('#box_' + ... ) I agree it is fairly poor, however I didn't see the harm for this example. >>it is better practice (and faster) to do $('div#someID') I didn't realise there was a performance benefit to that. I've seen official examples that include and exclude that step. I do so love conformity. Cheers for the heads up though. >> I posted a short bit of jQuery above that should do what the OP is trying to do, in less than 10 lines of code. True, I did notice your .toggle() event. There is always more than one way to skin a cat though. >> Your discussion of graceful degradation is spot on. I tend to be in the "progressive enhancement" crowd, but it is realyl two ways of saying the same thing. Haha, yeah. I'm becoming more and more of a fan of safe degradation. Come across a fair number of sites that don't degrade nicely and render the majority of the site useless. >> Also, I've not seen you around - welcome to KS! Thanks.
  9. Click Me (div one (yellow)) Click Me (div two (blue)) Google.co.uk Toggle All On Toggle All Off Invert Toggle
  10. jQuery might be an ideal solution for you. Take a look at the following demo: http://malsup.com/jquery/cycle/ Has a few nice effects you can implement on your slideshow.
  11. Dreamweaver 8 is getting pretty old and it does use an older rendering engine. So yes, Dreamweaver CS3 and CS4 are a big leap ahead. Of course, if you are just a coder, then using HTML-kit or some other inexpensive or free text editor can probably do the trick. Stefan Take a look at sub sections 4, 5 and 14 in the following link. They provide some nice examples of editors if you are looking to upgrade your current editor. http://www.smashingmagazine.com/2008/12/17/the-ultimate-web-developers-christmas-wish-list/
  • Create New...