Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 30th, 2008, 01:40 AM
Newbie
 
Join Date: Mar 2007
Posts: 24
Default Label cfinput submit controls using xml

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
Reply
  #2  
Old August 30th, 2008, 05:15 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,727
Default

Can you show the code that you're using.
Reply
  #3  
Old September 21st, 2008, 10:54 AM
Newbie
 
Join Date: Mar 2007
Posts: 24
Default

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'?
Reply
  #4  
Old September 22nd, 2008, 02:22 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,727
Default

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
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles