Connecting Tech Pros Worldwide Forums | Help | Site Map

Label cfinput submit controls using xml

Newbie
 
Join Date: Mar 2007
Posts: 25
#1: Aug 30 '08
I want to change the language of the word that appears on a cfinput submit control. I can control the word that appears on the control using the 'value' parameter. However, when I try to use an xml text expression to give a value to the 'value' paramater, I get alot of stuff surrounding the word that I do not want.

For example:

<?xml version="1.0" encoding="UTF-8"?><next>Apres</next>

All I want is the word 'Apres'. Can anyone help me to resolve this, or am I attempting to do something that is not possible?

Regards

Blackmore

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Aug 30 '08

re: Label cfinput submit controls using xml


Can you show the code that you're using.
Newbie
 
Join Date: Mar 2007
Posts: 25
#3: Sep 21 '08

re: Label cfinput submit controls using xml


The code text I am using is:

Expand|Select|Wrap|Line Numbers
  1. <cfinput type="submit" name="Next" width="120px" value="   #myforms.next#   ">
Where #myforms.next# is an XML expression relevant to the word for 'next' in the language specified by the user. Of course, this means that the value of next returned in the form structure is that for the specified language (i.e. in French the word for next is 'Apres').

Is it possible to restrict the value returned to the english word 'next', for code purposes, yet still set the submit button to appear on the web-page with the foreign language word for 'next'?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Sep 22 '08

re: Label cfinput submit controls using xml


You can use the French word directly with the correct charset set. I've not tested with cfsubmit though to see if it makes a difference.

Another option is to use HTML entities or unicode characters.
Reply