Form Construction & Validation

    Standard deviation analysis - unlimited dynamically created data points
    Convert decimal to nearest fraction
    Right triangle calculations
    Count words in a textarea
    Count characters in a textarea
    Money amount to quarters, dimes, nickels and pennies
    Converting digits to text, maximum is 999,999,999
    Dynamic Catalog type order form
    Canadian loan amortization
    Compute cost per n users
    Product size availability by color
    Simple selected quantity multiplied by unit price
    Compute VAT
    Using an image for a checkbox
    Filter profanity and tags prior to submission
    Unhide Submit button after typing minimum number of characters
    Hide / unhide fieldset based upon select list choice
    Validating HH:MM:SS
    Credit card validation
    Empty field background color change, three examples
    Validation including radio buttons
    Miscellaneous text validation
    Multiple Textarea validation
    Must select .jpg or .gif file
    Required fields
    Submit button disable/enable
    Text and radio button validation
    Validating a user name and PIN example
    Validate time input to MM:SS format
    Calculate a discount on a total, two examples
    Coupon code discount
    Currency converter, two examples
    Discount checkbox
    Input two out of three, calculate the third
    Loan analyzer
    Payment calculator
    Loan amortization schedule
    Mulitiple descriptors with multi-dimensional array
    Calculate the form on the fly
    Button adds table rows, onkey up calculate total price
    Simple gross payroll
    Sum fields with the same name
    Auto adjust textarea rows
    Browser details to hidden form field
    Textbox character limit
    Clearing all textboxes on click
    Copy form data to clipboard
    Cursor to EOT onfocus
    Cursor to end of second character onfocus
    Cursor to end of second word onfocus
    Enter key acts like Tab, six examples
    Image file upload details form
    Format input on keyup
    Form fields to an array
    Highlight selected field
    Limit lines in a text area
    No spaces allowed in textbox
    Replace commas with semi-colon on keyup
    Send form data by Email using mailto
    Session cookie saves form fields
    Set background color for readonly fields
    Table data to select list to textboxes
    Wrap selected text in chosen tags
    Using the query string
    Validating fields for PHP arrays, e.g someName[]
    Validating a questionaire consisting of many radio button groups
    Integer Slider Controls - horizontal & vertical scrollbar dynamically inserts an integer in a form field textbox
    Four examples of using the Integer Slider Controls to perform form field calculations
    Plus twelve examples of actual working forms that are currently in use by others

Using Windows Media Player examples

  • Cross-browser media player with playlist, IE and FF tested for .mp3 and .wma files
  • Cross-browser media player with playlist for video files
  • Play five second audio clip before redirect
  • Audio Jukebox with random playlist
  • Audio Jukebox
  • Changing Background sound source
  • Click image to play audio file
  • Text link plays media file
  • Onload plays file
  • Onload plays playlist
  • Onload continous play playlist
  • Play once per visit
  • Random audio clip onload, no repeat
  • Random audio clip onload, then continous, no repeat
  • Random audio clip via button, no repeat
  • Random audio clip onload, select list contains all available media
  • Redirect on Media Player stop
  • Resize Media Player on stop
  • Rollover and onclick play audio file
  • Rollover plays audio file
  • Select list embeds media file
  • Video Jukebox, hidden controls
  • Video Jukebox
  • Popup Video Jukebox
  • Using Media Player with frames, two examples

The LeBron Effect: Kasich WINNER. Strickland & ODP, Not So Much

The sun will come up tomorrow but for now, more bad news for Ohio…

LeBron James, known as King James (perhaps in his own mind as Ohioans by and large do not think so now), announced last night he is leaving the Cleveland Cavaliers to play basketball for the Miami Heat.

There is no doubt that the news media’s non-stop coverage pulled me in (as I do not follow NBA), but my ears really perked up when Ohio Democrat Governor Ted Strickland and his campaign team added fuel to the LeBron-fire.   Governor Strickland (and Democrat Senator Sherrod Brown)  even sang a “We are LeBron” verse in a “We are the World” spoof begging LeBron to stay in Cleveland!  The Ohio Democrat Party also jumped into the LeBron frenzy by creating a website complete with a silly Kasich-bashing YouTube video.

