"Murphy was an optimist!"
Let me reach out to the community for a moment. I’m trying to deliver a movie to be played in a web browser. The movie must play in Internet Explorer 6, 7 and 8, Firefox and Safari. The movie sits on a LAMP box. The movie is roughly 35MB windows media (WMV). jQuery is available. The challenge: Deliver the movie to the client without the client impatiently clicking the play button repeatedly (elevator syndrome), reloading the page, or giving up and leaving. This implies some sort of progress bar or loading spinner. I can’t seem to get a loader to work to save my life.
- Various attributes on the object and embed tags
- Using jQuery plugins like jQuery Media plugin and jMedia
- Looked into other players and ruled out Flowplayer and SWFObject2
- Tried getting Ajaxy but the document finishes before the movie completely downloads and the spinner quits too early.
- I’m testing WVX streaming right now but it’s not looking good.
- Some other stuff
The goal is simple: Take a large wmv movie and present a loading indicator until the movie is cached in the user’s browser. This one is giving me a real hard way to go.1 comment so far
The stuff that I’ve been working with today:
- jQuery Plugin: Validation See also: demos
- metadata plugin
- form plugin for AJAX submit
- Mastering Ajax, Part 10: Using JSON for data transfer
I’ve solved it! A week ago started a series of unfortunate events that program progress on my application to a screeching halt. My efforts and work did not quit but every fix seemed to reveal another bizarre issue. But surely a professional programmer could figure all this out in a day rather than a week? No. Problem solving isn’t always that simple. This was akin to hiring a contractor to add a room to the back of the house but in starting to dig his foundations he discovers an old septic tank buried behind the house and in trying to remove it he discovers a cave under that. My problem began with a test when I cleared all my cookies.
On problem set off another. The development server, long overdue for an upgrade, lost its mind but this wasn’t immediately evident to me so I did a line by line inspection of the code searching for the answer to some really whacked out behavior. Eventually I realized the server was shot and moved to another server. After fixing several issues either hidden and discovered in the line by line inspection or caused by experimentation in attempts to fixed the oddities caused by the flaked out server, I eventually discovered the source of the original issue. In short, jQuery’s .filter gets overridden by jQuery’s .listen plugin so it appears.
jQuery has a built-in traversing function called filter() but handlers for events get bound only on the initial rendering of the DOM. If the DOM is modified dynamically, for instance if content is added with AJAX, then the newly added event handlers will not be recognized by filter(). Fortunately, Ariel Flesler stepped up and created a plugin called listen() (use the 1.0.3 version!) which registers the handlers for the matching events and this works for new content added via AJAX or other DOM manipulation. It seems, unless I am misinterpreting something, that listen() overrides filter() so if you have both filter() and listen() on the same page, your filter() events will never fire.add a comment
Your AJAX book recommendations please July 23, 2008 11:38 amPosted by Doug McCaughan in : AJAX, ColdFusion, Programming, Technology
If I was going to buy ONE AJAX reference book to add to my library of dust collecting, quickly antiquated computer references, which AJAX book would you suggest? And by the way, does anyone need a copy of Ben Forta’s ColdFusion Application Construction Kit for version 3 of CF?add a comment
Job Op Pays $240,000 per year July 26, 2007 11:07 amPosted by Doug McCaughan in : AJAX, Programming, Touchy Subjects, Travel, War
If you are a web developer (like me) and know AJAX, then you can get a job paying $240,000 per year.
Training on the application software will begin prior to deployment and will take place in Virginia. Deployment will be period of 6-12 months. A Department of Defense secret clearance within last 24 months. [Source]
Securing Contacts and Jobs October 16, 2006 11:32 amPosted by Doug McCaughan in : AJAX, ColdFusion, Daily Life, MySQL, Programming, Technology
I just put a resume out on this one. Sounds fun!
Duties and Responsibilities:
– Assist in composing web pages and in creating special sections as assigned by the Site coordinator
– Competence creating table-free layouts
– Prototype, develop, and maintain new features and enhancements
– Operates as a leader/lead worker among other staff, shares knowledge or training with subordinates and/or colleagues to benefit the entire department
– Participate in workflow design and analyze existing production and implementation processes in order to insure the overall quality of the sites
– Maintenance and support of existing templates and content production processes
– Perform web development, template writing, testing debugging, documentation, and installation tasks for on-line processes in accordance with industry best practices and specific internal procedures and standards
– Partner with Web-ops to ensure that interactive techniques and technologies translate through to shipping products and services
One of the challenges of working for yourself is you have to shoot at a lot of barns to hit some work. The problem is barns move pretty quick! Sometimes it is just plain difficult to find a barn. Then the barn’s owner looks at you and may not even give you permission to shoot at the barn in the first place much less give you the barn.
Playing low budget developer and sales person at the same time can lead to missed deadlines or living with very little sleep. Finishing a project, then turning on sales mode can lead to dry spells where you wonder how you’ll eat. Ideally, you should be working with a sales person!add a comment
All Things Web 2.0 August 18, 2006 9:19 amPosted by Doug McCaughan in : AJAX, HTML, Programming, Technology, Web 2.0
Are you cleaning up with AJAX? July 28, 2006 10:43 amPosted by Doug McCaughan in : AJAX, Programming, Technology
Regardless, all developers worth their salt should do some dabbling in AJAX. Here is a nice list of 126 examples.5comments AJAX, Programming, Technology
Another AJAX example.add a comment
Ajax Tutorial and Prototype June 26, 2006 1:22 pmPosted by Doug McCaughan in : AJAX, ColdFusion, Daily Life, Programming, Technology
I’ve had Pete Freitag’s Ajax Tutorial and Prototype open for awhile with intent to share. Since I haven’t looked through it yet, I can’t say anthing beyond that. It is written in conjunction with ColdFusion.add a comment