Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | 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 Display Modes
  #1 (permalink)  
Old August 30th, 2006, 04:59 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default AJAX and SSL

Hello all
I just started working with AJAX technology and I must admit, it is quite fascinating. I am, however having a slight problem.
I am trying to POST data to a JAVA servlet that sits behind an SSL layer. If I try to access the servlet via the browser, I first get a certificate warning that give me the option to proceed or cancel. One I acknowledged I am good to go. I have tried to make the same POST using XMLHTTP but I keep receiving a blank response text from the server. The status codes I receive are 12019 and 12030.
The funny thing is it is not consistent. If I access the servlet via the browser and am successful, then in most cases I leave that session open and try to re-execute my code with the XMLHTTP API and I a get a successful transmission. Does anyone know what the cause of the could be

Thanks


Reply With Quote
  #2 (permalink)  
Old May 25th, 2007, 04:00 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's a bit tricky

As for me, i use first (index) page to ensure the browser can run AJAX (no AJAX in this page, however). If the browser is unsupported, i display such error message and provide a link to download firefox. This way, u can detect SSL in this static page, if browser were not in SSL yet, redirect it to SSL, so the session will be saved BEFORE u enter REAL AJAX Application.
Reply With Quote
Reply


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
Recommend an AJAX IDE - JoyiStar AJAX WebShop. kingstar Ajax 4 December 15th, 2006 05:12 AM
New Ajax article: Creating an Ajax Search W jminatel BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 May 11th, 2006 04:45 PM
new Ajax article: Creating an Ajax Search Widget jminatel Ajax 0 May 11th, 2006 03:50 PM
New Ajax Article: Ajax Submission Throttling jminatel Ajax 0 April 11th, 2006 09:00 PM
SSL shs BOOK: Beginning ASP.NET 1.0 0 August 24th, 2004 07:16 PM



All times are GMT -4. The time now is 02:44 PM.


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