Digital Point Forums
Send Money Online

Go Back   Digital Point Forums > Design & Development > Programming > JavaScript
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Sep 23rd 2005, 10:40 am
wingdude's Avatar
wingdude wingdude is offline
Champion of the Naaru
Recent Blog: Ikea Matrix Flash
 
Join Date: Nov 2004
Posts: 210
wingdude is on a distinguished road
AJAX anyone?

Hey all,

Anyone heard of AJAX, Asynchrous Javascript and XML.

Here are some articles and examples for those interested on learning about the concept that made Google Suggest, Google Maps, and Gmail successful:
Wing
__________________
Wing's life | Eigo - Web Technologies |
Name Change :
Digital Wingz - - Let's fly!
Reply With Quote
  #2  
Old Sep 23rd 2005, 12:39 pm
T0PS3O's Avatar
T0PS3O T0PS3O is offline
Feel Good PLC
 
Join Date: Mar 2004
Location: 0101010101001011
Posts: 13,221
T0PS3O has a reputation beyond reputeT0PS3O has a reputation beyond reputeT0PS3O has a reputation beyond reputeT0PS3O has a reputation beyond reputeT0PS3O has a reputation beyond reputeT0PS3O has a reputation beyond reputeT0PS3O has a reputation beyond reputeT0PS3O has a reputation beyond reputeT0PS3O has a reputation beyond reputeT0PS3O has a reputation beyond reputeT0PS3O has a reputation beyond repute
Yes, I've heard of it and we're implementing some of it into osCommerce.
__________________
Try:
Sell Your Ad Space - Thousands Of Visitors Want To Buy Your Ad Space
Global Internet Index Directory <- Check it out! ->
Reply With Quote
  #3  
Old Sep 23rd 2005, 12:53 pm
digitalpoint's Avatar
digitalpoint digitalpoint is offline
My cat is on Prozac... really. lol
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 22,363
digitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond reputedigitalpoint has a reputation beyond repute
Phone Verified
It's cool stuff. vBulletin 3.5 (and therefore this forum) uses it as well. For example a response you make with the Quick Reply box doesn't require a page reload to insert itself into the thread.
__________________
- Shawn
Keyword Tracker now supports Google (once again) as well as Bing (new) and Yahoo
Please do not PM, IM or email me for product or tool support (they will go unread/ignored), and don't "friend" me unless we are really friends.
Reply With Quote
  #4  
Old Sep 23rd 2005, 1:05 pm
wingdude's Avatar
wingdude wingdude is offline
Champion of the Naaru
Recent Blog: Ikea Matrix Flash
 
Join Date: Nov 2004
Posts: 210
wingdude is on a distinguished road
Very interesting how it has been used a lot before without a name but now Adaptive Path, who coined the name, have now turned into somewhat of a craze similar to that of CSS in some circles.

Wing
__________________
Wing's life | Eigo - Web Technologies |
Name Change :
Digital Wingz - - Let's fly!
Reply With Quote
  #5  
Old Sep 24th 2005, 5:55 pm
Macbert Macbert is offline
Peon
 
Join Date: Aug 2005
Location: Europe
Posts: 27
Macbert is on a distinguished road
I use Ruby on Rails for web application development and the Prototype Ajax library has been included in the standard distribution for a while now. It's become the standard way for me to implement certain functions, for example adding, deleting and ordering items in a list.

Script.aculo.us has some really cool demos of Ajax and javascript visual effects in action.

As usual with "new" stuff there're problems also with Ajax that need to be taken into account. I recommend reading the top 10 Ajax mistakes for more information.
Reply With Quote
  #6  
Old Sep 25th 2005, 6:22 am
wingdude's Avatar
wingdude wingdude is offline
Champion of the Naaru
Recent Blog: Ikea Matrix Flash
 
Join Date: Nov 2004
Posts: 210
wingdude is on a distinguished road
Seen. yeah those are good examples, is anyone actually implementing them into sites now, as in DP members?

wing
__________________
Wing's life | Eigo - Web Technologies |
Name Change :
Digital Wingz - - Let's fly!
Reply With Quote
  #7  
Old Sep 25th 2005, 6:43 am
khudania's Avatar
khudania khudania is offline
Hand of A'dal
 
Join Date: Aug 2004
Location: UK
Posts: 304
khudania is on a distinguished road
This is cool new stuff and google has used in nicely in google suggest. I am preparing a presentation about this in some time for our internal project usage, I will also be preparing a kind of POC using Azax.
__________________
Exciting Facebook Game
Reply With Quote
  #8  
