View Full Version : AJAX Tutorial & Example

04-12-2005, 04:59 PM
Made this yesterday:

Javascript autocomlpete (MySQL based): http://bnovc.com/ex/autocomplete

Short Tutorial: http://bnovc.com/site/?page=home&comment=23

04-12-2005, 05:45 PM
You really need to get rid of your little IE thing, If you thing that Ajax does not work with IE.....nevermind...


04-12-2005, 08:50 PM
The "AJAX thing" works perfectly in IE.

The ban stands. Use an up to date browser.

04-12-2005, 09:02 PM
Thanks for the good laugh...

And next thing you are going to tell me is that Ajax was invented by Mozilla and IE copied them?


04-12-2005, 09:04 PM
Don't think I ever claimed that.

Do you seriously believe IE is better? Now that's a laugh. Learn CSS.

04-12-2005, 09:05 PM
lol .. it is pretty ironic to demonstrate a technology that MS invented and then ban MS browsers from looking at it ...

04-12-2005, 09:06 PM
I suppose so.

I was more trying to ban IE from my site originally before posting this.

Microsoft invented quite a few things, but that doesn't mean they currently use them the most appropriately.

04-12-2005, 09:07 PM
Sure, and they don't .. but which browser is better is beside the point, it's self-defeating to make web applications that don't work in IE, because IE is what most people use.

04-12-2005, 09:12 PM
I don't see how that is self-defeating, it promotes standard compliance and use of new technology. I prefer to be optimistic about future web applications and not dwell on IE's flaws.

04-12-2005, 09:22 PM
lol .. it is pretty ironic to demonstrate a technology that MS invented and then ban MS browsers from looking at it ...

I am glad someone saw my point there....

Over 10 years ago I used to ban Netscape people from my site since I was a hardcore IE programmer. I later learned how to do cross browser scripting and wow.

Yes complainace is a pain in the rear and makes our lives harder. If you get a job in the real world, your company site can not be limited to Mozilla or they will miss out on 80 to 90% of the people surfing the net. Say bye-bye to profits and your job!

When people block browsers it tends to say to me I am lazy to make everything work! Feel free to stand on your platform and block me, one less hit to your site.

Also please do not act like I know nothing about programming. I do it for a living, written articles, written a book that is out on the shelves, and I am currently writing a book on Ajax. I have a resource section in my Ajax book. I was going to look at your site and maybe add it, but not any more. Guess you do not need the traffic.


04-12-2005, 10:09 PM
Well ... firstly, let's keep this all friendly, cos it could easily go the wrong way :)

I think the crux is that we should be wary of falling into a kind of "browser facism" - the very essence of accessibility is access to everyone - and that includes people who choose to use IE. You think they're wrong, I think they're wrong - we all think that - but that's not the point. If you block IE from your site then really that's no different from MS's behavior in forcing IE's hegemony in the first place.

04-12-2005, 10:19 PM
I don't think that you can consider that an empirical example. Obviously not everyone agrees that IE is wrong because the user two posts above claims to be writing a book about web development but is using IE. I hope that doesn't add to the clutter of incorrect books already in existance.

And since everyone seems to attempt critical comments, for my job I do allow Internet Explorer on all websites and make them work perfectly in IE 5+, NS, Opera, Mozilla, Links, Links, etc. I don't feel like doing that for personal projects. There are basically very few reasons someone would use IE. The most common reason is ignorance. I understand that it is useful to test in IE and sometimes IE is necessary for poorly made websites. However, generally speaking, IE is flawed and causes more developers to pander to it. I want this to stop, and I want to be able to use new technology. (and yes some people bog their FF down with extensions, so they use IE for less ram consumption)

I'm fully aware of how many clients IE has and fully don't care.

04-13-2005, 12:03 AM
It seems to me that you're making a lot of assumptions and generalisations - to assume that ignorance is the major reason for people using IE is to deny the possibility of people out there who choose to use IE even though they understand the whole story; people who [heaven forfend] prefer IE to Firefox.

These people exist, in who-knows what numbers since there's no effective way to find out; and by excluding them you're being deliberately discriminatory, for the sake of nothing but an ideological point of view.

I guess that's your choice, but I can't really see why you'd want to do that.

