Archive

Posts Tagged ‘AJAX’

Shoutcast WebApp Crack-ified

December 31st, 2008

Crack-ified implying the old version took some crack and now it is this new version - just to clarify.

i can’t seem to get the Shoutcast monkey off my back. I keep trying to top my old web management apps - but a programmer is never satisfied.  Anyway I shitted this video out during some CPU intensive stuff and it is a bit sketchy - but you can see what I am up to.  This new version is going to rock your pants!

If you want this app when it is done and the bugs are squashed, I am selling it for 50 bucks - let me know if you want it.

Programming , , , ,

Asterisk - Call Extensions from the Web

November 26th, 2008

 

This app was so much fun to write.  It allows you to call any contact in your database form the web and take notes on each call, I have been using it like a fiend.  I know the video is horrible quality but it gives you the general idea.  If you want a copy for yourself leave a request in the comments. I have sent a copy to Ward Mundy at Nerd Vittles and am awaiting his reply., let me know what you think!

Asterisk, PHP, Programming , , ,

Internet Radio DJ Software

October 14th, 2008

Late last night I was inspired to write a super fun app that allows anyone to host their own ShoutCast radio station using a simple web interface.

I created a video to demonstrate its capabilities and I hope to have even more powerful features inculded soon.

PHP, Programming, Things To Do , ,

Buildr - A Graphical CSS Tool

September 23rd, 2008

After playing with SquareSpace I was inspired to begin development on my own jQuery driven WYSIWYG CSS Tool.  It is in its infant stages however I think this would be a wicked addition to Launchr though so I will continue to play with it in my spare time until I get i right…

I made a quick screencast last week to show a friend what it can do, but since you are all friends I thought maybe I should show you all as well.  Like I said it is a new born, but it will grow!  I have the help of a fellow developer if he can ever find the time away from C++ and ASP.

Click here to watch out the demo video (quicktime .mov).

Hopefully we will have an open version available to you guys to experiment with within the next few weeks.

Programming , ,

Why Is Everything a “Hack” With Javascript?

June 21st, 2008

As I have stated in the past, I hate JavaScript.  It looks messy and feels very sloppy to code.  After relentlessly studying JQuery for the past several weeks I have come to the conclusion that everything in JavaScript is a Hack.

For example :

If you have ever used Wordpress, you are farmilliar with adding “Tags” to posts to help categorize them.  Sometimes while writing a post you have a great idea for a tag, so you scroll down and add it, then continue to write your post without having to wait for the page to reload (delimiting the chance of losing your content).

This is made possible with a methodology of client side scripting called “AJAX”.  Basically it allows you to send information to the server (Asynchronously) so no data is lost - great.

Now with all of the tools available to us developers today such as Scriptaculous and JQuery - this process is still a nightmare.  I am currently working on an shopping cart application for a client and tags must be added to products for indexing and other cool stuff.

Time For a Hack

I create the form and successfully send the post data via ajax, a yellow bar flashes and the new data is appended to the shiny new div. Fortunately this only took me three hours to hack together.

Now the user wants to remove a tag? What if he accidentally misspelled the tag or just doesn’t like it any more.

Time For a Hack

Make a button or link and send the post values once again.  So everything is working great but all of a sudden I can not delete a newly added tag, when I click it - it does nothing.

More Hacking! The new tag was appended to the tags div and I can delete any other pre-existing tags but this new tag just will not go away.

Unfortunately this type of issue is difficult to find any help for considering the fact that you can’t type “appended button will not delete” in Google and expect any decent results.

I am going to smash my face against my keyboard for a couple more hours …or just start drinking.

Oh heres the code that took me 7 hours to write, it still doesn’t work properly…

$(function() {

	$("#tagForm").submit(function(){
		var product_id;
		var tag;
		product_id = $("input[@name=product_id]").val();
		tag = $("input[@name=tag]").val();

		$.post("/products/addtag",{
			product_id: product_id,
			tag: tag,
		},
		function(post) {
			$('#tags').highlightFade('lightyellow');
			$('#tags').append(" Delete "+tag+" ");
		});
		return false;
	});

	$('#tags > a').click(function() {
		$(this).fadeOut('slow');
		$.post("/products/deletetag",{
			tag_id: (this.id),
		});
		return false;
	});

})

Uncategorized ,