Call Fancybox from Flash
So we searched high and low for a good answer to this one and finally cobbled together a good solution.
Fancybox is a really nice jQuery plugin that gives you some handsome options for the div overlay. We are using it in a new project, but needed to call it from Flash, and there was really no documentation for how to do this. Hopefully our solution will help someone else.
Here’s the really simple javascript function we added onto our page:
<script type="text/javascript" >
function callFancy(my_href) {
var j1 = document.getElementById("hiddenclicker");
j1.href = my_href;
$('#hiddenclicker').trigger('click');
}
</script>
Now somewhere on the page we had to add a “hidden” <a> tag that we could manipulate with javascript like this:
<div id="hidden_clicker" style="display:none;"> <a class="overlay-flash" id="hiddenclicker" href="#" >Hidden Clicker</a> </div>
The tag is wrapped in a div tag that has a display:none set so it doesn’t show in the browser.
Next part is the ActionScript. We embedded the SWF using SWFObject and can call the javascript function just like this:
getURL("javascript:callFancy('/linktopage.html');");
That’s it. Hope it helps someone out there.
UPDATE 8/18/09: I neglected to point out that the A class assigned to our “hiddenclicker” div is a custom javascript implementation to launch a certain window. Here is the code we added to an included .js file:
$(document).ready(function() {
$("a.overlay-flash").fancybox({
'padding' : 0,
'zoomOpacity' : true,
'zoomSpeedIn' : 500,
'zoomSpeedOut' : 500,
'overlayOpacity' : 0.75,
'frameWidth' : 530,
'frameHeight' : 400,
'hideOnContentClick' : false
});
});
Sorry for the omission…
Kicking IE6 to the curb
Its time, folks.
IE6 has got to go. We are now two significant versions beyond IE6 and the lengths to which we must go to support IE6 have gotten to be too much. Very encouraged by this news today that YouTube is probably considering dumping IE6 support in an upcoming release. That should be the death knell.
Here at JLOOP we’ve dropped default support for IE6 in new projects and encourage our clients to use an “alert bar” that detects IE6 and shows a message to suggest that the user upgrade to a newer browser. We truly believe this is a reasonable step. With the coming of HTML5 and many new technologies, support for IE6 is going to get even more costly. We want to do our part to kick it while its down.
Please join us!
Lightbox ‘Close’ button not working
Okay, so we were building another site that uses Lightbox in a photo gallery – problem was, the ‘Close’ button didn’t appear to work in Firefox or Safari. The ‘Close’ image was in place, but you couldn’t click on it. After some muddling around, we figured out what the problem was.
On this particular site we had set some styles for floated images that would add margins around them to give some space between the image and other content.
.left { float: left; }
img.left {
margin-right: 15px;
margin-bottom: 10px;
}
For some reason, it appears as if those styles are getting applied to the image in the Lightbox photo gallery, causing it to have a bottom margin that overlaps the ‘Close’ link – and only in Firefox and Safari.
So we just added a new line in our lightbox.css file:
#imageContainer img { margin-bottom: 0; }
magentocommerce.com 400 bad request solved
This is super geeky.
But if I’ve been having this problem this long I have to believe there are others. For the last two months, I’ve been completely unable to browse the magentocommerce.com website in Firefox – major pain, considering I’ve been working on two magento projects. Every time I visited I would get a “400 Bad Request” error.
I tried turning off all my Firefox add-ons – to no avail. Finally figured it out. It was a bad cookie that somehow the site had stored on my machine.
I used the Web Developer Toolbar to clear out all the site cookies for magentocommerce.com and that did the trick. Hope this helps someone else from pulling all their hair out.
3 hours of online Twitter Training?

