The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > Web Programming > DHTML > JavaScript


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags: , ,

Reply
 
LinkBack Thread Tools    Display Modes   
  #11 (permalink)  
Old 06-27-2007, 09:29 PM
Nutter Nutter is offline
Novice
Join Date: Jun 2007
Posts: 22
iTrader: (0)
Nutter is on a distinguished road
So, marginally off topic

What's the generic term for using javascript to connect to the server and refresh parts of the pages? Say you're backend returns a plain text file or HTML. You can't really say it's AJAX because it's not XML. So what would you call it?

I am putting a lot of AJAXy type scripts in a project I'm working on, but none of it is true AJAX since I'm not using XML to return the data. Of course I'm using "AJAX" in future marketing materials because it's such a buzzword right now.

__________________
- Ryan
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #12 (permalink)  
Old 06-27-2007, 09:51 PM
ccoonen ccoonen is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Location: Wisconsin
Posts: 317
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
DHTML

AJAX is the communication between client-side and server-side

DHTML is the act of using Javascript to communicate and manipulate html elements. you would be doing a document.getElementById("DivElementsID").innerHTML = "New HTML Source Code" or whatever...
Reply With Quote
  #13 (permalink)  
Old 06-28-2007, 11:12 AM
chrishirst chrishirst is offline
Jr. Programmer
Join Date: Jun 2007
Location: Blackpool UK
Posts: 87
iTrader: (0)
chrishirst will become famous soon enoughchrishirst will become famous soon enough
The "X" is for the XMLHTTP object NOT for the format of the returned data

__________________
Chris
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #14 (permalink)  
Old 06-28-2007, 05:26 PM
Nutter Nutter is offline
Novice
Join Date: Jun 2007
Posts: 22
iTrader: (0)
Nutter is on a distinguished road
Quote:
Originally Posted by chrishirst View Post
The "X" is for the XMLHTTP object NOT for the format of the returned data
But it's still XML whether it's the format of the returned data or XMLhttp. Everywhere I've seen AJAX spelled out it's been XML though. But that's not really the point either way.

What happens if you make a synchronous call? SJAX?

I guess I'm just looking for the generic term, or has AJAX become the generic term whether it's truly an asynchronous call retrieving XML data or a synchronous call returning binary data?

__________________
- Ryan
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #15 (permalink)  
Old 06-30-2007, 04:24 PM
chrishirst chrishirst is offline
Jr. Programmer
Join Date: Jun 2007
Location: Blackpool UK
Posts: 87
iTrader: (0)
chrishirst will become famous soon enoughchrishirst will become famous soon enough
You can't make synchronous calls with HTTP. It is a disconnected protocol and communication is always asychronous.

Client makes a request, server sends a response, the connection is dropped. end of communication.

Jesse James Garrett from AdaptivePath claims to have coined the name Ajax when it was originally being used for XML data retrieval.
It's is NOT a technology in it's own right, it's the joining of several technologies. And it is a very powerful tool to have in a developers range of skills.
The techniques have become more popular because it eases the bandwidth usage for some applications.

Take this forum for instance;
The "Quick Reply" box uses AJAX techniques to post the data to the server and to retrieve the returned data. The newly inserted post is then displayed on the page via javascript DOM scripting.
Only the latest data is returned from the server, whereas with a submit operation post data would be sent (no saving there) but the whole page including images, external files for scripts and styles where needed, would be returned to the client browser and have to be rendered again.
This post may need 5 or 600 bytes to be sent back, the entire page could be 150 - 200 kilobytes.

__________________
Chris
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #16 (permalink)  
Old 06-30-2007, 06:00 PM
Nutter Nutter is offline
Novice
Join Date: Jun 2007
Posts: 22
iTrader: (0)
Nutter is on a distinguished road
Quote:
You can't make synchronous calls with HTTP. It is a disconnected protocol and communication is always asychronous.
The third option in the XMLHttpRequest object is true for asynchronous and false for synchronous. xhobj.open('GET', 'url', false) will make a call to url and wait for the response.

Either way, we're talking in circles and I'm done. I was just looking for the generic term.

__________________
- Ryan
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #17 (permalink)  
Old 07-01-2007, 05:20 AM
chrishirst chrishirst is offline
Jr. Programmer
Join Date: Jun 2007
Location: Blackpool UK
Posts: 87
iTrader: (0)
chrishirst will become famous soon enoughchrishirst will become famous soon enough
Not quite, the object will be either asynchronous or NOT it will never be synchronous. Being NOT asynchronous does not mean synchronous.

synchronous means "at the same time", so for communication protocols it refers to communication happening simultaneously.

To draw an analogy;
Telephones & Mobile (Cell) Phones are Synchronous, you can talk and listen at the same time.
Mobile Radio, CB Radio and others are Asynchronous, where you have to transmit a request then wait for a response.

HTTP falls into the asynch bracket, client sends a request and will wait for a response.
It is the waiting that the third parameter actually refers to, "true" means that the script will continue to run without waiting for a response, "false" means the script will pause until a response is received.

I don't really get why you keep asking about the generic term for AJAX as the generic term for AJAX is AJAX

__________________
Chris
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by chrishirst : 07-01-2007 at 05:41 AM.
Reply With Quote
The Following 2 Users Say Thank You to chrishirst For This Useful Post:
HelloWorld (07-01-2007), TeraTask (07-01-2007)
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 05:26 PM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50