Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by amhicraig@yahoo.com on Dec 17, 2007 14:29
open dhtmlx forum
mygrid.attachFooter issue

I have a complex string in the footer that contains charaters lie " and ( and )

example

mygrid.attachFooter("Some text in (1)Footer")

Now the problem is that ( inside the string clashes with "(" of the opening brace of attachFooter

The javascript error is

Expected ')'

How can i avoid this ?
Answer posted by Support on Dec 18, 2007 01:57
The "(" character inside the string must not be the problem, please check that string which you use as parameter of attachFooter has not " or ' chars ( which can break command ) , and if they exists - they must be correctly escaped.

If problem still occurs for you - please provide exact text of command which cause error