04-13-2005, 12:07 AM
If one of these people who chooses IE over Firefox find me and explains why, I'd be glad to have a discussion with them and possibly unban IE. Most likely I'll allow IE7 anyways.

04-13-2005, 12:08 AM
My brother prefers IE over Firefox - he just doesn't like Firefox, and does like IE - and he's a computer programmer with more than 2 decades experience.

Anyway you can do what you want ... I just think it's silly, that's all :)

04-13-2005, 12:24 AM
I haven't seen or experienced anything at all persuasive enough (principally or technically) to stop using IE. It's a great app, in my opinion: I enjoy its powerful capabilities (many of which remain ahead of their time); browsing is far beyond non-problematic, as a result. :thumbsup:

04-13-2005, 02:47 AM
An innocent observation: after IE crashing too much and everyone talking about FF, I now have it and have been using it for a little while. The features that it has are very good- anything from the tab idea, to the automatic RSS bookmarking/updating, to the color coded code page in 'view source' (or whatever its being called by them)... It simply looks like it was made with the thought of a user in mind.

There are several small things that I believe would have been better had they been taken directly from IE, but they arent really major.

HOWEVER- and this is a pretty large however- after using it for a while and going to various sites, I was starting to be forced at accepting that many sites will simply look a little strange, being that they were apparently not designed for use in it. While this can be somewhat ignored, I then found that many sites actually failed to work in their main capacities! (For example, a site that uses a Windows Media plugin for its main functions, simply does not work- blank window!) While I'm sure that most if not all of the issues could be resolved with the proper plugins and setup, however the hassle of this, together with the fact (and this is the difficult part-) that most sites are simply not designed for use with it, make one seriously have to consider its worthiness for constant usage.

Of course this last issue, as is the focus of the thread at the moment, is the most difficult to juggle: its a catch 22- if you look at it objectively, the browser is simply an extra headache when doing a lot of browsing to many different kinds of sites. However on the other hand, it is precisely if you are to use the browser and others like you join into this insistance, that sites will be forced to include a version (or modify the code) that will be designed for this browser. Thus, the question boils down to this: Are you dedicated enough and do you believe in FF so much as to sacrifice part of your surfing sanity for a period of probably over 2 years, before everything is pretty much ironed out?

The bottom line I think is that it is very good and healthy for MS to have such competition. I believe that this will force them to get down from the mountain and try and produce a browser that has its users in mind, first and foremost. However I cannot see using this browser at the moment as a main tool for viewing online pages, because its downside is simply not worth it.

My two cents.

But I'm sure all will be good.

04-13-2005, 03:12 AM
I prefer IE for one reason, the ability to EASILY create scripts that will work on any page through the use of the IE proprietary external.menuArguments object and the registry.

In FF I can do similar things with fire Fox extensions but it takes a whole lot more to pull it off.

With IE I have my browser tricked out to work with several web applications and it is possible because IE lets me EASILY add scripts to the right click menu which allow me to manipulate any web page in any way I like.

Currently this is the only reason I still use IE heavily.

04-13-2005, 06:38 PM
I prefer IE for one reason, the ability to EASILY create scripts that will work on any page through the use of the IE proprietary external.menuArguments object and the registry.

In FF I can do similar things with fire Fox extensions but it takes a whole lot more to pull it off.
Have you seen Greasemonkey - http://greasemonkey.mozdev.org/ -- it allows you to associate individual scripts (called "userscripts") with one, a number of, or all websites.

There's also a port for GM to IE in the works, cutely-titled GreasemonkIE -- http://www.daishar.com/blog/archives/2005/03/greasemonkey_fo.html

And Opera 8 beta 3 has similar capability -- http://my.opera.com/hallvors/journal/44

04-13-2005, 07:17 PM
Sounds cool I will have to check it out.

Harry Armadillo
04-13-2005, 07:19 PM
Not that I want to see the topic drift further... I'm very fond of Proxomitron (http://www.proxomitron.info/). Insert new scripts, kill ads, and otherwise modify pages on the fly.

04-27-2005, 10:01 PM
IT (I Think), is the phrase we are all looking for.

P.S.: Just added "agnosticity" to the dictionary!