from json to javascript

from json to javascript

pakypaky Posts: 106Questions: 0Answers: 0
edited March 2011 in General
Hi all I've a server_processing file with Json string with callback to javascript func :
[code]
{"sEcho": 1, "iTotalRecords": 1, "iTotalDisplayRecords": 1, "aaData": [ ["","Benson","Steve","01/01/1970","","","    "]] }
[/code]

... in another file I've a call_editBox(id) function then only works if I pass a number...
[code]
function call_modalBox(id)
{
alert(id);
};
[/code]

it return error: PLAPQL75D18A662X is not defined
... in my case I want pass a string !

thanks

Replies

  • pakypaky Posts: 106Questions: 0Answers: 0
    edited March 2011
    if it helps anyone, the solution is to limit the string with the ASCII code & # 39; (without spaces)

    Hi all ;)
This discussion has been closed.