When i run ajax call, always i run callback.
I recive form the ajax content the name of the callback and the parameters.
The js var of callback function name, named: "callback"
The js var of callback parameters, named: "data.vars"
The js call code:
eval(element + '(data.vars);');
When i run this code after ajax successed, it work fine.
But sometimes all html elements disappears, and i see only white screen (the body background color).
How can i fix this?
Don't use "eval" like this -- you're only asking for huge security problems.
That said, it's not really possible to help much with what you've supplied. Please supply the code where you're creating the AJAX request, as well as the callback function code.