Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #11 (permalink)  
Old December 20th, 2006, 03:16 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

If I have a bit of time tomorrow I'll try to reproduce your error, can you post what the returned data from the service might look like so i can mock up the Ajax call?

Regarding your question about querystring you can only use Request.Querystring if the parameters are appended to the URL. You can send them in the send method as name value pairs, same format as querystring, but then you'll need to use Request.Form.


Joe (Microsoft MVP - XML)
Reply With Quote
  #12 (permalink)  
Old December 20th, 2006, 08:29 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

    Thanks for your help, it did not occur to me to use Request.Form (it has been quite a while since I have had to do that!)  In any case the data that is returned is just an HREF in this format:

"<a href='#' onClick=updateParent('4444','SomeName');> SomeName </a><br>"

And the ajax script that the onClick event is wired to:

function updateParent(id, name)
     while (name.indexOf("%20") > -1)
          name = name.replace("%20"," ");

     document.getElementById("cText").value = name;
     document.getElementById("cID").value = id;

And showcustom:

function ShowCustom(){
if (document.layers) document.layers["cust"].visibility="show";
else document.getElementById("cust").style.visibility=" visible";

cText is a visible text box and cID is a hidden html element.

Thanks again!

I will only tell you how to do it, not do it for you.  
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
Reply With Quote

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax Error jezywrap C# 2005 0 July 16th, 2007 09:11 AM
Ajax error vigaluna BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 0 March 22nd, 2007 03:59 PM
An error for AJAX practice wen BOOK: Beginning Ajax with ASP.NET 0 December 13th, 2006 05:02 PM
Ajax error on FireFox when pass value to next page lvb BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 September 28th, 2006 09:22 AM
Ajax newbie with Object Required error bubberz BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 July 6th, 2006 11:52 AM

All times are GMT -4. The time now is 02:56 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.