access denied when trying to acess document in iframe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jambalapamba
    New Member
    • Nov 2007
    • 23

    access denied when trying to acess document in iframe

    hi all

    i am loading a html document in my iframe which comes from the same domain, when i am trying to acess the document(html page) in the iframe using java script i am getting access denied , but some times its not giving me error and i am able access the document. its inconsistent like some time it gives me error and sometimes not(for the same document). Inside the html document its refering to the website images that are not in my domain. Can any one help me with this.
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    I guess the problem comes when you are trying to access the images which are not part of your domain.
    You need to check that part again.

    Comment

    • jambalapamba
      New Member
      • Nov 2007
      • 23

      #3
      thank you i am checking

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        I am moving this question to the JavaScript Forum because I think you'll receive better help there.

        Cheers!

        -Frinny

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by jambalapamba
          hi all

          i am loading a html document in my iframe which comes from the same domain, when i am trying to acess the document(html page) in the iframe using java script i am getting access denied , but some times its not giving me error and i am able access the document. its inconsistent like some time it gives me error and sometimes not(for the same document). Inside the html document its refering to the website images that are not in my domain. Can any one help me with this.
          Can you post your code, so we can have a look at it and see where the problem might be.

          Comment

          Working...