Using Mach II Dashboard with Mod Rewrite

I had an issue where I was creating vanity URL's for an application.  The issue was that when we did this the Mach II Dashboard would no longer work.  Below is what we had in our Apache config file:

RewriteRule ^/([^/\.]+)$ /index.cfm?event=url&url_name=$1 [PT]

After a great deal of trial and error the solution (as usual) was very simple.  We just needed to create an exception ...

 
Read More
 

Using jQuery dialog with javascript in IE9

Don't you just love Internet Explorer?  I love the development tools which are of virtually no help other than throwing a javascript error that is so broad it basically means: "you have an error in some javascript somewhere in some file" Wow...thanks!  That was very helpful.
 
Read More
 

Working with jQuery and jsonp

I was recently working on a project for a client and needed to use Jquery's getJson() function with Jsonp.  I had tried this in the past but kept getting 'parseerror' responses and could not really figure out what was going on.  I had pasted my json code into the json validator and it said that it was valid.  The documentation on Jquery's website was pretty sparse.   It took me a ...

 
Read More
 

Trying to work with an undefined variable?

I was working on the Facebook Request API and found that when I close the popup and don't invite anyone I was getting an error that

<pre>Response was undefined</pre>

I initially tried to see if the variable was empty and that didn't work.  I stumbled upon this gem the typeof operator and this was magic.  Now I can check to see if the response ...

 
Read More
 

Git issues after upgrading to osx Lion

I discovered another issue related to my upgrade to Lion. Pretty much lost another day as I have been unable to use git. I use Tower to manage my repos and basically I could not commit, pull or push. I kept getting the following error:

Could not stage all files
Unable to write new index file

If you plug that in and search for 'Unable to write new index file' ...

Coldfusion spinning after upgrading to Lion (osx 10.7)

So, being the habitual early adopter that I am, I decided to download the update to Lion yesterday morning. It was the first time since I switched to mac as my primary developer machine that I had tried to upgrade. Boy was it hard (not). I just downloaded the update from the app store and it did it's thing.

However, I noticed that there were some issues with some of ...

 
Read More
 

SMS Gateways

I was doing some searching on this and found a great little resource that lists tons of the major carriers gateways. Hope this helps someone. http://www.mutube.com/projects/open-email-to-sms/gateway-list/
 
Read More
 

Using jQuery to alert users to a change with animate()

In setting up an action on our site I wanted to have jQuery alert the user to the change by fading the background color in and then back out.  Using the animate function this was very easy to do.  You can fade the background color of the parent div in by using the following:

$('#' + parentTag + '.update').animate({
backgroundColor: "#DFC21D",
}, 1000 );
$('#' + parentTag + '.update).animate({ backgroundColor: "#...

checking a checkbox by clicking on the list item parent with jquery

$('#parent li').click( function(){ var $checkbox = $(this).toggleClass('selected').find(':checkbox'); if($(this).hasClass('selected')) { $checkbox.attr('checked','checked'); } else { $checkbox.removeAttr('checked'); } });
 
Read More
 

What happens when you create multiple ways to do the same thing – !*!*?

With the first release of Ateamo I thought that it would be best that we support some of the old functionality while also rolling out the new.  I thought that if we gave our users several ways to perform certain tasks we would be able to better support all of our members.  Boy was I wrong.

If your application doesn't have some clear direction as to how to perform the ...

 
Read More