> Depends on what's in your string and what you're trying to do.
>
> Ex. If you have an HTML string ("Hello there.<br><br>How are
> you?"), you'll
> want to replace occurances of <br> with \r (or \n).
Well, mainly I'm just trying to avoid Javascript errors. The js code is just
a real simple alert that pops up when the user clicks the delete button to
delete a record. Problem is, I want the alert to say "Confirm: Delete
#recordname#?" and #recordname# can have any number of bizarre characters in
it, including single quotes, double quotes, etc etc all of which would cause
a javascript error when calling the function in this way:
javascript:confirmkill('#id#','#recordname#')
The JsStringFormat function accomplished this beautifully, But since it's
not available in 4.01, I need another way.
javascript:confirmkill('#id#','#jsstringformat(recordname)#')
Thanks for the help, Courtney.
- Sean
~~~~~~~~~~~~~~~~~~~~~~~~~~
Sean Daniels
Manager, Engineering
(T): 207.439.6030
(C): 978.764.0799
~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.dealforce.com
http://www.mergernetwork.com
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.