Advertisement
Advertisement

新足迹

 找回密码
 注册
新足迹 门户 IT专业论坛 查看内容

Javascript front end question - Ajax related

2011-1-21 09:11| 发布者: porcorosso | 查看: 1299| 原文链接

I am doing maintenance to old native javascript codings.

Scenario:
I do a AJAX call, returning something like this:
<div id="new_el">This is new content</div>

I bind this returned content back to the main content by simply doing this:
document.getElementById('target').innerHTML = returnedString;

Problem:
document.getElementById('new_el') does not return me anything. I have done both exeScript() and eval() to try binding the id into main content but no help.

Now I need your help. Thanks.
Advertisement
Advertisement


Advertisement
Advertisement
返回顶部