473,700 Members | 2,899 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 1492
"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 OR xml var that = this; //since we cannot reference this within the
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 server, no postback, etc. But isn't the truth that *something* makes a trip to the server? It may...
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 file with XMLhttprequest.
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 facts is the most likely to be believed by conspiracy theorists. Fitting the
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 Linux.
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 show
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.