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 December 24th, 2007, 02:27 AM
Registered User
 
Join Date: Dec 2007
Location: Santa Rosa, CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default xmlhttp.status = 12031

I am testing the autosuggest example in chapter 7. At the "requestSuggestions" function:
    oHttp.open("post", "suggestions.php", true);//OK
    OHttp.send -- does not throw an error
    oHttp.readyState == 4 but
    oHttp.status is always 12031
There are lots of forum discussions of this error on other sites but none are helpful. I have tried different ways to address "suggestions.php" but nothing worked. I am using IE7 and IIS
Removed the "echo" statement from suggestions.php and still get a readyState == 4
5.1. Don't know how to tell if the "POST" made it to suggestions.php
  #2 (permalink)  
Old December 24th, 2007, 05:32 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
Default

Have you tested the web service as a stand alone, without the autosuggest client?

--

Joe (Microsoft MVP - XML)
  #3 (permalink)  
Old December 26th, 2007, 06:02 PM
Registered User
 
Join Date: Dec 2007
Location: Santa Rosa, CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not sure I know how to test the service - besides what I'm already doing. I don't have a php debugger so there is no way of telling that the post reaches the target. There are many other people getting this undocumented (microsoft only) error code. Some other sites are suggesting using GET instead of POST - which I am about to try. Also - the xmlhttp object is probably provided by IE7 - it comes directly from the lib provided from the wrox downloads for this book. I will try a non MS browser next.
Quote:
quote:Originally posted by joefawcett
 Have you tested the web service as a stand alone, without the autosuggest client?

--

Joe (Microsoft MVP - XML)


Similar Threads
Thread Thread Starter Forum Replies Last Post
XMLHTTP sprisoner XML 0 April 17th, 2006 06:44 AM
xmlhttp matteoallorg RSS and Atom 0 July 12th, 2005 12:37 PM
xmlhttp help ojaynet RSS and Atom 2 April 8th, 2005 04:13 PM
XMLHTTP ffbalota Classic ASP XML 7 October 7th, 2003 05:11 PM
XMLHTTP ffbalota Classic ASP Professional 0 June 25th, 2003 02:44 PM





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