You are here: irt.org | About | Feedback | 2478 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q771
Sent by
Brad Carter on March 12, 2001 at 08:59:30:
Comments:
Sorry I couldnt figure out which one of the forms(whether to use the answer a question or not). So I hope you dont mind this being sent here.
This is in regards to the question found here: http://developer.irt.org/script/771.htm . I have a much shorter method for the find and replace.
It is simply to combine the split and join methods. Here is an example of how to do it
myText="Hello Every One"
myFinalText=myText.split("e").join("c")
alert(myFinalText)
This will alert "Hcllo cvcry onc"
This will work with whole strings and easily adapted into a soft-coded function.
Again I hope you dont mind.
Other feedback on 'irt.org FAQ Knowledge Base Q771' - show all