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 (1) Thread Tools    Display Modes   
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-24-2007, 04:36 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,111
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
Icon9 What is GetXmlHttpObject in AJAX?

Can anybody explain me what's this...? I'm planning to use AJAX on a PHP website...
Here's the code:
PHP Code:
function GetXmlHttpObject()
{
var 
xmlHttp=null;
try
 
{
 
// Firefox, Opera 8.0+, Safari
 
xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 
//Internet Explorer
 
try
  
{
  
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 
catch (e)
  {
  
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return 
xmlHttp;


__________________
PHP Code:
System.out.println("Hello World!"); 

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 HelloWorld : 08-24-2007 at 04:42 PM.
Reply With Quote
  #2 (permalink)  
Old 08-24-2007, 05:28 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 428
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
It's the thing that allows a webpage to call back to a server without a page refresh. It, and it alone, is what defines Ajax and Web 2.0. Big mystery solved! lol.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

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
The Following User Says Thank You to TeraTask For This Useful Post:
HelloWorld (08-24-2007)
  #3 (permalink)  
Old 08-24-2007, 09:37 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: 308
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
Ajax is the "fancy" name them bastards gave xml object communication that made it so popular. Sorry, got a sore spot in my heart... been using the XML Obj to communicate in an AJAX fashion for YEARS before the term "Ajax" was coined... all the sudden it was very popular because of the name.

Anyways, the code you are using above allows you to call other pages with three attempted methods (using 3 different com objs). This gives the ability to hit other pages, collect content, etc.. without a page refresh.
Reply With Quote
The Following User Says Thank You to ccoonen For This Useful Post:
HelloWorld (08-24-2007)
  #4 (permalink)  
Old 08-24-2007, 09:44 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 428
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
I think it gained it's popularity from those who finally realized the power of javascript and who use it it conjunction with that object. MS only supported in natively with IE 7 which opened up a very large market. Codebases such as script.aculo.us came about after people realized the power of javascript and implemented some basic support for server calls. People usually get excited because the major browsers started supporting some of the properties of CSS 3 which is a far more important addition to Web 2.0 than is commonly discussed. To put it all in short: IE has been WAY, WAY, WAY behind in supporting standards and very commonly-used features of browsers and now that they've finally worked in some BASIC support, people are getting excited. Damn MS forever!!!

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

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
The Following User Says Thank You to TeraTask For This Useful Post:
HelloWorld (08-24-2007)
  #5 (permalink)  
Old 08-24-2007, 10:07 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: 308
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
CSS3 is very exciting - and I'm a huge hater of IE - but I think I was using XML obj back in IE4
Reply With Quote
  #6 (permalink)  
Old 08-25-2007, 11:06 AM
molotov molotov is offline
Novice
Join Date: Jul 2007
Posts: 37
iTrader: (0)
molotov is on a distinguished road
Quote:
Originally Posted by TeraTask View Post
I think it gained it's popularity from those who finally realized the power of javascript and who use it it conjunction with that object. MS only supported in natively with IE 7 which opened up a very large market. Codebases such as script.aculo.us came about after people realized the power of javascript and implemented some basic support for server calls. People usually get excited because the major browsers started supporting some of the properties of CSS 3 which is a far more important addition to Web 2.0 than is commonly discussed. To put it all in short: IE has been WAY, WAY, WAY behind in supporting standards and very commonly-used features of browsers and now that they've finally worked in some BASIC support, people are getting excited. Damn MS forever!!!
Keep in mind that javascript can be turned off, rendering all your 'AJAX' worthless. I enable js on a site-by-site basis, fyi.

__________________

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
  #7 (permalink)  
Old 08-25-2007, 10:26 PM
rpgfan3233 rpgfan3233 is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jul 2007
Posts: 118
iTrader: (0)
rpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura about
Quote:
Originally Posted by ccoonen View Post
CSS3 is very exciting - and I'm a huge hater of IE - but I think I was using XML obj back in IE4
Perhaps you were, though it was probably through an ActiveX control or something like an XML data island. Also, IE has supported XML data islands (via the IE-proprietary <xml> tag) since IE5.0(?) For an example, see XML Data Islands

And I agree. CSS3 is very exciting. I also am looking forward to XHTML 2.0! However, things are starting to get off-topic.

__________________
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off."
-- Bjarne Stroustrup, creator of what is now known as C++
For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that.
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 rpgfan3233 : 08-25-2007 at 10:36 PM.
Reply With Quote
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

LinkBacks (?)
LinkBack to this Thread: http://www.programmerstalk.net/thread1099.html
Posted By For Type Date
What is GetXmlHttpObject in AJAX? - Ajax This thread Refback 09-10-2007 10:35 AM


All times are GMT -7. The time now is 12:00 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