By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,900 Members | 1,353 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,900 IT Pros & Developers. It's quick & easy.

More action-form for the same form

P: n/a
Hi all,
I have a form with 3 combobox whitin a asp page called data.asp, whose
action form is itself; the first combobox drives the behaviour of the other
two.
The onchange event of the first combobox is related to a javascript function
in which I call the submit method for the form, whose action form is itself.
This works fine.
The problem is that if I want to save the changes done by the user (clicking
the OK button) I need to set the action of the form to another page, for
example save.asp.
The question is how to do this?
I had written a function inside the onclick method of the OK button that is
similar to the following one

document.MyForm.action = "save.asp";
document.MyForm.submit();

But it doesn't work properly, because the page save.asp is never invoked.

Thanks in advance for the help,
Michele.
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Does this have anything to do with asp.net? All you mention is JavaScript and
ASP. You are probably using the wrong newsgroup

"Michele" wrote:
Hi all,
I have a form with 3 combobox whitin a asp page called data.asp, whose
action form is itself; the first combobox drives the behaviour of the other
two.
The onchange event of the first combobox is related to a javascript function
in which I call the submit method for the form, whose action form is itself.
This works fine.
The problem is that if I want to save the changes done by the user (clicking
the OK button) I need to set the action of the form to another page, for
example save.asp.
The question is how to do this?
I had written a function inside the onclick method of the OK button that is
similar to the following one

document.MyForm.action = "save.asp";
document.MyForm.submit();

But it doesn't work properly, because the page save.asp is never invoked.

Thanks in advance for the help,
Michele.

Nov 19 '05 #2

P: n/a
Oh, I'm sorry!
Could you please tell me which is the right newsgroup?

Regards,
Michele.

"Tampa .NET Koder" wrote:
Does this have anything to do with asp.net? All you mention is JavaScript and
ASP. You are probably using the wrong newsgroup

"Michele" wrote:
Hi all,
I have a form with 3 combobox whitin a asp page called data.asp, whose
action form is itself; the first combobox drives the behaviour of the other
two.
The onchange event of the first combobox is related to a javascript function
in which I call the submit method for the form, whose action form is itself.
This works fine.
The problem is that if I want to save the changes done by the user (clicking
the OK button) I need to set the action of the form to another page, for
example save.asp.
The question is how to do this?
I had written a function inside the onclick method of the OK button that is
similar to the following one

document.MyForm.action = "save.asp";
document.MyForm.submit();

But it doesn't work properly, because the page save.asp is never invoked.

Thanks in advance for the help,
Michele.

Nov 19 '05 #3

P: n/a
If the question is about ASP, you might want to try:

microsoft.public.inetserver.asp.general

Juan T. Llibre
===========
"Michele" <Mi*****@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
Oh, I'm sorry!
Could you please tell me which is the right newsgroup?

Regards,
Michele.

"Tampa .NET Koder" wrote:
Does this have anything to do with asp.net? All you mention is JavaScript
and
ASP. You are probably using the wrong newsgroup

"Michele" wrote:
> Hi all,
> I have a form with 3 combobox whitin a asp page called data.asp, whose
> action form is itself; the first combobox drives the behaviour of the
> other
> two.
> The onchange event of the first combobox is related to a javascript
> function
> in which I call the submit method for the form, whose action form is
> itself.
> This works fine.
> The problem is that if I want to save the changes done by the user
> (clicking
> the OK button) I need to set the action of the form to another page,
> for
> example save.asp.
> The question is how to do this?
> I had written a function inside the onclick method of the OK button
> that is
> similar to the following one
>
> document.MyForm.action = "save.asp";
> document.MyForm.submit();
>
> But it doesn't work properly, because the page save.asp is never
> invoked.
>
> Thanks in advance for the help,
> Michele.

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.