Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
|
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 19th, 2007, 09:19 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default How Ajax works internally,socket,port?

Hi everybody !!


How Ajax works internally??

once a brower sends for a page(say xyzzzzdomainxx.com/index.php)

page is loaded on my browser.

1>if page has a iframe

  and click on the button (which is in index.php) page
   will reload some contents of index.php(say content yyy)
  sync request

2>if ajax is used ,
   async request.


Question-

1>only sync request and async request is the key point with iframe request and ajax request
or there are other difference ??


2>how the ajax internally works,

3>is it uses the same instance of the browser
is it uses same ---->>>socket ,port....request.

4>one more question--how browser memory is internally assigned.
say for example my page is loaded with 512kb data,
when ajax is used to load some data ,does another chunk of memory is again assignd.

or if i m going for ajax based application ,client system memory will be a constraint for me?


Any suggestions/points are always welcome
Awaiting for your reply.

Thanks & Regards,
Vinod
__________________
Cheers :)

vinod
 
Old October 20th, 2007, 08:20 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

It justs initiates a request, GET for example, to the server and stores the response. If the response contains other content in frames nothing will happen, all that is taken care of normally by the browser. All the XMLHttpRequest sees is some textual content, it has no knowledge of what its structure is or means.
I'm not really sure about you questions about memory. Underneath the covers on Windows XMLHttpRequest uses URLMon.dll, as does IE.

--

Joe (Microsoft MVP - XML)
 
Old October 20th, 2007, 10:41 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Client system memory will be a constraint if you are going to be bringing in huge amounts of data with your Ajax calls, I suppose, but not any more than if you had brought that data in via a typical page request in the first place.

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
 
Old October 27th, 2007, 09:49 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Ofcourse client memory will be a constraint if heavy page/data is loaded using ajax.
i m still not sure to figure out how it exactly works, i m looking something low level architecture rather then simply sending http ,
i.e does it uses the same port/socket from where the original request has been sent?
it might be i m not correct , i want to go into detail, if any other resources or online tutorial? , it will help me .


Cheers :)

vinod
 
Old January 4th, 2008, 06:37 AM
Authorized User
 
Join Date: Jul 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mujahidkhaleel
Default

The HTTP request object acts as a browser in itself, responsible for creating Http request and handling responses.

Mujahid Khaleel
Web designing, development, E-commerce applications.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the CssClass property works with AJAX ? tedhill BOOK: Beginning Ajax with ASP.NET 2 December 16th, 2006 08:53 AM
Recommend an AJAX IDE - JoyiStar AJAX WebShop. kingstar Ajax 4 December 15th, 2006 05:12 AM
New Ajax article: Creating an Ajax Search W jminatel BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 May 11th, 2006 03:45 PM
new Ajax article: Creating an Ajax Search Widget jminatel Ajax 0 May 11th, 2006 02:50 PM
New Ajax Article: Ajax Submission Throttling jminatel Ajax 0 April 11th, 2006 08:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.