当前位置:编程学习 > JAVA >>

怎么调用抽取到的网页内的js函数

用httpclient和htmlparser登陆并抽取到网页内容后,怎么调用js内searchCourseList函数提交查询?

function searchCourseList(bInit)
{
if(!bInit){
if (document.myForm.termList.value.length == 0) {
alert("请选择学期!");
document.myForm.termList.focus();
return;
}
if (document.myForm.gradeList.value.length == 0) {
alert("请选择年级!");
document.myForm.gradeList.focus();
return;
}
if (document.myForm.specialitySelect.value.length == 0) {
alert("请选择上课专业!");
document.myForm.specialitySelect.focus();
return;
}
}
document.getElementById('frameCourseView').height="25";
document.getElementById('iframeTable').style.height="25";
document.getElementById('btSearch').disabled = "disabled";
document.getElementById('operationInfo').style.visibility = "visible";

frames['frameCourseView'].location.href="http://jwas3.nju.edu.cn:8080/jiaowu/"
+"student/teachinginfo/allCourseList.do?method=getCourseList&curTerm="+document.getElementById('termList').value
+"&curSpeciality="+document.getElementById('specialitySelect').value
+"&curGrade="+document.getElementById('gradeList').value
}
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,