Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts

    AJAX on HTTPS failing

    I am using this really neat and easy AJAX inline text edit script, http://www.yvoschaap.com/index.php/w...pdate_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.

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    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.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts
    - 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.

  • #4
    New Coder
    Join Date
    Apr 2007
    Location
    Silicon Valley California
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •