Hi getagrip,

you could add a "hidden" submit using the followingCode:

Submit submit = new Submit("doSomething", "doSomething", this, "doSomething");
submit.setAttribute("style", "visibility:hidden;display:none");

Submit the form with the hidden submit:

<a href="#" onclick="document.getElementById('formName_doSomething').click();">doSomething</a>

You could extend Submit overriding its render method, so it renders the hidden submit and the link.

hth
SVen

getagrip wrote:
Hi,

is there any to add a callback to a text-based href submit?

We cannot work with buttons/images so our forms have to be submitted
like this:

<a href="javascript:document.loginform.submit();">Login</a>

Unfortunately I cannot find any hints on how to do this programmatically
via the framework. Maybe in combination with an ActionLink? But this
would just call a Page and not submit the form I guess.

Cheers, getagrip



Reply via email to