Iframe source Updation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sebastiraj

    #1

    Iframe source Updation

    I have one JSP program in which one iframe is defined.
    And the source of which is an another jsp.
    Contents of an iframe is in hyperlink.
    When i click any of the hyperlinks one popup box will come.
    After some operation that popup will be closed...And that operation should
    be updated in the Iframe source.(that is what ever operation we carried
    out in popup)
    Any code/help would really end my one week sleepless nights.

    Thanks in advance.
    Sebasti,.

  • Vincent van Beveren

    #2
    Re: Iframe source Updation

    in the window that does the operation, when done with the operation
    execute the following javascript function:

    function done() {
    // is your opener still there
    // and not closed
    if (opener && (!opener.closed )) {
    // refresh opener
    opener.location .reload();
    }
    // close yourself
    window.close();
    }

    hope you can sleep now,
    Vincent

    sebastiraj wrote:
    [color=blue]
    > I have one JSP program in which one iframe is defined.
    > And the source of which is an another jsp.
    > Contents of an iframe is in hyperlink.
    > When i click any of the hyperlinks one popup box will come.
    > After some operation that popup will be closed...And that operation should
    > be updated in the Iframe source.(that is what ever operation we carried
    > out in popup)
    > Any code/help would really end my one week sleepless nights.
    >
    > Thanks in advance.
    > Sebasti,.
    >[/color]

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: Iframe source Updation

      sebastiraj wrote:[color=blue]
      > I have one JSP program in which one iframe is defined.[/color]

      You have a JavaServer page which creates an "iframe" element ...
      [color=blue]
      > And the source of which is an another jsp.[/color]

      .... which source ("src" attribute) is the output of another
      JavaServer page?
      [color=blue]
      > Contents of an iframe is in hyperlink.[/color]

      Sorry, I do not understand. A hyperlink cannot contain an "iframe",
      a hyperlink can contain inline elements and text nodes (if you mean
      the "a" element), and it can point to something (if you mean a URI).
      Do you mean that the a[href]-Element to open the popup window is
      contained in the "iframe" source?
      [color=blue]
      > When i click any of the hyperlinks one popup box will come.[/color]

      You mean a popup window?
      [color=blue]
      > After some operation that popup will be closed...And that operation
      > should be updated in the Iframe source.(that is what ever operation
      > we carried out in popup) Any code/help would really end my one week
      > sleepless nights.[/color]

      Well, it depends on what you actually mean.


      PointedEars

      Comment

      Working...