Jump to content

How to handle italian resource bundle text


manojdubey

Recommended Posts

Hi I am trying to read a text from resource bundle inside a javascript function but the text contains single quotes and double quotes as is the normal case with italic and french language text.But its giving me problems becoz of unmatched no. of these quotes contained in text. I want to store the key value in a javascript var and work on it.can anybody help.sample code:<script> function validateLastName(form) { var lastName = form.elements["/com/sch/ua/profile/ProfileCreateFormHandler.lastName"].value; for (var i = 0; i < lastName.length; i++) { if (lastName.charCodeAt(i) > 563 ) { errors = errors + '\r\n <sch:content bundle="<%= resourceBundle %>" locale="<%= locale %>" id="i_registration_create_personal_info.validation.lastName"/> '; hasError = true; break; } } }</script>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...