Ask a Question related to ASP, Design and Development.
-
Eric #1
ASP Form Doesn't Always Submit
Hello everyone,
I am pretty much newbie to ASP so please bear with me as I explain my
problem. I currently have a main form which displays data queried
from a SQL database. From that main page I have a hyperlink which
opens a child window and allows edits to the data displayed on the
parent form. As the child form is submitted, it is updating the
database, then it refreshes the parent page and closes itself. That
all works properly, however, sometimes after pressing the update
button nothing is submitted. It looks as though it has been submitted
but when running 'profiler' I see that there have been no sql updates
against the db. When I remove the window.close(performed directly
after the submit, see below) from the child form it works everytime
without fail. Is it possible that the form sometimes closes before
the submit is actually finished? Any help/advice is greatly
appreciated! Thanks!
function updateRecord()
'check with the user
response=confirm("Update record?")
if response=true then
document.forms("editcontacts").SubmitType.value="u pdate"
document.forms("editcontacts").Submit()
window.opener.location.reload()
window.close
end if
end function
Eric Guest
-
Submit PDF Form
I've created my first PDF Form in Acrobat 7.0 Professional, with a "submit-form" button. Now, I want the filled-out form to be sent as an attachment... -
Form does not submit in Mac
Hi all, I am using the submitForm() on my submit button. I have set the URL to "/Save.aspx" which will get the submitted information and doing... -
Need Help With Submit Form
I have DW 3 and designing my own site. I would like my customer to be able to fill out a form. I know how to create a form, I don't know how to get... -
Form submit
Mira, If you move from one page to another then the objects which were on the first page wouldn't be accessible from the second. Is this what... -
Form Field/ Form Submit Problems (probably an easy answer...)
Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works... -
Tom B #2
Re: ASP Form Doesn't Always Submit
It's safer to submit the form, then on the receiving form, after all of the
data is validated and the database updated, send the close and refresh code.
"Eric" <tek_1975@yahoo.com> wrote in message
news:1ad224de.0309191043.2c2da775@posting.google.c om...> Hello everyone,
>
> I am pretty much newbie to ASP so please bear with me as I explain my
> problem. I currently have a main form which displays data queried
> from a SQL database. From that main page I have a hyperlink which
> opens a child window and allows edits to the data displayed on the
> parent form. As the child form is submitted, it is updating the
> database, then it refreshes the parent page and closes itself. That
> all works properly, however, sometimes after pressing the update
> button nothing is submitted. It looks as though it has been submitted
> but when running 'profiler' I see that there have been no sql updates
> against the db. When I remove the window.close(performed directly
> after the submit, see below) from the child form it works everytime
> without fail. Is it possible that the form sometimes closes before
> the submit is actually finished? Any help/advice is greatly
> appreciated! Thanks!
>
>
> function updateRecord()
>
> 'check with the user
> response=confirm("Update record?")
>
> if response=true then
>
>
> document.forms("editcontacts").SubmitType.value="u pdate"
> document.forms("editcontacts").Submit()
>
> window.opener.location.reload()
> window.close
> end if
>
> end function
Tom B Guest



Reply With Quote

