How-To On Ajax Code To Show Movies and Slide Shows
An anonymous reader writes "Sites like Flikr and YouTube show just the tip of the full potential for media on the Web. An IBM DeveloperWorks article provides some easy implementations of video and image browsing that you can use in your own project. Learn how to combine media with technologies such as PHP and Ajax to create a compelling experience. All Sample code is made available, and if you're into Mashups the site's Mashup resource space should have everything you need to create a Mashup of your own."
Ah, I get it... I thought the headline was saying something like this:
"There will be a how-to on Ajax code. The how-to will show movies and slide shows."
It was like, that's nice... a well-made how-to I guess... But this is a how-to that tells you how to write AJAX code, such that said AJAX code will be able to show movies and slide shows...
Bow-ties are cool.
I suppose the 12 year olds creating Geocities pages have grown up and want to incorporate all the extravagant flash into their more grown up web pages.
We really need to get back to simple, clean cut pages that display the information and resources that your site is offering. The trend towards flashier
page is rapidly decreasing the utility of the web while increasing overhead and security issues. Simple can be beautiful, and it is almost always useful.
_____
Thank you.
If everyone gets a full house on their Buzzword Bingo cards from the summary alone, we're going to have to divide up the prize again. Now to cut the coffee cake into 100,000 equal slices. Don't cut your fingers on the crumbs...
It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
For those of you that think that Ajax is the new next generation platform, let's just things in prospective.
Ajax is one single function: XMLHttpRequest, a extension to the browser DOM invented by MS. In other words its a propierty hack on the browser API, nothing more.
There's an easier way that's more accessible - a download link.
"Mashup" needs to be stricken from use for all of eternity. The only word or phrase I'm sick of more than "Mashup" is "Web 2.0".
"Time is nothing; timing is everything."
Damn kids.
Quack, quack.
Really... just... stop...
And there's no need to capitalise it.
Deleted
Anybody know how to get a font menu on a web page? Besides using the M$haft extenstions, of course.
Not knowing how to _safely_ get a font menu appropriate for the user's machine is one reason I find myself trying to use Java instead of Javascript.
With Javascript, the browser presents a runtime which includes a "pretty decent" default event-handling and printing environment, whereas with Java I find myself re-building the event-handling from something that is anything but scratch, and a bit contrary to my expectations. I think my frustrations with printing have something to do with my not really understanding the event handling, and the logic behind the various traditional methods of assembling JComponents.
Anyway, anybody know how to assemble a useful font menu?
The first thing a site with unnecessary video or Flash compels me to do is leave.
I'm surprised at the number of geezers who really think that using JavaScript or Flash on a web page is bad. I work at a web company, and there are some "web 1.0" holdouts there who are totally lost with client-side programming. They've been doing Cold Fusion, Perl, C++, and Java all their lives and think that a plain text-based website is awesome. They also believe that UI guys don't know shit about programming. Well guess what - I'm a UI guy, and I make as much if not more money than the average server-side programmer or "software developer." Why? Because what I do is all about first impressions. Think about it: is a plain text website really good enough for a Fortune 500 company? It might have been good for your BBS in 1991, but that was then and this is now. Huge reputations are at stake, and they are not going to be trusted to people who are in denial about the fact that the web industry is changing.
apples and oranges.
.NET, you may want to check the color of the cool aid.
it might surprise you that when you're using C# for creating these interactive web pages, that it's just acting as a javascript 'translator' in the sense that you do end up creating and sending javascript to the the client browser. before you dismiss javascript as bloated and insecure, and attribute all the supha cool interactivity to
and never, ever, suggest JSP or C# as a replacement for javascript when talking about client (browser) programmability. might help in getting people to take you seriously.
I used to be quite happy using iframes, and a bit of perl server side to generate the requested content. It saved having to do a complete page reload and allowed multiple different frames to change according to what was requested.
Then there were exploits based around iframes and they became a dirty word, although the exploit was mainly one of a malicious phishing style, where the site appeared to be 1 thing but the content was coming from elsewhere. As long as all the content is coming from the same server, I don't see a problem with them.
So, why should I use ajax ?
Just the bingo game part of the page. Besides, most browsers, the average user doesn't know where to get at the font settings, and the settings are really designed more as preferences than for trying several different fonts to see which looks like it will print up best.
Here's an improved slide show with nicer transitions and other features:
http://www.scriptio.us/slides/
The Ajax-based library is open source, and easier and cheaper than Flash development. Since you don't need Flash, it also works on iPhones/iPodTouch and is not thwarted by Flash-blockers.
http://www.scriptio.us/
Disclaimer: I wrote it and put this library in the public domain.
Matt Clark
When my boss hears about Ajax (which he probably should by now) it will be the Web 2.0 thing all over again. Management-people running around, setting things on fire and screaming "We need to become Ajax-compliant!".
I liken ajax to any other browser markup... it's nothing fancier than knowing how to use a <div> tag or knowing how to create new DOM elements dynamically. We don't see articles about how to use divs, so why do we keep getting articles on how to use XMLHttpRequest? XHR is just another tool we can use; there is no big mystery or learning curve to using it. It's simple, has limited functionality, and takes -- at maximum -- a couple of hours to master.
Learn to use XMLHttpRequest. Learn how to manipulate the DOM with JavaScript. That's all there is to it. If you can't figure out how to put together your own slideshow without having to refer to others' markup and code, you obviously haven't got the slightest clue as to what you're doing. Perhaps saying it so bluntly is somewhat rude, but it really is true... XHR is _not_ a difficult object to manipulate.
It's bad enough that people depend on the prototype library as their crutch to use JS and XHR. For Internet Explorer, prototype doesn't even invoke the proper ActiveX objects (for anyone interested, read up from the source). I mean come on, prototype doesn't even support adding a timeout callback to the XHRequest.
As for the linked article itself, the writer writes non-validating HTML (what's with the <script> tags sans attributes?), and his PHP is worse than atrocious (not to mention he's not outputting an opening <?xml ?>). Whatever happened to posting quality work on /.?
He ends the article with "If it works for you, please let me know". Typically before writing and publishing an article, you should test that your code is going to work on some other configurations than your own. Rather than using the article, and subsequent slashdotting as a test bed for your crap.