473,732 Members | 2,175 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ajax example

This is supposed ot be an example:

http://www.ajaxtutorial.net/index.ph...totype-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).

ajax.Updater allows you to specify an element ID and script URL - and
whatever the script URL prints will appear in your element ID. Simple as
that.

I would love to see such an example. Unfortunately, there is no example
on that page.

Does anyone know where there is such an example ?
Jan 2 '07 #1
25 2796
meltedown wrote:
This example is probably the simplest example you will ever find.
I would love to see such an example. Unfortunately, there is no example on
that page.

Does anyone know where there is such an example ?
Besides the simple examples on Ajax.Updater's home page?

http://wiki.script.aculo.us/scriptac...w/Ajax.Updater

That is Google's first citation for "Ajax.Updater". ..

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Jan 2 '07 #2
Phlip wrote:
meltedown wrote:
>This example is probably the simplest example you will ever find.
>I would love to see such an example. Unfortunately, there is no example on
that page.

Does anyone know where there is such an example ?

Besides the simple examples on Ajax.Updater's home page?

http://wiki.script.aculo.us/scriptac...w/Ajax.Updater

That is Google's first citation for "Ajax.Updater". ..
Where's the example ?
Jan 2 '07 #3
meltedown wrote:
Phlip wrote:
>meltedown wrote:
>>This example is probably the simplest example you will ever find.
>>I would love to see such an example. Unfortunately, there is no
example on that page.

Does anyone know where there is such an example ?

Besides the simple examples on Ajax.Updater's home page?

http://wiki.script.aculo.us/scriptac...w/Ajax.Updater

That is Google's first citation for "Ajax.Updater". ..

Where's the example ?
Eh?

In the middle of the page at the link above?
Clearly marked with a green "Examples" heading?
--
Dag.

Listen to your brain - it has a lot of information.
(Chelsey, 7) -
Jan 2 '07 #4
Dag Sunde wrote:
meltedown wrote:
>Phlip wrote:
>>meltedown wrote:

This example is probably the simplest example you will ever find.
I would love to see such an example. Unfortunately, there is no
example on that page.

Does anyone know where there is such an example ?
Besides the simple examples on Ajax.Updater's home page?

http://wiki.script.aculo.us/scriptac...w/Ajax.Updater

That is Google's first citation for "Ajax.Updater". ..
Where's the example ?

Eh?

In the middle of the page at the link above?
Clearly marked with a green "Examples" heading?

I see where it says "Examples" but there is no example, only code snippets.
The example should look like this : a form with a text field. When you
add text to the field, the text appears on the page.

Jan 2 '07 #5
meltedown wrote:
Dag Sunde wrote:
>meltedown wrote:
>>Phlip wrote:
meltedown wrote:

This example is probably the simplest example you will ever find.
I would love to see such an example. Unfortunately, there is no
example on that page.
>
Does anyone know where there is such an example ?
Besides the simple examples on Ajax.Updater's home page?

http://wiki.script.aculo.us/scriptac...w/Ajax.Updater

That is Google's first citation for "Ajax.Updater". ..
Where's the example ?

Eh?

In the middle of the page at the link above?
Clearly marked with a green "Examples" heading?


I see where it says "Examples" but there is no example, only code
snippets. The example should look like this : a form with a text
field. When you add text to the field, the text appears on the page.
You're kidding, right?

it isn't a tutorial on how to make a form post a textfield to
some serverside script, neither a tutorial on how to make serverside
script that returns some text bak to you.

You surely know how to do the two things above?

It show you an example how to use that particular function
to update an element with the response of a given serverside script.

--
Dag.

Listen to your brain - it has a lot of information.
(Chelsey, 7) -
Jan 2 '07 #6
Dag Sunde wrote:
meltedown wrote:
>Dag Sunde wrote:
>>meltedown wrote:
Phlip wrote:
meltedown wrote:
>
>This example is probably the simplest example you will ever find.
>I would love to see such an example. Unfortunately, there is no
>example on that page.
>>
>Does anyone know where there is such an example ?
Besides the simple examples on Ajax.Updater's home page?
>
http://wiki.script.aculo.us/scriptac...w/Ajax.Updater
>
That is Google's first citation for "Ajax.Updater". ..
Where's the example ?
Eh?

In the middle of the page at the link above?
Clearly marked with a green "Examples" heading?

I see where it says "Examples" but there is no example, only code
snippets. The example should look like this : a form with a text
field. When you add text to the field, the text appears on the page.

You're kidding, right?

