Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 2nd, 2006, 12:09 AM
Registered User
 
Join Date: Mar 2006
Location: Bentonville, AR, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default autosuggest safari fix

The autosuggest.js doesn't work for safari. This may not be the best fix, but if you add the following line:

oHttp.setRequestHeader('Content-Type','text/html');

after this line:

oHttp.open("post","suggestions.php", true);

things work ok. For some reason safari doesn't default the content type.

Reply With Quote
  #2 (permalink)  
Old March 2nd, 2006, 10:54 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

Thanks for the tip! I don't have a Mac so I rely on other people to test stuff out for me. :)

Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
Reply With Quote
  #3 (permalink)  
Old March 2nd, 2006, 11:41 AM
Registered User
 
Join Date: Mar 2006
Location: Bentonville, AR, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

With this tweak safari is working fine with one minor exception:

The div that contains the suggestions overwrites the bottom half of the input field.

As soon as we crack that nut I'll post to this thread.


Reply With Quote
  #4 (permalink)  
Old March 3rd, 2006, 11:42 AM
jmcpeak's Avatar
Wrox Author
Points: 467, Level: 7
Points: 467, Level: 7 Points: 467, Level: 7 Points: 467, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 87
Thanks: 0
Thanked 18 Times in 17 Posts
Default

I don't have a Mac, either. From the sounds of it, though, Safari and Opera are similar in that they're picky about the content types sent from the server. In my testing, Opera doesn't like text/xml and text/plain. Perhaps Safari is the same.

------------------------
Jeremy McPeak
Author, Professional Ajax
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
autosuggest using ajax rajesh_css Ajax 1 October 29th, 2008 03:09 AM
Ch.7 - Autosuggest example - some modifications ice84 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 10 September 17th, 2007 05:37 AM
AutoSuggest and Links gt96 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 July 4th, 2006 04:58 PM
Extend Autosuggest control manfred_ursprung@web.de BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 May 27th, 2006 03:08 AM
Autosuggest Exception thrown jellie BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 March 14th, 2006 10:19 AM



All times are GMT -4. The time now is 05:49 PM.


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