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

    window.opener.forms[0].submit() problem

    Hi

    I am using this to submit a form.
    window.opener.forms[0].submit()

    <form name="extend" method="post" action="extend_date.jsp" onClick="window.opener.forms[0].submit(); self.close()">

    It never reaches the self.close() statement. Instead the new form will be refreshed in this window, rather than the parent window/page.

    the extend_date.jsp is a jsp page that calls an extend method from a java class and response.sendRedirect to the parent page
    if i use this: window.opener.location.reload(); window.self.close(); the window will close, but sometimes the extend java method will not get executed.

    appreciate any advice.
    Last edited by sunnie; 07-07-2006 at 03:24 AM.

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    the form tag does not have onclick

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry i mean on submit.


  •  

    Posting Permissions

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