AJAX

Moderators: None (Apply to moderate this forum)
Number of threads: 54
Number of posts: 84

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How can I insert the ajax in my page Posted by JunM on 20 Nov 2005 at 12:17 AM
Hi! I've heard about the ajax. I just wonder how can i put ajax on my page i am using asp classic. my friend told me that it is written in xml format but i dont have any idea on xml programming. I am interesting to learn this thing. thanks.
Report
Re: How can I insert the ajax in my page Posted by CyGuy on 16 Dec 2005 at 12:46 AM
: Hi! I've heard about the ajax. I just wonder how can i put ajax on my page i am using asp classic. my friend told me that it is written in xml format but i dont have any idea on xml programming. I am interesting to learn this thing. thanks.
:
I am no expert. I don't even know ASP. only JavaScript and HTML. XML is very much like HTML, but requires any HTML to be in specific format to be read (ie. all lower case tags). furthermore, XML is like a library to create HTML. In this way, XML views the HTML as a tree of so-called nodes, so programmers are aware of the entire mark-up at once, rather than having to filter through the text, splicing and concaterating through the document to find an element. XML DOM also stores each type of tag element into an array, which further simplifies things.

JavaScript is not a add on. Every browser should be aware of it. JavaScript can modify HTML with XML objects or by name attributes of HTML tags, however given many inputs of the same type, text for example, you would have to give each a different name, whereas XML stores them all an an array. This proves useful when writing a script, because you can easily make reference to any active element, without having to give each element an event and pass its name, although at times it is necessary to find the type of data expected.

In essence AJAX would be a script, written in JavaScript that is very much DOM/XML aware, obviously, but there are further intricasies that make AJAX. The script should be forward-looking. To explain this I must reiterrate that DOM/XML stores a markup that has already been written, (back-looking). You can add data and settings to the document markup with a cookie, but the cookie idea is still created then applied (back-looking). So, where does AJAX look? to the server, most likely. It should call on a script that will update data as the document loads, or, in the case of a text box, everytime a key is pressed, the script compares it to a database on the server... resulting in auto-completion, like an the address bar of your browser, sort of. The difference lies in the fact that the user doesn't ever have had to been to the site or entered a single letter into a text box before. The data doesn't come from the user computer. A stock market ticker, written in JavaScript, would also have to be written using AJAX, since it would need to get real time quotes from the server. It is this forward looking thinking that AJAX implies.

I wouldn't call this cutting edge or even say it is a particular break-through, yet someone thought it cunning enough to give it a board on this forum. That's just my 2 bits; look around on the web, you'll find it. Here are some starting places: http://www.w3.org/ or http://www.devguru.com/ or http://www.google.com/

WHAT you;see_is_what=you.get;
-Russ aka DangeRuss

Report
Re: How can I insert the ajax in my page Posted by chief555 on 6 Sept 2006 at 2:20 PM
The term AJAX contains an 'X' apparently standing for XML, however XML is not required. You can pass plain text or any HTM or javascript back and forth with AJAX too without refreshing the entire page, only a particular <div> or area where you can write the innerHTML element to show what comes back. I think any javascript has to be run using the eval() function, otherwise the page won't see it, I really haven't tried that yet. But I've been using AJAX, sometimes referred to as AHAH or AJAH (with HTML only) and it works great.
Report
Re: How can I insert the ajax in my page Posted by jtechsystems on 10 Feb 2009 at 11:12 PM
Report
Re: How can I insert the ajax in my page Posted by ajaxdude on 7 Jul 2009 at 7:20 AM
http://www.j2mesalsa.com/ajax/
www.asp.net/ajax/

more cheers



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.