Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #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
Reply With Quote
  #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)
Reply With Quote
  #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)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

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



All times are GMT -4. The time now is 10:21 AM.


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