If an El Reg hack can write an iPhone application then anyone can, so we thought we'd have a go and pass on our experience in the hope that others can build something more useful. In proper Web 2.0 fashion we decided to create an application which would achieve nothing and have no commercial potential. Therefore, our application …
Not sure who u will piss off more
Java or Mac fanboi's, i think i can hear their foot steps coming in the distance, no wait its my team lead better start to look busy....
Ah! A blast from the past
In the spirit of the "retro" PET article, finally a code listing that we can type somewhere, and then wonder why it doesn't work. Do we get a "corrections" section in next month's issue?
This removes all references of the iphone from el reg - what's useless about that?
Not just Safari
This also works fine using Opera. (It works on 9.24 under Linux anyway). I tried it yesterday to see what would happen and was most delighted when all mentions of the iPhone changed to 'crock of shite'...
A+ on Java Script...
F on HTML. WTF did you do? The page is a mess. Youve removed the %ages somehow! It may be somthing else, but I cant be botherd to surch your sorce code. It is hell to read.
Works on Opera under Windows too, although (surprise surprise) not IE7 (although I'm sure you could persuade MS to add functionality in if they know it's being used to have a dig at Apple). Nice to see it reported as the "SHiTEphone" after running the app :-)
Bill. Stick to being a journalist. You're clearly not a developer. Mind you, based on this article, I'm not sure which you are worse at
Worked on the N95
It worked well on my N95, and I was tickled with my preferred moniker of sack'o'shite... :)
IIRC, you should be able to address the back button issue by altering the window.history Array, as for the onLoad issue, search for the </body> and inject a <script>parentFrame.doOnLoad()</script>.
XMLHttpRequest is a cross-browser standard
"XMLHttpRequest doesn't exist anywhere else"
You know, a simple Google search would have saved you from writing obvious nonsense.
Works on FF too although the layout isn't quite right.
You are most correct my pedantic friend and I stand corrected :) *tongue in check humour, no offence intended* :)
Though they are close enough for me not to particularily like either. Just personal preference though, more a desktop programmer than web, in the immortal words of BG 'it will never catch on' :).
Well, your lovely app seems to work with Safari on a Mac, but it completely fails in Firefox. Although why you'd write applications for the iGorilla is beyond me.
And how is this an iPhone app?
Did the definition of an application change when the IT press monikered web 2.0?
Not that I'm being critical of this little "hack" (again old school reference...)...
I'm sure I'm not missing the point here when I say:
$change_to = $_GET['change_to'];
$fp = fopen([document]);
$document = fread($fp , 10000000);
echo preg_replace("\biphone\b/i" , $change_to , $document);
... and you don't have to have bloody iPhone either.
Re: Any 'Developer' Jobs going at el reg
James, you seemed to have skipped over the first paragraph.
Bill Ray is a hack, not a hacker. Our software developers will arm wrestle you any day.
Any 'Developer' Jobs going at el reg
Hmm, doesn't know anything about XMLHttpRequest
Can't write a valid HTML page.
Uses 'old school' event handling
How much do people on this site get paid to write 'web apps'? I can do a lot better than this and I'm pretty woeful :-) Please let me know how much my salary will be
"it is clear that the author is unwilling or incapable of learning what is in-fact a very powerful language."
Instead of dying as it should have, some wise-crack decided to "mate" the damn thing with Web Services, which were NEVER meant to be used by end-users, but instead for B2B EDI transactions, and create the AJAX "technology". Urggggh...
I prefer server-side Java (J2EE) or even client-side, as it'll run independently of your browser or OS.
> I prefer server-side Java (J2EE) or even client-side, as it'll run independently of your browser or OS.
Right, because I really want to have to load an external VM and suck down huge quantities of memory and CPU cycles just to have a little interactivity on my web forms. On a mobile device even. That'll be sweet.
@By Daniel B.
The app can't even work consistently across versions of Safari, let alone play nice with IE and Opera!
Let me emphasise something an earlier commenter mentioned.
Don't not use JQuery.
Sounds to me like your app does the sort of thing GreaseMonkey is very good at. If you could turn your app into a full GreaseMonkey thing, it might actually become popular.
Wake me when it's all over ...
I know I am going to get flamed for this but...
...I don't care.
Your article was, quite frankly, poor. You clearly did NOT research your subject matter before posting, somthing which is becomming more and more prevelant across dead reg.
Once again a register posting that could have been somthing usefull, let down by lazy 'reporters' who have about as much IT knowledge as a cabbage...sort it out or close down.
what has this gota do with an iphone ???????
This has as much to do with an iphone as it does Windows CE, WML etc.
But then is that meant to be web-2.0 ironic ???
Here's a useful resource for anyone that mistakenly thought this article would be useful for anything other than starting fires: http://groupaware.mobi/iphone/#_Samples
@M Gumby and anon.
As for XmlHttpRequest, on paper it's standardized. In practice I keep reading about people having to throw in hacks to make it work properly on various browsers.
Works in Konqueror
which might not be too much of a suprise.
The buttons in the bottom frame are a bit over sized, and the couple of second delay while nothing happens.
- Review Samsung Galaxy Note 8: Proof the pen is mightier?
- Nuke plants to rely on PDP-11 code UNTIL 2050!
- Spin doctors brazenly fiddle with tiny bits in front of the neighbours
- Game Theory Out with a bang: The Last of Us lets PS3 exit with head held high
- That Microsoft-Nokia merger you've been predicting? It's no go