cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Gassmann <philippe.gassm...@anyware-tech.com>
Subject Re: [CForms] Form not submitting
Date Fri, 07 Oct 2005 15:20:31 GMT
Christofer Dutz wrote:

> Hi
>
>  
>
> I am having some Trouble submitting a form with anything else than a 
> button. With buttons everything is fine, when using a link for example 
> nothing happens and my browser (InternetExplorer) complains about a 
> not supported function. While debugging I traced the problem down back 
> to the last row of forms_submitForm(element, name) in forms-lib.js
>
> This is the command that seems to be failing:
>
> form.submit();
>
> I don't understand why. The object is a form-tag an so it should 
> support the submit() method.
>
> Why doesn't this work?
>
>  
>
> Chris
>
You have to know the submit id of the submit widget you want to submit 
(humm a lot of submits...). One you know that you can do something like :



<a href="#" onclick="forms_submitForm(this, 'my-submit-id'); return false">
    Submit my form
</a>

Where have you put your forms_submitForm ?


-- 
Philippe GASSMANN
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/


Mime
View raw message