Board Logo

help escape quotation mark
lily - 3/18/2005 at 10:01 PM

hello,
how to excape the quotation mark within the string, e.g.
var TREE_ITEMS = [
['<font style="font-size:12px;">Fist Item</font>', 0, .......

many thanks ;-)


rock - 3/21/2005 at 08:48 AM

Nothing to escape.
To prevent script error on mouseover of the item update function item_upstatus (tree.js):

function item_upstatus (b_clear) {
window.setTimeout('window.status=unescape("' + (b_clear ? '' : escape(this.a_config[0] + (this.a_config[1] ? ' ('+ this.a_config[1] + ')' : ''))) + '")', 10);
}


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/