Wrox Programmer Forums
|
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 December 20th, 2006, 04:16 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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)
 
Old December 20th, 2006, 09:29 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Joe,
    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)
{
     ShowCustom();
     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





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





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