[jQuery] Jquery with ajax and return data is a javascrpt
I write one paragraph:code
==================
$.get(
'sad_ajax.php',
{
option: "pass_blog",
password:
encodeURIComponent(document.getElementById("pass_blog").value),
action:
encodeURIComponent(document.getElementById("url_act").value),
cat_id:
encodeURIComponent(document.getElementById("url_catid").value),
topic_id:
encodeURIComponent(document.getElementById("url_topic").value)
}
,
function (data) {
document.getElementById(idContentCenter).innerHTML= data;
}
);
====================
when return data, data have value is a paragraph javascript "<script>
window.location='index.php';</script>" but i can not run it, i try it
with function eval(data) it not run too.