You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Duncan McLean <du...@blueyonder.co.uk> on 2006/02/03 13:43:39 UTC

Questions/problem with submit id

Hi

Couple of question about submitId.

1) Is it possible to have a submit generated by a link on a form
subsequently generate a submitid which can be tested by flow - if so, how?

For example, something like this submits a form succcessfully, but I cannot
then determine the submitId in flowscript (returns null).
<a href="Javascript:document.myform.submit()" id="mySubmit"
name="mySubmit">Next page</a>

2) Also used a button to submit form and had trouble detecting the
submitId (returns null), example:
<input type="submit" id="nextpage" name="nextpage" value="next page"/>

Is there something else I have to do?

Thanks in advance

Duncan





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Questions/problem with submit id

Posted by Duncan McLean <du...@blueyonder.co.uk>.
Jason Johnston wrote:

>Duncan McLean wrote:
>  
>
>>Hi
>>
>>Couple of question about submitId.
>>
>>1) Is it possible to have a submit generated by a link on a form
>>subsequently generate a submitid which can be tested by flow - if so, how?
>>
>>For example, something like this submits a form succcessfully, but I cannot
>>then determine the submitId in flowscript (returns null).
>><a href="Javascript:document.myform.submit()" id="mySubmit"
>>name="mySubmit">Next page</a>
>>    
>>
>
>If you use <fi:styling type="link"/> on your submit widget it will
>generate a link with the proper JS for submitting and setting the submitId.
>
>  
>
>>2) Also used a button to submit form and had trouble detecting the
>>submitId (returns null), example:
>><input type="submit" id="nextpage" name="nextpage" value="next page"/>
>>    
>>
>
>Make sure you have a <fd:submit id="nextpage"> in your form definition.
> The form.submitId will only get set if there is a matching submit widget.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>  
>
Thanks very much!

Duncan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Questions/problem with submit id

Posted by Jason Johnston <co...@lojjic.net>.
Duncan McLean wrote:
> Hi
> 
> Couple of question about submitId.
> 
> 1) Is it possible to have a submit generated by a link on a form
> subsequently generate a submitid which can be tested by flow - if so, how?
> 
> For example, something like this submits a form succcessfully, but I cannot
> then determine the submitId in flowscript (returns null).
> <a href="Javascript:document.myform.submit()" id="mySubmit"
> name="mySubmit">Next page</a>

If you use <fi:styling type="link"/> on your submit widget it will
generate a link with the proper JS for submitting and setting the submitId.

> 
> 2) Also used a button to submit form and had trouble detecting the
> submitId (returns null), example:
> <input type="submit" id="nextpage" name="nextpage" value="next page"/>

Make sure you have a <fd:submit id="nextpage"> in your form definition.
 The form.submitId will only get set if there is a matching submit widget.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org