Ya, that looks good Bob, thanks! I had considered this already (and failed to mention in my posting) and your implementation is excellent. I was hoping for something a bit more generic that could be used with any replace values and any string. The only problem is its a bit less flexible than just doing a
mochikitEvent.src().value.replace(/\n/gi, "<br>"); because I would have to make a function for every tag that I might want to replace, or write more code...hold on a sec. I just noticed another function in the docs that might do the trick: clone(o) so a function like this could be written? replace : function (string, replaceString, replaceWithElement) and do a lookup for the replaceString and replace it with: clone(replaceWithElement) which would work with any replace string and element... I hope this all makes sense, gotta put my son down for the night...I'm going to give it a try afterwards. Thanks for your help! Mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
