Welcome to MainelyDesign.com

Photos of Rockland, Maine. Summer 2009.

A blog mostly about web design

This is the personal blog of Kevin Wentworth.  Topics covered here are web programming, design and internet marketing.

jQuery: Checking If An Object Is Visible On The Screen

Posted on 09/12/2014 at 12:03 pmViewed 250 times

In the ether known as the internet, people have been going from a static built and styled website, to much more responsive and interactive designs. Knowing this, I felt that it was important to be able to check if an element is currently displayed on the screen. What Is This Useful For? Currently, being able to detect if an element is visible...

jQuery Object getClasses System

Posted on 08/29/2014 at 11:04 amViewed 277 times

After having to create a list of classes on an element, I decided that it was time to have a method to pull all of an objects classes into one returnable array. This is extremely useful for class-based tagging and object finding. Requires jQuery v1.2+ The getClasses Method jQuery.fn.getClasses = function() { var classes = []; var objClass =...

Combatting iFrame issues with Opera and Mobile Devices

Posted on 08/20/2014 at 08:11 amViewed 342 times

After discovering that Opera automatically downloads a PDF file while using an iFrame to load it into a page, I spent some time looking around on how to avoid this issue. It ended up coming down to a pure JavaScript work-around. What Had To Be Done To fix this issue, I ended up having to remove the content from a static HTML section, and...

Making CURL SSL Work on Localhost PHP Development in Windows

Posted on 08/08/2014 at 09:52 amViewed 687 times

I've been here before.  Working on a Facebook application on my local development box and none of the access tokens will work.  They work on the live server, but not on my sandbox/development server.  What gives? CURL is failing to communicate over SSL/HTTPS If you dig into the code and look at the curl error being reported, you'll see this...

Controlling jQuery's Tooltip

Posted on 07/25/2014 at 09:40 amViewed 603 times

After watching jQuery's tooltip() slow down a page's loading time by a solid two seconds, it became clear that there had to be a better way to create and control tooltips. The Slow Way The initial use of tooltip() was used to create all of the tooltips on page generation, as such... $(".tooltip").tooltip({ position: { my: "center bottom-20",...

Read More Posts.

Meet Site Avenger - Hosted Content Management System

Powered By: Site Avenger | Site Production: Saco Design