hidden Iframe and div parent -child jsp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • singhrohitcyb
    New Member
    • Sep 2010
    • 5

    #1

    hidden Iframe and div parent -child jsp

    Hi i have a jsp page where there is a link onclick of that
    link i have to open a new page with the help of div and hidden iframe.I am using struts.in the child page i get an error while referring to the div of parent page.The error is
    parent.document .getElementById ("displayDiv ") is null or object not found.

    please help me out
  • RamananKalirajan
    Contributor
    • Mar 2008
    • 608

    #2
    Instad of parent.document .getElementById ("disableDiv ") tr wih window.document .getElementById ("disableDiv ")

    Thanks and Regards
    Ramanan Kalirajan

    Comment

    • singhrohitcyb
      New Member
      • Sep 2010
      • 5

      #3
      Div

      Thanks it solved my problem.I have one more issue data is coming form another page and it is varying depending upon data fetched from database.i have to add scroll bars which i have added using property.but problem is when there is large data no issue occurs but when there is little or one row fetched then data gets populated in div and bottom part remains transparent how to overcome this.i also need a way to close the div either by button on the div itself.

      Comment

      • RamananKalirajan
        Contributor
        • Mar 2008
        • 608

        #4
        Are you using css to set the height and overflow property or some other properties?

        Thanks and Regards
        Ramanan Kalirajan

        Comment

        • singhrohitcyb
          New Member
          • Sep 2010
          • 5

          #5
          div display

          yes i have used the css but it

          #displayDiv
          {

          position:absolu te;
          width:500px;
          height:500px;
          border:thin;
          max-height:50px;
          overflow: scroll;
          border-color: black;

          }
          but it is not serving the purpose.

          Comment

          • singhrohitcyb
            New Member
            • Sep 2010
            • 5

            #6
            addition to previous one stuck .i am also getting a problem in firefox
            the links are not clckable which are inside the div when i remove the div they become clickable....wh y is this so...also i am unable to click anything on the page

            Comment

            • RamananKalirajan
              Contributor
              • Mar 2008
              • 608

              #7
              The problem is, the div has style position absolute. I guess it is standing before all the other object in your page. Can you give the url of your sample page or can you post the HTML code.

              Thanks and Regards
              Ramanan Kalirajan

              Comment

              • singhrohitcyb
                New Member
                • Sep 2010
                • 5

                #8
                thanks sir

                I figured it out i hadn't tested it on mozilla with few changes it was working on it.I have a new requirement i need an iframe with a close button along with scroll bars
                I require this urgently.how can i make iframe customozed like the requirement.I am using jsps

                Comment

                • RamananKalirajan
                  Contributor
                  • Mar 2008
                  • 608

                  #9
                  Hi Pal,
                  For making scrollbars, in Iframe itself there is an attribute called "scrollbar" give the value as scrollbar="yes" otherwise you can use css set the height and width of the iframe and specify overflow property as auto. And for the close button you have to design an input button or design your own div to look like a close icon. Have a look over this link

                  Thanks and Regards
                  Ramanan Kalirajan

                  Comment

                  Working...