I’m all for politicians attempting to seem relatable to the masses by keeping in touch with pop culture, but a simple tweet or facebook post will do that.  Ted and the ODP actually put their political weight behind and placed their bets on LeBron choosing to stay in Cleveland in order to help Strickland score political points in his re-election bid. Apparently Strickland and the ODP feel that the role of government and its elected officials is to interfere in a sports-world business contract.  Government is expanding rapidly into numerous areas where it shouldn’t be so I guess they feel that the sports world should be added to the mix.  They are political losers for doing so.

So who wins, politically speaking?

In a strange turn of events, that must have ODP Chairman Chris Redfern scratching his head, John Kasich actually comes out ahead and wins politically for staying out of LeBron-mania!  John Kasich rightly decided not to jump into the LeBron-frenzy because Ohio has lost 400,000 jobs under Governor Ted Strickland and did not want ONE extremely high paying job to take attention away from the economic hurt our state is in.  But now is the time to react!

Ohioans have an incredible tax burden between the high state income tax and the Ohio estate (death) tax! LeBron James, by choosing to play basketball in Florida, has saved himself millions due to Florida not having a state income tax.  Business & Media Institute reports that LeBron saves himself $5.69 million in Ohio income taxes based on a $96 million contract by leaving Ohio and the Cavs.  The numbers only go up from there if LeBron had decided to play basketball in New York or New Jersey!  LeBron could pay at least $5 million in taxes in Ohio OR he could go play in a state that won’t charge LeBron state income tax on his quest to become a billionaire athlete?  Easy call for LeBron to make even though he says it isn’t about the money.

My advice is for John Kasich to start driving north on I-71 immediately.  I hope Kasich’s team is scheduling a press conference outside of Quicken Loans Arena ASAP. Kasich can start talking about the negative economic impact LeBron’s decision to Cleveland and Ohio.  Doing this would give him the opportunity and press coverage needed to connect with Cleveland residents who may not know who John Kasich is, by using a very real and relatable example to explain the positive effect lower taxes/no state income tax would have on Ohio.  This will allow Kasich to turn around Strickland and the ODP’s attacks by relating to Ohioans’ pain over LeBron’s choice, increasing Kasich’s name ID, promoting fiscally conservative principles, and gaining needed votes for November!

400,000 jobs lost under Ted Strickland’s failed leadership is awful but right now in Cleveland, finding out it is 400,001 jobs now that LeBron is leaving, is a sucker-punch to the gut and Ohio’s economy…

How the West (and the Rest) Can Be Won: Palin-Johnson ’12

Beginning in 1956 and until his death in 1972, the late National Review editor Frank Meyer argued for conservative fusionism, the idea that libertarians and traditionalists should unite under a small government agenda. This idea was reintroduced to the conservative movement by journalist Ryan Sager in his 2006 book, The Elephant in the Room: Evangelicals, Libertarians, and the Battle to Control the Republican Party. Sager argues that the only way to avoid ideological chaos and electoral defeat (especially in Western states) is for both wings of the conservative movement to once again adopt the principle of fusionism.

Tea Party victories indicate there will be a return to fusionism for Republicans this year. Yet looking ahead to 2012, we see that at least three big government Republicans may be in the running for the GOP presidential nomination: former Massachusetts Gov. Mitt Romney, former Arkansas Gov. Mike Huckabee, and former Pennsylvania Sen. Rick Santorum.

If recent history has taught us anything, it is that Republican presidential candidates fail when they embrace big government. If we’re going to succeed in 2012, the two wings of the conservative movement must unite behind a Republican presidential ticket that will present an actual contrast to President Obama.

Former New Mexico Gov. Gary Johnson
Libertarians would very much like the head of the ticket to be one of their own. Texas Congressman Ron Paul is undoubtedly the libertarian favorite. Unfortunately, Paul is viewed as an unserious candidate by many conservatives because of his noninterventionist views and hostility toward Israel. Paul himself seems to realize this and has indicated that he may not even run in 2012. Instead, he has floated the name of former New Mexico Gov. Gary Johnson as the next libertarian presidential standard-bearer.

