...

View Full Version : AJAX on HTTPS failing



cesarcesar
04-23-2007, 09:10 AM
I am using this really neat and easy AJAX inline text edit script, http://www.yvoschaap.com/index.php/weblog/ajax_inline_instant_update_text_20/. It works great on localhost and HTTP. But, when i run it on the destination HTTPS server it fails to send the edited field name and values described in the "Update File". My javascript is a little lacking so your help is much appreciated.

Simply put.. How do i get this script to run over HTTPS?

Thank You.

liorean
04-23-2007, 01:19 PM
Two questions:
- Can you show us the page you're employing this script on?
- Is the address you're using for the AJAX request the same domain? Remember that http://example.net/ is considered a different domain from https://example.net/. If not, it could be a simple same domain policy issue.

cesarcesar
04-23-2007, 05:32 PM
- Can you show us the page you're employing this script on?
No it is a private service. I am using same exact script as in the example.

- Is the address you're using for the AJAX request the same domain? Remember that http://example.net/ is considered a different domain from https://example.net/. If not, it could be a simple same domain policy issue.I am running the site from HTTPS, calling to a page that is also HTTPS.

cyberlogi
04-23-2007, 07:18 PM
Well, it's not the AJAX that is failing, as I have used AJAX on several SSL servers. Most likely your tool isn't requesting the URI you think it is. Do you have a tool to see your AJAX request. A bunch of really handy web development tools are discussed here:

http://mattsnider.com/?p=1

Find out what URI is being requested when you try an update and then type that directly into your browser. If you get the right page, then you've got a problem, but if you get the wrong page, then you just need to tweak your tool a bit.

My uneducated guess, is that there is a parameter that needs to be set in your text editor when used on an SSL server.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum