Help with showDialogWindow (there is an extra pop-up window)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • letsgetsilly
    New Member
    • Jul 2006
    • 9

    Help with showDialogWindow (there is an extra pop-up window)

    I'm building an ASP.NET 2.0 application in Visual Studio 2005.

    Here is what I want to do, and what is happening:
    Want:
    1 User clicks on button
    2 New window opens up, user selects File to upload and a Date, clicks "submit"
    3 Window automatically closes, returns to parent window and refreshes the page.

    What is happening:
    1 User clicks on button
    2 New window pops up. When "submit" is clicked, a NEW window pops up, and neither window closes.

    I've tried setting the post method of my form to _self and _parent with no change in what is happening. I'm using a master page to design the parent page, but not the child page.

    Please let me know if you have any fix ideas, I'd appreciate it.

    -Adam

    Here is my javascript:

    onclick="showMo dalDialog('AddP QAEval.aspx?Pro jID=5', 'cal', 'dialogWidth:80 0px; dialogHeight:80 0px; dialogLeft:10px ; dialogTop:10px; status:no;');"
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    i guess i am not fully understanding it or your not posting enough code.

    the new window pops up (an upload or something of the such) when you click submit you want this window to upload the file or submit the file which ever then close.

    if this is correct will need some more of your code

    function closewin() {
    window.open('', '_parent','');
    win = top;
    win.opener = top;
    window.close();
    }

    this is a function i wrote for closing a window without confirmation. if this helps any.

    Comment

    Working...