treehouse : what would you like to learn today?
Web Design Web Development iOS Development

James

  • Key press adds class to element

    @Stack, You shouldn't be sniffing "navigator.appName" just to target a specific property (entirely unrelated). Instead you should be checking for the existence of either property and then using whichever one is available.
    Comment by James May 2009 permalink
  • Is Jquery viewable on an Iphone?

    If you're looking to deliver content on a wide variety of mobile devices then the best advice I can give is not to use any JavaScript library. They're largely untested and size will definitely become an issue across slow mobile networks. …
    Comment by James May 2009 permalink
  • Strange behaviour Jquery

    If you give a SCRIPT element a SRC then any code residing within it will NOT run. You have to include two SCRIPT elements; one to get jQuery and another for your code: // Your code...
    Comment by James May 2009 permalink
  • Checking accuracy of a textarea [RESOLVED]

    Hi Brian, I messed around a little bit and managed to solve your problem; here's a working function: function checkAcc() { var fieldTextWordCount = 0, mainWords = document.getElementById(\"bodyText\").value.split(\&qu…
    Comment by James May 2009 permalink
  • #hashes and urls

    Don't forget about the back button! Ajax is great for speeding up and enhancing websites but using it for main site navigation is a very big task; history management is an integral part of such a thing. You can't just throw around some cli…
    Comment by James May 2009 permalink
  • Beginner JavaScript help

    I thought I'd give it a go :) Here: function getPositionForToday() { var days = ('Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday').split(','), currentDay = (new Date()).getDay(); return 'It\…
    Comment by James December 2008 permalink
  • Is it time for Access Denied ?

    Ok, I can see where you're coming from but this is definitely a bad idea. You mentioned that you know of some sites that use JavaScript (solely) for functionality, what makes you think the developers of these sites are right? Many people have…
    Comment by James November 2008 permalink
  • Need a Flickr Widget (badge)

    I'm not sure if this is what you're looking for but if you have a look here, css-tricks.com/examples/, you'll see Chris' downloadable Wordpress theme (3rd one down). It includes a flickr widget - I'm not sure if it fits the …
    Comment by James October 2008 permalink
  • wordpress poll

    I don't use one at the moment but I did have a look at WP-polls. It's looks quite good. I tried integrating it but since I use a hard-coded sidebar (instead of widget based) it becomes quite a task! You could have a look at a poll service…
    Comment by James October 2008 permalink