has anyone tried to use event field as a form field exclusively?

1 view
Skip to first unread message

jarthel

unread,
Jul 3, 2009, 12:44:01 AM7/3/09
to Mach-II for CFML
like the event is a hidden form field. in the case of links, you're
submitting the form via the onclick event.

in my experience, it seems to work fine except when using the link.

maybe you have similar experiences and solved it?

please share. thank you :)

jayel

Brian FitzGerald

unread,
Jul 6, 2009, 10:48:36 AM7/6/09
to Mach-II for CFML
Hey Jayel,

I'm a little confused. So you're saying you have a form ... and that
form has a hidden form field, right? Something like this?

<form action="#buildUrl('dumpEventData')#" id="myForm"
name="myForm">
<input type="hidden" name="myEvent" value="#event.getName()#" />
<input type="submit" value="submit" />
</form>

<a href="##" onclick="document.forms[0].submit()">submit</a>

As long as your link is properly set up via javascript to submit the
form when it's clicked, you should get the same result either way.
Can you provide additional details?

Thanks,
Brian

jarthel

unread,
Jul 15, 2009, 1:38:12 AM7/15/09
to Mach-II for CFML
Hi Brian.

Yes. There was a point where I turn all the links in my form to
something like that. except that I didn't use "buildURL". I just used
index.cfm as the action. And this doesn't work fine.

Maybe using the buildURL does the trick?

Thank you

JAyel

Peter J. Farrell

unread,
Jul 15, 2009, 7:57:27 AM7/15/09
to mach-ii-for...@googlegroups.com
Maybe you can share your form code? Also what are the values of your m2 properties named eventParameter and parameterPrecedence.

.Pjf
-----Original Message-----
From: jarthel <jar...@gmail.com>

Date: Tue, 14 Jul 2009 22:38:12
To: Mach-II for CFML<mach-ii-for...@googlegroups.com>
Subject: [Mach-II] Re: has anyone tried to use event field as a form field
exclusively?
Reply all
Reply to author
Forward
0 new messages