--- [EMAIL PROTECTED] wrote:
> 
> sorry, that should be:
>      
>
documents.forms[0].elements['cocoon-xmlform-view'].value
> also, if you need these to be variable names, use an
> associative array:
>       var Vars=new Array()
>       Vars['cocoon-xmlform-view']="some view"
>       Vars['cocoon-action-prev']="some resource"
>       Vars['cocoon-action-next']="some resource"
> then
>       foo="cocoon-xmlform-view'
>       view=Vars[foo]
> etc.

oh nice. So the HTML problem is solved.

But in VXML you submit the form like this

<submit next="wizard?" namelist="city propertyType
rent"/>

The above statement is not a problem.


<var name="cocoon-action-next" expr="Next"/><!-- this
vxml variable is actually an javascript variable
generated at the backend -->

<submit next="wizard?"
namelist="cocoon-xmlform-view city propertyType rent cocoon-action-next"/>
<!-- even if i had an array I would have to submit
cocoon-xmlform-view variable. how? -->

This gives an error.

-Apurva



> 
> You guys are having way too much fun...
> 
> 
> 
> 
>                                                     
>                                                 
>                       apurva zaveri                 
>                                                 
>                       <[EMAIL PROTECTED]        To:  
>     [EMAIL PROTECTED],                
>                       m>                       
> [EMAIL PROTECTED]                           
> 
>                                                cc:  
>                                                 
>                       10/19/02 08:00 PM       
> Subject:  XMLForm having "-" like cocoon-action-next
>  
>                       Please respond to             
>                                                 
>                       cocoon-dev                    
>                                                 
>                                                     
>                                                 
>                                                     
>                                                 
> 
> 
> 
> 
> XMLForm has form items named:
> 
> cocoon-action-prev
> cocoon-action-next
> cocoon-xmlform-view
> 
> all of them have "-" in it. Problem is javascript
> can
> not access such form items.
> i.e. you can not do
> 
> documents.form.cocoon-xmlform-view.value
> or something like that.
> 
> In HTML if you want to do this it will be an
> javascript error. [Although you may not run in a
> situation that demands to do that]
> 
> But in VXML where all field in form are actually
> javascript variables you can not have a field/js-var
> called "cocoon-action-next" as in javascript you can
> not have a variable called "cocoon-action-next".
> 
> Accorgigly I suggest to change the nameing
> conventions
> of
> 
> cocoon-action-prev
> cocoon-action-next
> cocoon-xmlform-view
> 
> Or am I missing something?
> 
> -Apurva
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to