Old Sep 25th 2005, 7:02 am
someonewhois someonewhois is offline
Champion of the Naaru
 
Join Date: Apr 2005
Posts: 177
someonewhois will become famous soon enough
Just for the record, Google Suggest doesn't used "AJAX". It uses remote scripting. There IS a difference. AJAX is a buzzword, remote scripting has been around for years (I remember using it a few years ago, and making a pile of money freelancing with it, since it was unheard of at the time).
__________________
- Nathan
Reply With Quote
  #9  
Old Sep 28th 2005, 11:41 pm
mikmik's Avatar
mikmik mikmik is offline
Hand of A'dal
 
Join Date: Nov 2004
Location: Kelowna, BC, Canada
Posts: 356
mikmik will become famous soon enough
Quote:
Client-server interaction achieved without involving page reloads has become very popular for Web services. This can be handled in a variety of ways. This article covers several of them, starting with Asynchronous JavaScript and XML (AJAX).
Just got in email!

Introduction

Quote:
With the rapid introduction of JavaScript-based http requests into Web programs, one of the most common activities during the development cycle for a client-side application involves writing code to perform some kind of silent interaction between the browser and the server.

Although it's rather premature to evaluate the real impact of all these backend processes within existing and future applications, the truth is that client-server communication without page reloads has become extremely popular for implementing a great variety of Web services. Whether you're planning to develop an auto-completion system, a simple news rotator or a full-fledged mechanism to pull out database records in the background, JavaScript-based http requests can make the overall development process much faster and more pleasant.

The thing about silent client-server interaction, though, is that it can be performed through several methods categorized under the generic title of remote scripting. Of course, if you're in touch with modern Web programming, probably the first approximation that comes to your mind is AJAX (Asynchronous JavaScript and XML), which uses native XMLHttpRequest objects -- or an ActiveX Control in the case of Internet Explorer -- for dynamic file requesting.

However, the list doesn't end there. With very little knowledge about some DOM methods, it's possible to make true http requests on the fly, all without putting a single hand into AJAX technology. As I said right at the beginning of this article, background client-server interaction has turned quickly into a popular feature within Web applications, so it's worth taking a look at some of these approaches for making requests on the fly.

Over this series of tutorials, I'll be attempting to build some JavaScript applications, in order to illustrate different approaches to pulling out server data, ranging from the already traditional AJAX technique to W3C DOM standard-compliant methods. The end result of this experience will be a set of easy-to-customize JavaScript programs, useful to include in your own applications with only minor hassles.
Let's get going!
__________________
A blog, Always under construction: My personal site.
The forum BoG
"Just because nobody complains doesn't mean all parachutes are perfect."
Reply With Quote
  #10  
Old Sep 29th 2005, 10:31 am
wingdude's Avatar
wingdude wingdude is offline
Champion of the Naaru
Recent Blog: Ikea Matrix Flash
 
Join Date: Nov 2004
Posts: 210
wingdude is on a distinguished road
Nice MikMik
__________________
Wing's life | Eigo - Web Technologies |
Name Change :
Digital Wingz - - Let's fly!
Reply With Quote
  #11  
Old Sep 29th 2005, 10:46 am
nevetS's Avatar
nevetS nevetS is offline
Evolving Dragon
 
Join Date: Nov 2004
Location: Southern California
Posts: 2,539
nevetS is a name known to allnevetS is a name known to allnevetS is a name known to allnevetS is a name known to allnevetS is a name known to allnevetS is a name known to all
Here's a cross platform javascript/ajax library:

http://sourceforge.net/projects/sarissa/

I started playing with it yesterday and it took me less than half an hour to figure out how to grab data from the server.
__________________
Reply With Quote
  #12  
Old Sep 30th 2005, 6:58 pm
mikmik's Avatar
mikmik mikmik is offline
Hand of A'dal
 
Join Date: Nov 2004
Location: Kelowna, BC, Canada
Posts: 356
mikmik will become famous soon enough
Quote:
Originally Posted by wingdude
Nice MikMik
Haha, thanks! I looked at your link to wikipedia, it rocks big time. I have about three of the libraries, but this CPaint one from sourceforge is quite, quite amazing. I also got AJAXForm

The sample that come with CPaint are so cool, especially the xmlhttp chat! There is about 9 of them to play with. The instructions don't teach much and could be better, but that's because I know very little here.

I have almost zero knowledge of javascript so lot's of this is a struggle for me - to lazy or impatient to learn javascript first. It is fun, though. Do you know much or doing it for long?

I have a couple of links for DevShed ajax forms and security.
__________________
A blog, Always under construction: My personal site.
The forum BoG
"Just because nobody complains doesn't mean all parachutes are perfect."
Reply With Quote
  #13  
Old Oct 1st 2005, 6:16 am
mikmik's Avatar
mikmik mikmik is offline
Hand of A'dal
 
Join Date: Nov 2004
Location: Kelowna, BC, Canada
Posts: 356
mikmik will become famous soon enough
Then, out of nowhere I stumble upon... Fiaminga:Tutorials
and the first one listed looks about to be the best beginner tute for http request, complete with a simple php server-side script to send and get data with:
Very Dynamic Web Interfaces
__________________
A blog, Always under construction: My personal site.
The forum BoG
"Just because nobody complains doesn't mean all parachutes are perfect."
Reply With Quote
  #14  
Old Nov 21st 2005, 1:07 pm
execute's Avatar
execute execute is offline
Hand of A'dal
 
Join Date: Nov 2005
Posts: 301
execute can only hope to improve
Yeah i have been using AJAX for a while now, and it is great, however it does use javascript so it shouldn't be overused because Search engines cant understand Javascript. Also, it can become a hassle with being cross-browser.

However if you need tutorials and learn exactly how it works in great detail there is a bunch of AJAX tutorials at designplanet.biz under tutorials section.
Reply With Quote
  #15  
Old Nov 25th 2005, 4:31 am
cyclinder cyclinder is offline
Peon
 
Join Date: Nov 2005
Posts: 29
cyclinder is on a distinguished road
I'am progamming it right now. there are still features thet I want to be but they are not, like reading progress notification from http/xml activex object.
Reply With Quote
  #16  
Old Nov 25th 2005, 9:44 am
execute's Avatar
execute execute is offline
Hand of A'dal
 
Join Date: Nov 2005
Posts: 301
execute can only hope to improve
i have always thought of that, but never tried it due to lack of time. It's probably hard to make a loading bar, but a little loading sign yea. However, AJAX happens so fast, that its really not worth it unless its a loading bar.
Reply With Quote
  #17  
Old Nov 25th 2005, 11:03 am
Dekker Dekker is offline
Starcaller
 
Join Date: Aug 2005
Posts: 4,183
Dekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to behold
is AJAX more resource intensive?
Reply With Quote
  #18  
Old Nov 25th 2005, 11:14 am
mikmik's Avatar
mikmik mikmik is offline
Hand of A'dal
 
Join Date: Nov 2004
Location: Kelowna, BC, Canada
Posts: 356
mikmik will become famous soon enough
You have to be careful about that. It is possible to get holes and leaks that crash browsers, as I am finding working on Gmaps.

It is also a security risk if you do not throttle the request rate, ie, if someone sets up repreated hits to the server by submiting httprequests. .
Otherwise, it is pretty fast, just like any other call, which is usually a lot lighter and doesn't involve sending asnd refreshing the whole page everytime.

There are a few php wrappers and classes showing up that use this.
__________________
A blog, Always under construction: My personal site.
The forum BoG
"Just because nobody complains doesn't mean all parachutes are perfect."
Reply With Quote
  #19  
Old Nov 25th 2005, 11:16 am
Dekker Dekker is offline
Starcaller
 
Join Date: Aug 2005
Posts: 4,183
Dekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to beholdDekker is a splendid one to behold
I guess because it opens a up a screen?

I want to use it in a login/registration format. so when you click on register it, you don't move to a new page, the new information/confirmation just appears
Reply With Quote
  #20  
Old Nov 25th 2005, 8:08 pm
execute's Avatar
execute execute is offline
Hand of A'dal
 
Join Date: Nov 2005
Posts: 301
execute can only hope to improve
Yea i have that in designplanet.biz register page,
and most of my website designplanet.biz has that sort of stuff. It is not resource intensive, but you should disable your button while its activated to ensure they dont spam your server and crash it.

Read up on about 4-5 tutorials about AJAX in designplanet.biz
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX drives GMail, Google Maps and Google Suggest Help Desk JavaScript 12 Dec 22nd 2005 11:04 pm


All times are GMT -8. The time now is 1:48 pm.