Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 23891 invoked by uid 500); 20 Oct 2002 05:29:39 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 23501 invoked from network); 20 Oct 2002 05:29:23 -0000 Message-ID: <20021020052103.11572.qmail@web11603.mail.yahoo.com> Date: Sat, 19 Oct 2002 22:21:03 -0700 (PDT) From: apurva zaveri Subject: Re: XMLForm having "-" like cocoon-action-next To: cocoon-dev@xml.apache.org, cocoon-users@xml.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --- mratliff@collegenet.com 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 The above statement is not a problem. This gives an error. -Apurva > > You guys are having way too much fun... > > > > > > > apurva zaveri > > cocoon-users@xml.apache.org, > m> > cocoon-dev@xml.apache.org > > 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: > cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: > cocoon-dev-help@xml.apache.org > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: > cocoon-dev-help@xml.apache.org > __________________________________________________ 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. To unsubscribe, e-mail: For additional commands, e-mail: