Best web page footer...ever!

This was found by my co-worker. I had to pass it on. Can be seen at www.newtoyork.com

Simply Put....

It's a slow day in a little east Texas town. The sun is beating down, and the streets are deserted. Times are tough, everybody is in debt, and everybody lives on credit.

On this particular day a rich tourist from back east is driving through town. He stops at the motel and lays a $100 bill on the desk saying he wants to inspect the rooms upstairs in order to pick one to spend the night.

As soon as the man walks upstairs, the owner grabs the bill and runs next door to pay his debt to the butcher.

The butcher takes the $100 and runs down the street to retire his debt to the pig farmer.

The pig farmer takes the $100 and heads off to pay his bill at the supplier of feed and fuel.

The guy at the Farmer's Co-op takes the $100 and runs to pay his debt to the local prostitute, who has also been facing hard times and has had to offer her "services" on credit.

The hooker rushes to the hotel and pays off her room bill with the hotel owner.

The hotel proprietor then places the $100 back on the counter so the rich traveler will not suspect anything.

At that moment the traveler comes down the stairs, picks up the $100 bill, states that the rooms are not satisfactory, pockets the money, and leaves town.

No one produced anything. No one earned anything.

However, the whole town is now out of debt and now looks to the future with a lot more optimism.

And that, ladies and gentlemen, is how the United States Government is conducting business today.

jquery ajax + xml + IE = hair loss

I've done ajax before with jQuery with good results on all browsers...until

I used an XML return with IE (all IE's that is).

When returning XML from a CFC (or any other server-side script), IE doesn't treat the XML document as, well, XML.

It actually barfs on it unless you tell it to load up the ActiveX control to parse your XML doc. (psst..Thanks Microsoft).

Just look at this:


$.ajax({
type: "POST",
url: "ajaxtest.cfc?method=getallblogs",
data: datastring,
success: function(data) {
var xml;
if ( $.browser.msie ) {
xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;
xml.loadXML(data);
} else {
xml = data;
}
$(xml).find('blog').each(function(){
var id = $(this).attr('id');
var title = $(this).find('name').text();
var url = $(this).find('url').text();
$('<div class="items" id="link_'+id+'"></div>').html('<a href="'+url+'">'+title+'</a>').appendTo('#blogInfo');
});
}
});


See that little blurb in the ajax call for "if ($.browser.msie)"? That's the call you'll need to do to make IE behave like 99% of the other browsers out there.

I've put together a short demo. I know the code is duplicated, but this is for demo purposes. Hope this helps you guys doing XML data returns.

Oh and once again "Thank you Microsoft" for making my web development career such a wild adventure.

XML data return demo

p.s. the data returned is from my blackberry bloggers site. If you're a blackberry fan, check it out (http://www.blackberrybloggers.org). It might look a bit familiar :)

waving a one fingered gesture at Microsoft..wth?!

Ok..here's the situation...

I'm creating an HTML email with tables and background colors.

Lo and behold, if you nest tables, Outlook 2007 will strip out the background color. Wait...what? Yeah, exactly.

But, when you open the email in outlook and then view message in browser, voila! the background color emerges!

Thank you MS for using 2 different HTML rendering engines. One of the best cases of, 'the left hand doesn't know what the right hand is doing'

::: waving finger gesture :::

Restaurants + flash website + mobile = FAIL!

When will restaurants realize that full flash websites suck for those of us on the go?


Situation: I'm out with friends wondering where we should go for lunch. Someone says, "Let's try XYZ restaurant". I pull out my blackberry. Other non-descript friends pull out their iPhones and we get to XYZ Restaurant's website. Guess what? It's a FULL FLASH site. None of us can render it and we all groan and go to some other directory like Yelp, CitySearch, menupages..etc.


How do we get the word to web designers/programmers who do restaurant websites that they need to do 2 versions of the website: Mobile and everything else.

WoW Gold spammers...argh!

How are they getting past the captcha? I wake up every few days to about 12-30 spam comments on various posts here.

Is there a way to curtail this?

Dreamweaver CS4 balance brace highlighting?

Does anyone know if there's a way (even with an extension) to get DW CS4 to act like Eclipse when highlighting balanced braces?

I love this eclipse feature. Turns my braces red to show where I'm missing closing braces or have too many closing braces. I just wish there was a way to do this with DW CS4. I find Eclipse to be buggy. I get so many "java.lang" errors that it's driving me batty.

I have CFEclipse, Aptana, and SVN plugins installed in Eclipse Ganymede (3.4?), and I'm getting errors each time I switch tabs. Very annoying. I'm not a happy camper with Eclipse. (where is Bolt!!!?!?)

Aptana + CFEclipse vs Eclipse + Aptana + CFEclipse

Can anyone tell me if there's any difference from using:

Aptana Studio with CFEclipse plugin
vs.
Eclipse with Aptana plugint + CFEclipse plugin

They both do the same thing. I'm using the latter and am wondering if I'm missing out on anything by using the former?

I'm having trouble with Aptana + CFEclipse. I can't open any CFM files after I install the CFEclipse plugin with Aptana Studio. I get a java.lang. error. But, using Eclipse/Aptana/CFEclipse, I can open my CFM files.

I've tried uninstalling and reinstalling and cleaning up the registry on my WinXP Pro box, but the Aptana issue keeps cropping up.

Sooooo looking forward to going back to DW CS4....

Cold Fusion <-- really?

Anyone else find it gratingly annoying when they see people refer to CF as 2 words?
I see job postings with 'coldfusion' and 'cold fusion'. I've learned to look for jobs on CL and other job sites in this manner.

Argh!!

jQuery + ajax + logout form

I love jquery! Let me just say that now. I'm a true convert from prototype/scriptaculous. I love prototype for all it's pros. But, I can't deny the support from the jQuery community and the momentum it has in the web world.

With that said, I dove in and started playing around with the jQuery UI plugin (built by the jQuery guys of course). The dialog plug in is simply DOPE!! (is that a youngin' term?)

I was playing around with a logout confirmation dialog and here's what I've come up with. It's a bit verbose for my taste and by NO means the best way to do this. But, I do hope it points people in the right direction if they're looking to do something like this.


$('#logout').click(
        function(e){
        e.preventDefault();
        
$('<div id="confirmLogout" title="Logout?">Are you sure you want to log out?</div>').dialog(
            {
            modal: true,
            height: 100,
            width:350,
            show:"blind",
            hide: "blind",
            buttons:{
                "Yes":function() {
                    $.ajax({
                        url: 'someActionCall.cfm',
                        complete: function() {
                            $('#confirmLogout').html("See you next time!");
                            $('.ui-dialog-buttonpane').css('display','none');
                            var dlg = $("#confirmLogout").parents(".ui-dialog:first");
                            dlg.animate({ width: 200},50);
                            setTimeout(function(){$("#confirmLogout").dialog("close")},3000);
                            setTimeout(function(){location.reload();},1500);    
                            }
                        });
                    },
                "No":function() {
                    $("#confirmLogout").dialog("close");
                    }
            },
            close:function(){
                 $("#confirmLogout").remove();
            }
            });

return false;
    });


The demo can be found here: Logout demo

More Entries

Calendar

NAVIGATION

Recent Comments

RSS

Search

Subscribe

Tags