I have blogged about Johnson before, and he is impressive. As the two-term governor of New Mexico, he vetoed 750 bills in the name of fiscal restraint. His biography is inspiring, as well. Should he choose to run in 2012, he would likely be a more serious candidate than Congressman Paul insofar as Johnson does not seem, well, kooky. Yet, while less extreme than Paul, Johnson’s positions on some of the same issues that have plagued Paul may raise too many questions for conservatives. It may be that Johnson is just a bit too small government, particularly for social conservatives who became accustomed to Bush administration pandering.

Judicial Activism Will Renew Push for Marriage Protection Amendment

In 1993, the Hawaii Supreme Court ruled in Baehr v. Miike that the state would have to demonstrate a compelling interest in order to continue its ban on same-sex marriages and sent the issue back to trial court. In 1996, the trial court ruled that the state could not show such a compelling interest and effectively expanded legal marriage to same-sex couples. That same year and largely in response to the Hawaii judicial decision, Congress passed the Defense of Marriage Act (DOMA) with overwhelming bipartisan support and it was signed into law by Democratic President Bill Clinton. DOMA guaranteed that states would not have to recognize other states’ same-sex unions under the Constitution’s full faith and credit clause and defined marriage as a union between one man and one woman at the federal level. In 1998, voters in Hawaii amended their state constitution to once again prohibit same-sex marriage.

Scott Brown is Not a RINO

Some in the Tea Party movement are angry at Republican Massachusetts Sen. Scott Brown and are thinking about abandoning their support for Brown in the likely event that he seeks reelection in 2012. Tea Partiers are upset that Brown, along with Republican Maine Sens. Olympia Snowe and Susan Collins, is supporting Democratic financial reform legislation that will come up for a vote in the U.S. Senate this week. This is not the first time that Brown’s reach across the aisle has been perceived as a betrayal by some Tea Partiers.

While the financial overhaul bill is, in fact, a bad piece of legislation, Tea Partiers need to take a step back, take a deep breath, and take a look at the facts. While Brown has occasionally voted with Democrats, he is by no means a RINO and he was unquestionably a better choice than his special election opponent, Massachusetts Attorney General Martha Coakley.

Armenian-born Manny Gamburyan

began his training in judo shortly after his family emigrated to the United States. He was a student at Gokor Chivichyan’s Hayastan Academy, and as a competitor, won ten junior nationals and one junior Olympics. He also competed with the 2000 judo junior world team, and is known among the fighting community as “The Anvil.” He is also an avid follower of the UEFA and English Premier League. He was a cast member of the Ultimate Fighter season 5 television series who moved on to the UFC and has since joined the WEC.

Judo Accomplishments:

  *  2nd Dan Black Belt
  *  7 time Jr. National Champion
  *  1 time Jr. Olympics Champion
  *  2 time Judo Male of the Year
  *  2 time International Champion
  *  Member of the 2000 Jr. World Team


Manny Joins WEC Featherweights
After a disappointing split decision loss to Thiago Tavares at UFC 94, “The Ultimate Fighter” 5 runner-up Manny Gamburyan confirmed his drop to the featherweight division from his previous home at lightweight. I don’t know if the cut is going to be hard or easy – I haven’t made 145 in almost 10 years – but I’m going to do it in a good way,” he told MMAWeekly.com on Wednesday. “I’m going to put together a beautiful training (camp).”
Last summer, Gamburyan said UFC co-owners Frank and Lorenzo Fertitta wanted him to make the leap to the WEC’s marquee division after taking on Rob Emerson at UFC 87. But Gamburyan lost, and revised the plan. He would defeat Tavares, challenge two fighters he felt he had unfinished business with (likely Nate Diaz and Sean Sherk), and cut the weight. The decision to move the 27-year-old HyeFighter was made shortly after the Jan. 31 fight against Tavares.

Gamburyan plans on fighting as a lightweight again, but there are plenty of opportunities in the WEC. “There are a lot of good guys at 145 also,” he said. “Mike Brown, Leonard Garcia, Urijah Faber, Jens Pulver. But I think my ability to drop to 145 – I’m going to be a lot stronger, and quicker. At 155, my technique is my advantage, because the day I’m fighting, I’m 160, 162. The guys are outweighing me by at least 20 pounds every fight, so I don’t think that’s fair.” Gamburyan does not have a date for his WEC debut, but expects to fight in May or June, depending on the promotion’s schedule. “I’ve never been this excited in my life,” he said.