Showing articles 21 - 30 (147 total)
Posted on 09/12/2014 at 12:03 pm | Viewed 11,006 times | 0 comments
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...
Read More | Comments
Posted on 08/29/2014 at 11:04 am | Viewed 9,405 times | 0 comments
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 =...
Read More | Comments
Posted on 08/20/2014 at 08:11 am | Viewed 10,514 times | 0 comments
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...
Read More | Comments
Posted on 08/08/2014 at 09:52 am | Viewed 14,238 times | 0 comments
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...
Read More | Comments
Posted on 07/25/2014 at 09:40 am | Viewed 8,976 times | 0 comments
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 | Comments
Posted on 07/18/2014 at 09:24 am | Viewed 8,682 times | 0 comments
After spending a majority of my time developing with JavaScript and jQuery, I've come across many different things that proved very useful, but may not be thought of by most developers. Two things in particular stand out: The notorious download attribute, and Vertically aligning two DOM elements to their baseline Both of these things have...
Read More | Comments
Posted on 07/17/2014 at 09:55 am | Viewed 15,670 times | 1 comment
If you are a disciplined developer you probably take a lot of time to read the manual and probably also use the examples provided by the vendor, right? This is what I was doing in my attempt to get the LinkedIn PHP API working. LinkedIn recommends using file_get_contents() with a stream context. Looks good to me. After you get your GETs...
Read More | Comments
Posted on 06/25/2014 at 02:04 pm | Viewed 9,401 times | 0 comments
500 errors are notoriously vague errors that can occur for a number of reasons. Technically the 500 error is defined as an internal server error. This does not tell you much but it does tell you that you NEED MORE INFORMATION. How you get that information is from your error logs. You may look in your application error logs but they will not...
Read More | Comments
Posted on 06/25/2014 at 01:47 pm | Viewed 9,664 times | 0 comments
While debugging a notorious 500 internal server error, we found by accessing error logs that the default timeout for FastCGI was 40 seconds. This was causing timeout faults on a number of apache processes. These related log entries were found in the apache error log: [Wed Jun 25 12:25:53 2014] [warn] [client 198.255.231.10] mod_fcgid: read...
Read More | Comments
Posted on 06/11/2014 at 04:19 pm | Viewed 7,627 times | 0 comments
While troubleshooting difficulties with autoposting applications, we had created a facebook app for a test site. The settings were all exactly the same as all previously established (and fully functional) auto posting apps, except a very annoying setting buried in “Canvas Payments” that cannot be turned off. This turns out to be a Red Herring....
Read More | Comments