Results 1 to 4 of 4

Thread: Access https in http page

  1. #1
    Join Date
    Jul 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Access https in http page

    I have 3 pages like (page1,page2 - http ) and page3 (https / ssl ). In page1 I create 2 frames and i calls page2 and page 3.

    Parent page is non-ssl (page1) and frame src page is ssl (page3)

    I not able to access the content of https page in html page. I write the following javascript and page2 and gives error Access denied.

    parent.window.frame[1].location

    Can you please help me, how to access the https content in http.

    YOUR HELPS WOULD BE HIGHLY VALUEABLE FOR ME.

    Regards
    OMR

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ymdomar
    Can you please help me, how to access the https content in http.
    You cannot. Access between documents served with different schemes (and domains, too) is restricted for security purposes.

    Mike

  3. #3
    Join Date
    Nov 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Is there a work around?

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    PHP, server side methods of grabbing the contents of the file and inputting it into your html page would work fine.

    Or, you could just convert the overall page to a https page.

    If absolutely needed, you could use ajax to call a .php (or similar) page on your server to get the data from the (presently) restricted file and output to the ajax request and then display that on your page.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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