Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 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
  #1 (permalink)  
Old November 16th, 2006, 02:39 PM
Authorized User
 
Join Date: Nov 2006
Location: chennai, tamilnadu, India.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default AJAX without server side script possible?

I would like to know whether AJAX implementation is possible
without using any server side scripts like servlet, asp, php.

What I require is, I have an xml file and I presented the data from
xml using xslt. Now, I want to use AJAX, to respond dynamically when
I interact with the displayed page.

I have restricted to use only,
1).xml
2).xslt
3).javascript

Thanks!

Suresh.




__________________
Cheers [-:]

Suresh!
  #2 (permalink)  
Old November 16th, 2006, 03:19 PM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Peabody, MA, USA.
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You can use Ajax to retrieve static files that exist on the server, so the answer is yes, you can use Ajax without any server-side scripting language.

Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
  #3 (permalink)  
Old November 17th, 2006, 12:58 AM
Authorized User
 
Join Date: Nov 2006
Location: chennai, tamilnadu, India.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How could that be possible?

Assume that I have a xml file in the server side. I need to read the data from xml without using any servlets.

What I need to specify in my 'url' of the following method, if I need to access an xml file as generally the url will be a servlet!

var url = 'http://localhost:8181/suresh/UserProfileServlet?user=' + selectedUser;

httpRequest.open("GET",url,true);


Thanks!

Suresh.
  #4 (permalink)  
Old November 17th, 2006, 01:32 AM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Peabody, MA, USA.
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You can use a URL pointing to a file on the server to download.

Side note: this forum is for questions about the book Professional Ajax, is you're looking for more general information about your specific needs, you should try the regular JavaScript forum.

Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
  #5 (permalink)  
Old November 17th, 2006, 01:55 AM
Authorized User
 
Join Date: Nov 2006
Location: chennai, tamilnadu, India.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!

Suresh.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
How to put a break point in server side script swagatika General .NET 0 September 22nd, 2005 09:15 AM
Passing information from server-side script mcinar Classic ASP Basics 4 January 24th, 2005 10:34 PM
passing information from server-side script mcinar HTML Code Clinic 2 January 24th, 2005 04:42 PM
The server side script is not send to the browser jaideepc ASP.NET 1.0 and 1.1 Basics 3 February 28th, 2004 12:23 AM





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