Forums

This topic is locked

Forum's Action problems

Posted 14 May 2004 05:12:49
1
has voted
14 May 2004 05:12:49 Winston Krauss posted:
I have a forum in which i need to have 2 actions. These 2 actions are kwmailer.asp and <%MM_editAction%> . Does anyone know how i can apply 2 actions to the 1 forums "action" field? Thanks

Replies

Replied 14 May 2004 14:36:48
14 May 2004 14:36:48 Vince Baker replied:
You are going to need to try to explain your problem in more detail. Not sure what you are trying to do from what you posted.

Regards
Vince

DMX Talkzone Manager

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 14 May 2004 19:53:36
14 May 2004 19:53:36 Dave Thomas replied:
sure, you need to have 2 submit buttons in your form am i right?

use the following javascript to set up your form and then just add the function call to you buttons as below.

<pre id=code><font face=courier size=2 id=code><font color=red>
&lt;script language="JavaScript"&gt;
&lt;!--
function kwMailer()
{
document.form1.action = "kwmailer.asp"
document.form1.submit(); // Submit the page
return true;
}
function editForm()
{
document.form1.action = "&lt;%MM_editAction%&gt;"
document.form1.submit(); // Submit the page
return true;
}
--&gt;
&lt;/script&gt;
</font id=red></font id=code></pre id=code>

you'll need to change <b>form1</b> to whatever the name of your form is

then add this to your mailer button tag
<pre id=code><font face=courier size=2 id=code><font color=red>
onclick="return kwMailer();
</font id=red></font id=code></pre id=code>

and add this for your edit form button tag
<pre id=code><font face=courier size=2 id=code><font color=red>
onclick="return editForm();
</font id=red></font id=code></pre id=code>

that's you sorted <img src=../images/dmxzone/forum/icon_smile_cool.gif border=0 align=middle>

Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com

Reply to this topic