Another Question (JS & ASP)
This is my script:
...
if (confirm('**question**'))
{
document.form1.submit();
window.location.reload()
}
...
The form's action is an asp-file that deletes the users input of a textbox.
The submit takes place when confirming, but the reload never happens. Is this because the JS breaks up directly after submit() is called??? If so, who has an alternative to reload the page????
I also tried <form onsubmit="location.reload">
but this won't work either.
Can someone tell me why? I'm just a newbie and need explanation(s).
thanx in advanx
what the ...?
Now I try this:
document.form.submit();location.reload();
and the result is:
The form is submitted and the page reloads...
only 1 time.
when I try again the page does NOT reload.
Is JS a random script???
[This message has been edited by Jack Michaelson (edited 07 December 1999).]
Shakespeare: onclick || !(onclick)
John Pollock posted this at 04:49 — 3rd December 1999.
He has: 628 posts
Joined: Mar 1999
I have a feeling the JS breaks up on the submission. I'm not quite sure how to get around it, but if I figure something out I'll post it.
Anonymous posted this at 13:09 — 5th December 1999.
They have: 5,633 posts
Joined: Jan 1970
Won't the page automatically reload after the form is submitted?
------------------
http://go.to/hass
Jack Michaelson posted this at 07:42 — 7th December 1999.
He has: 1,733 posts
Joined: Dec 1999
nope.
Before I made the page I thought it would do that, but unfortunately it won't.
------------------
Jack Michaelson
[email protected]
[This message has been edited by Jack Michaelson (edited 08 December 1999).]
Shakespeare: onclick || !(onclick)
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.