473,545 Members | 2,802 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

My AJAX example...

I am trying to learn AJAX to do some cool stuff over the internet. So,
for practise, I decided to code a small site that simply prints out
quotes from William Shakespeare.


Basically, start typing away and watch the quotes appear. See how many
you can guess!

If this becomes popular, I will add tons more quotes.

Suggestions/Comments welcomed!



Feb 1 '06 #1
5 1485
"cbmeeks" <cb*****@gmail. com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
I am trying to learn AJAX to do some cool stuff over the internet. So,
for practise, I decided to code a small site that simply prints out
quotes from William Shakespeare.


Basically, start typing away and watch the quotes appear. See how many
you can guess!

If this becomes popular, I will add tons more quotes.

Suggestions/Comments welcomed!



I think the Bard would be disappointed in your use of the
word "Quotes" instead of the more formal "Quotations " :)
Feb 1 '06 #2
Hahaha, didn't think of that. :-P


Feb 2 '06 #3
I had a little difficulty following your source code
because it didn't have any whitespace :).

Take a look at my completely documented examples
too, please. Complete code available for download (server side too).
It's a bit more complicated, but it's trying to do more complex

See http://xsdb.sourceforge.net/xFeed.html for documentation.
See http://www.xFeedMe.com for live web page examples.
See http://sourceforge.net/project/showf...group_id=93603 to
[Most of the package bulk consists of example data used in
the example configurations.]

The xFeed example application of the
xsdb package provides an infrastructure which makes it easy to
implement "type ahead suggest" drop down selections matching
against large or small data sets in web pages.

The xFeed type ahead completion functionality
can use a static xml file for small data sets or it can use live
server components provided with the package for any size
data sets.

All software is open source and freely available for use and
modification by anyone. Enjoy! Thanks!
-- Aaron Watters


Sometimes I forsee my son saying "I'd like to
thank the Nobel committee..." and other times
I forsee him saying "Would you like fries with that?"
-- Robin Williams

Feb 8 '06 #4
Cool. Nice work.

Yeah, I usually remove whitespace in production code or when I'm not
trying to explain my code. I mean, I wasn't trying to hide anything, I
just like the way it looks in the IDE...hehehe

Anyway, I updated mine to a link that is easier to remember:


I also have a comments section but the comments come from an external
site and they only gave me permission to use 10 comments.

Anyone care to comment on the speed or functionality?



Feb 8 '06 #5
I'm sorry. I thought it was really cool and quite fast.
I'd like to see more comprehensive quotes too.

btw: I've integrated my zip code example with the google
maps api:


Try typing "gren" for the city name, for example :).

This is fun!
-- Aaron Watters

I know, it's only rock and roll, but I like it.
-- Mick Jagger

Feb 8 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: bobzimuta | last post by:
I'm creating a simple AJAX library. It's an object that will return an array containing the response text or xml. I'm trying to find a way to assign the response as a property of the object, but from within an inline function. Within the AJAX object: this.xmlhttp = new XMLHttpRequest(); this.response = ''; //to contain the response text...
by: needin4mation | last post by:
I understand this is a asp.net group, but thought I would post this here for comments. I admit I have used this post in another group, but it has less traffic. Here's to hoping I'm just blind to the obvious: I have been reading a lot about AJAX. I want to use it and will. But I keep reading about how it doesn't make a roundtrip to the...
by: Alex | last post by:
Example uploaded to: http://www.clickatus.com/ajax/ BTW - This is for FIREFOX, won't work in IE. I don't know why but when it is executed the browser still in loading state... Even though XMLHttpRequest already got its string from the server... Any help?
by: Ivan Marsh | last post by:
Hey Folks, I'm having a heck of a time wrapping mind around AJAX. Anyone know of a simple, straight-forward example for pulling a simple query from mysql with PHP using AJAX? As I understand it I need a PHP script that pulls the query and dumps the data into XML format, that is called by triggering a javascript event that reads that...
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked around here? If so, do you know if Ajax.NET can be used without prototype.js? -- "The most convoluted explanation that fits all of the made-up...
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX - microlink pattern tutorial : A microlink is a link that opens up
by: BG Mahesh | last post by:
hi We are looking for a good Ajax library which has very good support for iframe. The ones we have considered so far are, Backbase.com - not happy with the speed Zapatech.com - it is good but doesn't have support for iframe openreco.org - it is good but doesn't support iframe Any pointers is appreciated. We are doing the development on...
by: meltedown | last post by:
This is supposed ot be an example: http://www.ajaxtutorial.net/index.php/2006/11/30/simple-ajax-using-prototype-part-2/ It says : This example is probably the simplest example you will ever find. We are going to use the prototype feature ‘ajax.Updater’ (see part one for more details on prototype).
by: Arjen | last post by:
Hi, I want to reload 2 divs at one click. Ive tried: <a href = "javascript:void(0);" onclick="show('ajaxrequest.php?action=removefield','div1');show('ajaxrequest.php?action=reloaddiv2','div2')">verwijderen</a> While both seperate actions work they dont when I put them together. Anyone know how to fix this ? My ajax.js with funcition...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.