Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Thanked 0 Times in 0 Posts

    Mozilla vs IE Javascript window.opener

    this has probably been posted a billion times .......... BUT

    when using upload features on my sites, i pop up a window to upload images/docs(progress.asp upload). this window posts to a third page for the upload functions(progress_upload.asp). In IE window.opener.formname.fieldname.value='variable'. this works famously with IE, but not with Mozilla FF and MAC OS IE 5.+. it has no problem with posting back the value. Javascript does not pass the value back and hangs in mozilla and macOS IE5.+ and thus will not do the window.close(). What is the workaround so that it will work for both browsers.??

    window.opener.EditForm.hdnform.value ="<%=File.OriginalFileName%>";
    alert("upload successful");

    I see this in a lot of blogs and forums, but no good examples

    please help

  2. #2
    Master Coder
    Join Date
    Feb 2003
    Umeň, Sweden
    Thanked 83 Times in 74 Posts
    Try fully qualifying the element reference.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


Posting Permissions

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