asp调用js代码的问题,急,谢谢了
我用asp与DZ论坛同步,已经成功,但是遇到一个问题,就是asp代码中动态返回的JS代码,需要执行一次来同步登陆DZ论坛,然后我的asp跳转到另外一页,用response.write来执行返回的JS代码,然后用response.redirect来跳转,但是发现DZ论坛不能同步登陆,调试后发现JS代码没有执行,后来在response.write后面加入response.end,可以同步登陆了,但是response.redirect又失去作用,不能跳转,停在白屏。请问,这个问题有什么解决办法,谢谢了!
ucsynlogin = uc_user_synlogin(uid) '返回javascript分别调用各个应用进行登陆
response.write ucsynlogin
response.end()
response.redirect("../member/index.asp")
以下是ucsynlogin的值打印:
<script type="text/javascript" src="http://localhost/jungongnet1/bbs/api/uc.php?time=1321876769&code=d8cfgG2DWV0EXdGs%2F5ToPkXAs%2BwaJIf8GVv32GeCNL1AvGeJ%2FH%2FcQi0EdfaMnndPEHp2Akvh%2FSJyekhteeDVCK4YImhYgDMOfJO7LXfuzu5D8aLx6maddf%2BD4XNaXrZdIFKUHqBOG%2BM4odz245eF71yrNzdDABwnE4iJ%2Bnaw" reload="1"></script><script type="text/javascript" src="http://localhost/jungongnet1/link_uc/api/uc.asp?time=1321876769&code=542fHA3smfBrbmlstKvqORo%2B249lnkjNPj1Y1bpNbpOjEgiAlECZkylX2n3%2Fcoz2VlR6lDkUylywixBYZ6ybix57rMtXuCgPD3zqmxqhJyiv2BojxovNO5Gp8SZ0UHojXf%2BtQ6a2rcyB8TUaSS56z76%2B6GCXpe5hSzvD63r2" reload="1"></script>