Category Archives: jQuery

Force browser to print background images

I was working on a page with coupons and the coupon had check boxes that the user could check and then print the page to take to the store. I had some trouble styling the checkboxes as the art director … Continue reading

Posted in CSS3, HTML/CSS, JavsScript, jQuery | Tagged , , , | Comments Off on Force browser to print background images

Using “jQuery” instead of “$” in WordPress

In jQuery, the dollar sign character ($) is a shortcut used to represent “jQuery”. You can start your expressions like this: $(‘.content’).css(‘color’,’red’); But, other JS libraries and frameworks also use this character, so with WordPress you must use “JQuery” instead … Continue reading

Posted in jQuery, WordPress | Tagged , | Comments Off on Using “jQuery” instead of “$” in WordPress

Is object in viewport?

I can’t remember if I posted this before, so I am posting again. This fun little script checks to see if a particular object is in the viewport. http://codepen.io/TroyThib/pen/PPOzyv

Posted in JavsScript, jQuery | Tagged , , | Comments Off on Is object in viewport?

JQuery Ajax method: POST not working Windows servers

I was trying to debug a fellow programmers code that was not working. It looked like it was not loading include files that were trying to load using jQuery’s Ajax function. I was only seeing the problem on Windows servers … Continue reading

Posted in AJAX, jQuery, JSON | Comments Off on JQuery Ajax method: POST not working Windows servers

Change URL hash with JavaScript using location.hash

This fun little function will change the hash (#) in the URL. In this example, I have an input element and it’s contents will populate the hash. On the “keyup” event the “location.hash” function creates or changes the hash to … Continue reading

Posted in JavsScript, jQuery | Tagged , , , , | Comments Off on Change URL hash with JavaScript using location.hash