Sponsored by newegg
Ready. Set. Shop view!
newegg.com - Newegg.com Black Friday Sale starting 11/25 3PM PST. No Lines, No Crowds, Click and Save.
38 Comments
- .Steven, on 10/12/2007, -0/+2At least he didn't say Web-two-point-smooh in his entry.
- nthitz, on 10/12/2007, -0/+1Lalalalame, as others have said, doesn't work in Safari, but that's not the worst! This isn't AJAX! This technique has been around for years. AJAX was used to prevent the use of iframes. This is the worst thing ever.
- vann, on 10/12/2007, -0/+1Or just use an AJAX library like prototype. If you're also using Rails then submitting a form asynchronously is as simple as replacing form_tag with form_remote_tag.
- UpBeetRob, on 10/12/2007, -0/+0someone needs to coin the term PORK
This method is pretty old / typical, why is it on the front page, because it has AJAX in the title? The only reason you'd need to do submittion through an iframe is if you're handling file uploads or you're just too lazy to write a bunch of javascript. - harisund, on 10/12/2007, -0/+0Yes ,we seem to be seeing a lot of this AJAX thing now that it has become quite stale. Every guy and his dog seems to have come up with an AJAXified version of getting things done.
It is high time the various styles were put together and proper applications start cropping up. - senzafine, on 10/12/2007, -0/+0Digg++ just because it says P.O.R.K. ... (php on rails kinda)
- nloui, on 10/12/2007, -0/+0yeah not working so well with my Safari...
- SchizoDuckie, on 10/12/2007, -0/+0Is anybody that's complaining about that this is the wrong way, iframes suck, it's not ajax, blahdiblah, aware that google and microsoft use the same technique in parts of google maps and Atlas?
I still haven't seen any real founded arguments about why this should be so bad in comparisson to 20kb of code. - CaughtThinking, on 10/12/2007, -0/+0"Digg++ just because it says P.O.R.K. ... (php on rails kinda)"
HOLY CRAP SOMEONE GET TIM OREILLY AND BRUCE TATE ON THIS STAT. THEY HAVE SOME WORK TO DO. - hexalite, on 10/12/2007, -0/+0Good point, I suppose you're right. But 90%%!~~~ 90!!! argh! lol
- stilldavid, on 10/12/2007, -0/+0people have been using hidden iframes to load form data for years. Nothing new here.
dugg for the PORK though. - elroy, on 10/12/2007, -0/+0HTML is the XUL of yesteryear.
- ElectricGrandpa, on 10/12/2007, -0/+0"Enough with freaking AJAX. people should stop trying to be like Google. If we are going to make pages load up without "loading" then why not just make a program the user uses instead of the web?"
Because then it wouldn't be on the web. Jeez you're slow. - clokwise, on 10/12/2007, -0/+0Since when was submitting forms using "AJAX" clumsy? I use the prototype.js lib and it's very simple. Here's my code, all of 4 lines (you can replace the method on the last line with one suiting your site better):
var Zurl = $(formid).getAttribute('action');
var Zmethod = $(formid).getAttribute('method');
var Zpars = Form.serialize(formid);
var myAjax = new Ajax.Request(Zurl, {method: Zmethod, parameters: Zpars, onComplete: okHandler, onFailure: errHandler});
See. No hidden iframes or other nonsense that this guy claims is 'easier'. It looks to me like he didn't understand prototype in the first place and tried to develop his own code hack. oh wait, he uses prototype.lite.js -- WTF? Now I really DO NOT get this article, it's not less complicated, it's MORE complicated. No diggs. - darcybrown, on 10/12/2007, -0/+0@nthitz
so true. this is so old and just wrong in the context of what AJAX is supposed to do. - redguy, on 10/12/2007, -0/+0lol # PORK
- nevries, on 10/12/2007, -0/+0Unusual but working solution, does not depend on ugly hidden ActiveX controls and works in much more browsers because of that. P.O.R.K. is funny indeed.
- looklikecontest, on 10/12/2007, -0/+0Doesn't work in Opera.
- jool, on 10/12/2007, -0/+0Using hidden iframes to do things is fugly. And I don't really see how this improves anything, doesn't make it any less clumsy anyways.
The acronym AJAX must just be a trigger for a behavior programmed into everybodys brain by some secret government agency that makes you move your index finger. It was probably meant for assassinating the leader of some country but when you have a mouse instead of a gun in your hand it makes you digg the story instead. - kevbryant, on 10/12/2007, -0/+0iFrames suck.
- SchizoDuckie, on 10/12/2007, -0/+0I've fixed Opera support. Still can't test safari though...
- inactive, on 10/12/2007, -1/+1Yawn.
- pjvdg, on 10/12/2007, -0/+0Yet another buzz-word story... no digg
- The_Decryptor, on 10/12/2007, -0/+0Doesn't work in Safari (get a new window pop-up, with the return values in it)
- rYno, on 10/12/2007, -0/+0As if iFrames were'nt bad enough - now we're hiding them?
When are people going to understand they suck? come on now - bsoltani, on 10/12/2007, -0/+060% of the time, it works all the time.
- simd, on 10/12/2007, -0/+0"It's about making a web page an application instead of making a huge number of pages."
Absolutely right. Thinking less about the technology and more about a fast and efficient user experience delivered over the web. Serverside validation during data entry used to be a basic requirement of mainframe computing. AJAX isn't new technology, it's about a change of emphasis towards web application design rather than a succession of web pages pretending to be an application.
This still sucks though - prototype makes it really easy without iframes and the problems arising from thm! No digg. - TedCHoward, on 10/12/2007, -0/+0dugg for PORK
- groovepapa, on 10/12/2007, -0/+0I agree with Nthitz - this method has been around forever. But then, so has XMLHttpRequest (XHR). AJAX is more than just Iframes or XHR. It's about making a web page an application instead of making a huge number of pages.
dugg for PORK. - fintan, on 10/12/2007, -0/+0Doesn't work
- gator99, on 10/12/2007, -1/+0If you're not using the asyncronous javascript, it's not ajax. It's time for a new acronym: Iframe Dhthl Inside Of Tables - IDIOT
- REpler, on 10/12/2007, -1/+0n00b!
lol
Can't wait for the transparent .GIFs article that's soon to follow..
"Images are all square.... until now!" - Royal0rleans, on 10/12/2007, -1/+043 diggs and front page?
- hexalite, on 10/12/2007, -2/+1Unfortunately, the header is about the best thing on that tutorial. The rest of the layout sorta falls apart. Oh wait, what? Is it because I'm using IE? Note the footer: "Yeah, i know the stylesheet sucks in IE. get yourself a decent browser!" OHhhhkay buddy. Well, you just lost 90% of the web audience. Good job amateur.
- ihaterobots, on 10/12/2007, -1/+0i think it's great that the topic was so pointless that this thread basically became a browser preference flame war :)
ajax is a pointless term used by amateurs and beginners to describe complicated javascript that professionals got over years ago. *sigh* ask your parents about it kids.
i'm going to flame ajax articles until people realize that javascript is in no way newsworthy. - BigToach, on 10/12/2007, -3/+0retarded
- MalDON, on 10/12/2007, -3/+0Enough with freaking AJAX. people should stop trying to be like Google. If we are going to make pages load up without "loading" then why not just make a program the user uses instead of the web?
- inactive, on 10/12/2007, -3/+0++Digg
---------------------------------
http://ezbuzz.blogspot.com/


What is Digg?