My response to Kevin.wu
Yesterday I received this email:
SUBJECT: URGENT –dispute of internet intellectual property safeguard
(If you are NOT CEO,please forward this to your CEO, because this is urgent.Thanks.)
Dear CEO,
We are the department of registration service in China. we have something need to confirm with you. We formally received an application on April 21, 2009, One Japan company called “Path soft investment Corp” are applying for “jloop”as their China(.cn)/Asia(.asia)/India(.in)/HK(.hk)/TW(.tw)/Mobi(.mobi) etc. domain names, and the internet brand name.
After our initial checking, we found the internet brand name and these domain names being applied are as same as your company’s, so we need to get the confirmation from your company. If the aforesaid company is your business partner or your subsidiary company, please DO NOT reply us, we will approve the application automatically. If you have no any relationship with this company, please contact us within 10 workdays. If out of the deadline, we will approve the application submitted by “Path soft investment Corp” unconditionally.
We would like to get the affirmation of your company,please contact us by telephone or email as soon as possible.
Best Regards,
Kevin Wu
Senior Director
TEL: +86 21 69929440
Fax: +86 21 69929447
Website:www.qepeng.org.cn
Address:Room 902,8th,nong 1518,Jinyuan 1st Road,Jiading District, Shanghai city.
Today I responded to Mr. Kevin Wu with this reply:
Mr. Wu -
Thank you so much for your mails. It is quite a coincidence that you have received this requesting from “Path soft investment Corp” because just today our company received formally applications from one Canada company called “Soft path investment Corp”. This company are applying for “qepeng” as their USA(.com)/Canada(.canada)/Mumbai(.mmb)/Fantasyisland(.fntsy) etc. domain names and the internet brand name. Isn’t that crazy? What a strange world it is indeedish, isn’t it?
We are sure you would like to own these domain names, so please respond within 4 days and we will also send you a complimentary (refurbished) Clapper for turning lights on/off in your workplace (simply by clapping!). If you do not reply in these deadline we will approve purchase of domains submitted by “Soft path investment Corp” and you will lose rights to soft plushies bearing your company Brand names.
Please reply by mails.
Sincerely,
Jay Dysart
CEO (imagine that!)
JLOOP Rich Media (can you check on the domain names for me?)
Website: www.dontmakemeunfriendyou.com
Do you imagine I’ll get a response?
subscribe2 comment subscription hack
We have added a feature to the latest version of the very nice Subscribe2 WordPress Plugin.
This hack adds the ability for users to subscribe to comments as well as posts for specific categories. We’d love to see this added to the core functionality of Subscribe2, but in the meantime, here is our hacked version of Subscribe2 4.15.
Kudos to Mike for this hack.
Typical Day Outside JLOOP
Typical Day Outside JLOOP from Greg Stratford on Vimeo.
iPhone GUI PSD
Thanks to the folks at teehan+lax for posting this PSD of the iPhone GUI elements. I do believe that will come in handy! http://www.teehanlax.com/blog/?p=447

JLOOP March Madness Lunch – Round 1

And for good measure, pool standing as of 5:15 pm on friday
| 1 | No Wammies | 21 | - | - | - | - | Memphis | 8 | 29 |
| 2 | Meagher | 20 | - | - | - | - | Louisville | 6 | 26 |
| 3 | FullCourtneyPress | 20 | - | - | - | - | North Carolina | 4 | 24 |
| 3 | big money! * | 20 | - | - | - | - | Kansas | 4 | 24 |
| 5 | sister katie | 19 | - | - | - | - | Ohio St. | 2 | 21 |
| 5 | Tell me how my bracket tastes | 19 | - | - | - | - | Louisville | 2 | 21 |
| 7 | Hoop Dreams | 18 | - | - | - | - | North Carolina | 2 | 20 |
| 7 | Go Time | 18 | - | - | - | - | Duke | 2 | 20 |
| 9 | Greg’s Rolling Thunder | 17 | - | - | - | - | Pittsburgh | 2 | 19 |
| 10 | Barack’s Picks | 16 | - | - | - | - | North Carolina | 2 | 18 |
| 10 | waffles full of chicken | 18 | - | - | - | - | Louisville | 0 | 18 |