Walt
|
Posted: 10/24/2003, 12:00 PM |
|
Hi
I am trying to get a form to submit before a page unloads.
Is this possible?
I have tried adding an action under page->events
- Page
- Client
- On Unload
- Submit form, and put the Form Name in.
But this doesn't seem to work.
Any tips would be appreciated.
Thanks
Walt.
|
|
|
DonB
|
Posted: 10/24/2003, 2:05 PM |
|
I think the most precise answer is "no". The submit "sort of" starts (or is
the start of) the unloading process. However, you should be able to put
some javascript in the "onclick" of some control (client side, of course) to
invoke the submit method of the form. I don't think this will unload the
page at all.
More to the point, what are you doing that led you to think this was
necessary? Are you trying to do a submit without reloading a page?
--
DonB
http://www.gotodon.com/ccbth
"Walt" <null@null.null> wrote in message
news:bnbssj$gt6$1@news.codecharge.com...
> Hi
>
> I am trying to get a form to submit before a page unloads.
>
> Is this possible?
>
> I have tried adding an action under page->events
>
> - Page
> - Client
> - On Unload
> - Submit form, and put the Form Name in.
>
> But this doesn't seem to work.
>
> Any tips would be appreciated.
>
> Thanks
>
> Walt.
>
|
|
|
Walt
|
Posted: 10/24/2003, 3:25 PM |
|
Hi Don
I am trying to a form to submit when any link on the page is selected.
(but ideally before moving to any another page)
The general gist of it is - there are a couple of grid forms (showing
different views) of all the records and a record form to edit the record
selected from the grid.
I am trying to get the form to submit before moving to another record -
without having to submit manually then move to the record.
As per your message I have added
onclick="javascript:TheNameofTheForm.submit()"
to the link in the grid so the form will submit.
Yay!
Could I be pointed in the direction of how to get the form validation
process incorporated in this?
:)
Thanks
DonB wrote:
> I think the most precise answer is "no". The submit "sort of" starts (or is
> the start of) the unloading process. However, you should be able to put
> some javascript in the "onclick" of some control (client side, of course) to
> invoke the submit method of the form. I don't think this will unload the
> page at all.
>
> More to the point, what are you doing that led you to think this was
> necessary? Are you trying to do a submit without reloading a page?
>
|
|
|
Walt
|
Posted: 10/27/2003, 8:31 AM |
|
Out of interest how do you do a form submit without reload?
Thanks
Walt
DonB wrote:
> I think the most precise answer is "no". The submit "sort of" starts (or is
> the start of) the unloading process. However, you should be able to put
> some javascript in the "onclick" of some control (client side, of course) to
> invoke the submit method of the form. I don't think this will unload the
> page at all.
>
> More to the point, what are you doing that led you to think this was
> necessary? Are you trying to do a submit without reloading a page?
>
|
|
|
DonB
|
Posted: 10/27/2003, 9:07 AM |
|
There may not be a way. I have seen DHTML pages that do "something" to
refresh a single control's content without the entire page getting reloaded.
I thought you might be trying to do something like that.
--
DonB
http://www.gotodon.com/ccbth
"Walt" <null@null.null> wrote in message
news:bnjh8l$790$1@news.codecharge.com...
> Out of interest how do you do a form submit without reload?
>
> Thanks
>
> Walt
>
> DonB wrote:
>
> > I think the most precise answer is "no". The submit "sort of" starts (or
is
> > the start of) the unloading process. However, you should be able to put
> > some javascript in the "onclick" of some control (client side, of
course) to
> > invoke the submit method of the form. I don't think this will unload the
> > page at all.
> >
> > More to the point, what are you doing that led you to think this was
> > necessary? Are you trying to do a submit without reloading a page?
> >
>
|
|
|
|