Website Form Acrobatics

form-acrobatics1 Occasionally a client will ask for something absurd…

“I want this to submit the file, only if the rest of this goes through smoothly.” – Client 1

Taking this excerpt I would typically submit the file and just not move it out of the temp directory, so it would effectively not be available to the user and the web server would drop the file from its history without any real impact visible to the user…


Occasionally a client will ask for something absurd…

“There’s no use submitting the file if there isn’t already a ticket created. Files can be pretty large…” – Client 2

After going back and forth, it comes out that there is flow to worry about, and that the system is going to be a pain. We turned to AJAX and did some acrobatics, but the end result looks something like this…

$("form:first").post('newReq.php', {...},

Currently I’ve been reviving my love for jQuery and making my days so much more realistic. I have always found the library to be superior to most everything else in the world. There is something fantastic about being able to just let my hair down and not need to bother worrying about how to handle things in raw AJAX/JS/Multiple forms or worse yet – having to tell a client i cant accomplish something.

What kind of crime is that you may ask – Its a terrible one.

Languages Span!

I have often been caught in the cross fire of the ongoing and awfully brutal and emotional language wars. I am a C programmer by choice and a PHP/Perl Developer by trade, so I get some of the most heated and misfortunate of the angry or emotionally charged responses from people who just do not know a god damned thing about what they are talking about. Scarier is when I hear absurdities from people who actually do know something about their topic. For some reason they want to stick their toes into my pool and do not like the temperature of the water so they go into a tirade about how I should change the color of the water with some dye and install a heater, oh and the chlorine content is too low or too high and algae will form; who knows, maybe you should add this algae snake as well to keep it from getting to the bottom! I apologize for the extended analogy here but it stands. It is important that Comp Sci. and Developers alike learn at least one thing about languages before they enter the market and end up coding themselves into a corner – There is no such thing as a language level, Languages Span!

Continue reading “Languages Span!”

This past weekend!

This past weekend was quite hectic. I went hiking, running, went to the mall, and… built out the basis of the new Atheist Nation Chat Engine. This project is my introductory project in use with JQuery publicly and I must say its been fun. The current chat engine has a few more features, but they are slowly being incorporated into the system and I think that it should be usable as a replacement in a couple days (assuming my workload doesn’t skyrocket again).

jQuery 1.1.3: 800%+ Faster, still 20KB

jQuery 1.1.3: 800%+ Faster, still 20KBAfter many months of testing, developing, and more testing, we have a very solid release available for download. It comes with roughly 80+ fixed bugs and a handful of enhancements for good measure. [Digg – Programming]

You guys should really check this tool out, if you are interested in AJAX. This as well as Prototype. If you are interested in learning how the DOM and AJAX work together I have found good reading over at the IBM’s Mastering Ajax Series. I think its probably the best read out there for AJAX. Although they don’t post updates often.