 |
| 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
|
|
|
|

October 19th, 2007, 09:19 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
|
|

October 20th, 2007, 08:20 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
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)
|
|

October 20th, 2007, 10:41 AM
|
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

October 27th, 2007, 09:49 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
|
|

January 4th, 2008, 06:37 AM
|
|
Authorized User
|
|
Join Date: Jul 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|
 |