it isn't a tutorial on how to make a form post a textfield to
some serverside script, neither a tutorial on how to make serverside
script that returns some text bak to you.

You surely know how to do the two things above?
I can make a form, but I don't know how to use ajax to update text on a
page. There's lots of examples where the results are put into an alert
box, but I've never seen one where the result appears on the page
without reloading the page.

>
It show you an example how to use that particular function
to update an element with the response of a given serverside script.
No it doesn't. It shows the code, but there is no working example.
>
Jan 2 '07 #7
meltedown said the following on 1/2/2007 5:50 AM:
Dag Sunde wrote:
<snip>
>You're kidding, right?

it isn't a tutorial on how to make a form post a textfield to
some serverside script, neither a tutorial on how to make serverside
script that returns some text bak to you.

You surely know how to do the two things above?

I can make a form, but I don't know how to use ajax to update text on a
page.
You don't use "ajax" to update the page. You use ajax to retrieve the
data from the server. Then, you use that response and update the page.
Check the group FAQ for DynWrite (see my signature) for a function that
will update the page.
There's lots of examples where the results are put into an alert
box, but I've never seen one where the result appears on the page
without reloading the page.
Instead of alert('somethin g') you do
document.getEle mentById('someI D').innerHTML = 'something';, or, you
DynWrite it.
>It show you an example how to use that particular function
to update an element with the response of a given serverside script.

No it doesn't. It shows the code, but there is no working example.

If you can't take code from the manual and make it work, you need a
different approach.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 2 '07 #8
Randy Webb wrote:
meltedown said the following on 1/2/2007 5:50 AM:
>Dag Sunde wrote:

<snip>
>>You're kidding, right?

it isn't a tutorial on how to make a form post a textfield to
some serverside script, neither a tutorial on how to make serverside
script that returns some text bak to you.

You surely know how to do the two things above?

I can make a form, but I don't know how to use ajax to update text on
a page.

You don't use "ajax" to update the page. You use ajax to retrieve the
data from the server. Then, you use that response and update the page.
Check the group FAQ for DynWrite (see my signature) for a function that
will update the page.
>There's lots of examples where the results are put into an alert box,
but I've never seen one where the result appears on the page without
reloading the page.

Instead of alert('somethin g') you do
document.getEle mentById('someI D').innerHTML = 'something';, or, you
DynWrite it.
>>It show you an example how to use that particular function
to update an element with the response of a given serverside script.

No it doesn't. It shows the code, but there is no working example.


If you can't take code from the manual and make it work, you need a
different approach.
I don't understand why I can't just ask for a working example without
all the snarky responses. If there is no working example of what I'm
asking for, fine, but that's what I'm looking for.
Jan 2 '07 #9
meltedown said the following on 1/2/2007 6:08 AM:
Randy Webb wrote:
>meltedown said the following on 1/2/2007 5:50 AM:
>>Dag Sunde wrote:

<snip>
>>>You're kidding, right?

it isn't a tutorial on how to make a form post a textfield to
some serverside script, neither a tutorial on how to make serverside
script that returns some text bak to you.

You surely know how to do the two things above?

I can make a form, but I don't know how to use ajax to update text on
a page.

You don't use "ajax" to update the page. You use ajax to retrieve the
data from the server. Then, you use that response and update the page.
Check the group FAQ for DynWrite (see my signature) for a function
that will update the page.
>>There's lots of examples where the results are put into an alert box,
but I've never seen one where the result appears on the page without
reloading the page.

Instead of alert('somethin g') you do
document.getEl ementById('some ID').innerHTML = 'something';, or, you
DynWrite it.
>>>It show you an example how to use that particular function
to update an element with the response of a given serverside script.

No it doesn't. It shows the code, but there is no working example.


If you can't take code from the manual and make it work, you need a
different approach.
I don't understand why I can't just ask for a working example without
all the snarky responses. If there is no working example of what I'm
asking for, fine, but that's what I'm looking for.
First, a "complete working example" would have to include the server
side code as well, or, use a static file.
Second, you didn't get a "snarky" response, you got an honest one.
Third, I doubt - very seriously - that you will find very many "complete
working examples" on the web of a complete ajax application.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 2 '07 #10

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

Similar topics

4
4326
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
8
1776
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...
2
1860
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?
7
3772
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.
31
3154
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
1
16509
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
3
2773
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.
17
11881
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
0
9445
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9306
jinu1996
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...
1
9234
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,...
0
8186
agi2029
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...
1
6733
isladogs
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6030
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();...
0
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3259
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
3
2177
bsmnconsultancy
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.