window.opener.forms not working in Firefox.

Discussion in 'Javascript' started by Kien, Jun 24, 2006.

  1. Kien

    Kien Guest

    Hello,

    Haven't been back to this group for over 3 years...

    I know opening a window is an evil thing, but this is convenient for my
    site.
    The design is like this
    -User clicks a link
    -up pops a popup with a SAFileUp form
    -user uploads the image
    -the ASP script stores the image, returns a script on the popup to
    update a form in the parent window with:

    opener.document.forms[0].Content.value+='\n<img src=fed/images/" & FName
    & ">\n'

    This works well on IE but not Firefox (the Content box remains empty).
    Please help.
    Thanks.

    Kien
    Kien, Jun 24, 2006
    #1
    1. Advertising

  2. Kien

    Randy Webb Guest

    Kien said the following on 6/24/2006 2:51 PM:
    > Hello,
    >
    > Haven't been back to this group for over 3 years...
    >
    > I know opening a window is an evil thing, but this is convenient for my
    > site.
    > The design is like this
    > -User clicks a link
    > -up pops a popup with a SAFileUp form
    > -user uploads the image
    > -the ASP script stores the image, returns a script on the popup to
    > update a form in the parent window with:
    >
    > opener.document.forms[0].Content.value+='\n<img src=fed/images/" & FName
    > & ">\n'
    >
    > This works well on IE but not Firefox (the Content box remains empty).


    What does the console have to say?

    window.opener

    --
    Randy
    comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
    Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
    Randy Webb, Jun 24, 2006
    #2
    1. Advertising

  3. Kien

    Kien Guest

    Well, Thanks Rnady but that didn't help.
    I think it is a problem with Firefox and textarea.
    Yes, I read Martin Honnen's bit about textarea and think he's right.
    Kien

    Randy Webb wrote:
    > Kien said the following on 6/24/2006 2:51 PM:
    >
    >> Hello,
    >>
    >> Haven't been back to this group for over 3 years...
    >>
    >> I know opening a window is an evil thing, but this is convenient for
    >> my site.
    >> The design is like this
    >> -User clicks a link
    >> -up pops a popup with a SAFileUp form
    >> -user uploads the image
    >> -the ASP script stores the image, returns a script on the popup to
    >> update a form in the parent window with:
    >>
    >> opener.document.forms[0].Content.value+='\n<img src=fed/images/" &
    >> FName & ">\n'
    >>
    >> This works well on IE but not Firefox (the Content box remains empty).

    >
    >
    > What does the console have to say?
    >
    > window.opener
    >
    Kien, Jun 26, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Bewley via DotNetMonster.com

    window to window communication (window.opener)

    Andrew Bewley via DotNetMonster.com, Feb 3, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    1,025
    Andrew Bewley via DotNetMonster.com
    Feb 3, 2005
  2. Urs Gubler
    Replies:
    0
    Views:
    141
    Urs Gubler
    Jul 2, 2003
  3. Yaron C.

    opener.opener ?

    Yaron C., Oct 30, 2003, in forum: Javascript
    Replies:
    4
    Views:
    201
    Yaron C.
    Nov 2, 2003
  4. atlas
    Replies:
    1
    Views:
    129
    Martin Honnen
    Sep 7, 2005
  5. window.opener, form.opener?

    , Jul 14, 2006, in forum: Javascript
    Replies:
    5
    Views:
    272
Loading...

Share This Page