These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

LiveCycle Designer JS problem

mistersing
Registered: Sep 22 2006
Posts: 2

I'm trying to find a JavaScript that will detect/remove/replace special characters such as "\" in LiveCycle Designer. I tried a few ideas using indexOf(), but it that doesn't seem to work. Is there anything that will work?

thanks.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Where is it that you want to replace these special characters?

String replacement can be done with the standard string.replace() function. You can look this function up in any Core JavaScript reference.

However, the code:

var nPos = MyString.indexOf("\\");

should easily find the "\" character.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Thom is using the double "\" because this is the special escape character in the Acrobat JavaScript Script object.

George Kaiser