2008 - The Year of the Underdog.

by neo_savvy 2/10/2008 8:40:00 PM

Loud bangs and flashes of fireworks ushered in an air of inevitability in 2008 in the sports and political landscape. It was a foregone conclusion that the New England Patriots were going to cruise to their fourth Superbowl title in 7 years. And then the New York Giants happened to the Patriots (18-1). I can still replay that whole offensive drive leading up to the perfect spiral touchdown pass by QB Eli Manning to WR Plaxico Burress. The New York Giants achieved an impossible feat when they won the Superbowl and prevented the "inevitable" coronation of the Patriots that almost everyone predicted would happen with ease.

Remember when John McCain's campaign was declared dead when he laid off a bunch of his campaign staff when money got tight? We all know what has happened since then. McCain is now the presumptive nominee of the Republican party. Along those lines, when Hillary Clinton started running for president, I assumed she would cruise all the way to the Democratic party nomination. But Barack Obama and America has a different plan. Hillary Clinton has taken all the big delegate states winning 8 states along the way so far. However, Barack has racked up 13 very impressive wins in states all across America while getting young people from different races and backgrounds involved in the political process. Even though he trails in the total count of pledged delegates, his campaign is gaining momentum.

By uniting people across all states - Democrats, Republicans, and Independents, he will provide the leadership necessary to bring about change desperately needed to lead our dear country off the abyssmal path we're charting on. There's no doubt that Obama is sailing through on the wave for political change in America because we are ready for something different. Take a stand for Universal Healthcare, Education, Peace, Diplomacy, Clean Energy and Civil Rights. If you're in one of the upcoming primary states, vote Barack Obama for change and make your voice heard. Only time will tell the exact sequence of events leading to a happy fairy tale ending - just like President Clinton predicted (he just didn't know it was going to be a happy ending Smile).

Join Barack Obama - Change We Can Believe In

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Politics | General | Politics

ASP.net Paypal button HTML Form Post Issues.

by neo_savvy 2/9/2008 11:07:00 AM

Have you followed all the instructions on Paypal when trying to setup a Paypal button in ASP.NET but get nothing but a page refresh (without a redirect) when you click the button? The answer is very simple. HTML forms cannot be nested. You need to add some javascript that will modify the form's "action" property. This will allow the page to the submitted to Paypal.

Here's the sample of the HTML generated on the Paypal site for the encrypted HTML code button:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHVwYJKoZIhCCB0QCAQExggEwMIIBLAIBADCBlDCCSqGSIb3DQE=-----END PKCS7-----">
</form>

Here's a modified version of the above HTML code that solves the nested HTML form problem:

<input type="hidden" name="cmd" value="_s-xclick" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" onclick="document.getElementById('aspnetForm').action='https://www.paypal.com/cgi-bin/webscr';" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHVwYJKoZIhCCB0QCAQExggEwMIIBLAIBADCBlDCCSqGSIb3DQE=-----END PKCS7-----"/>

By eliminating the "form" tag and adding an onClick attribute to the input tag for the Paypal button image, we can use javascript to modify the action property of the HTML form.

document.getElementById('aspnetForm').action='https://www.paypal.com/cgi-bin/webscr';

Make sure that the form id matches what you have. I hope this helps.

Currently rated 5.0 by 7 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Chyke Ucheya Chyke Ucheya
I'm a Software Engineer at a leading Technology Consulting firm in Atlanta, GA.

E-mail me Send mail

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent comments

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Sign in