试试在页面中调查用Jquery.js
然后
<script>
$(document).ready(function() {
$("#aaa").load("a.asp");
});
</script>
解决方案 »
- 请高手解密一段js代码???
- 在deeptree里能否用脚本增加或者删除节点吗?
- 梅花雪树型控件,节点单击问题
- 关于梅花雪菜单和树关联的疑问.
- 难题,在firefox下,如何获取inputtext的值那?在线等
- 关于在iframe中图片移动的问题
- 谁能给我一个类似CSDN社区左边这个树型菜单效果?只要静态的就可以,开帖再加500分!!
- src.replace(/(.*\/){0,}([^\.]+).*/ig,"$2")那位解释一下。
- 请大家看看我的问题,怎么获得表格的索引值?
- 如何才能让close()方法运行时不弹出“是否关闭”对话框?
- JAVASCRIPT引用INPUT值问题
- 复选框的一对多(父与子)关联选中的问题求解?
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function aaa()
{
var question=document.all.txtCouID.value;
window.showModalDialog("B.aspx",question,"edge:raised;scroll:0;status:0;help:0;resizable:0;dialogHeight:250px;dialogWidth:350px;center:yes;help:no;");
}
</script>
</head>
<body>
<form runat="server" action="A.aspx">
<asp:TextBox ID="txtCouID" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="提交" OnClientClick="aaa();" />
</form>
</body>
</html>B頁面:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function SetValue()
{
var question=window.dialogArguments;
var newParagraph=document.getElementById("Label1");
var newTextNode=document.createTextNode(question);
newParagraph.appendChild(newTextNode);
var node=newParagraph.firstChild;
newParagraph.removeChild(node);
}
</script>
</head>
<body onload="SetValue()">
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" runat="server" Text="bbbbb"></asp:Label>
</div>
</form>
</body>
</html>我不懂ASP,不曉得這個方法能不能幫到你.
这其实就是Ajax嘛。。晕楼主,还是要用Ajax的
这个什么意思?
<input type="text" name="textfield" id="aaa"><script>
var aaaa = document.getElementById("label1").innerTEXT;
document.getElementById("aaa").value = aaaa;
</script>
很多网页看源文件看不到动态显示的数据import java.net.URLConnection;
import java.net.URL;
import java.io.InputStream;
import java.io.ByteArrayOutputStream;public class test2 {
URLConnection conn = null;
String all_content; public String getData(String str_url) throws Exception{
try {
all_content =new String();
URL url = new URL(str_url);
conn = url.openConnection(); if (conn == null)
return null; InputStream ins = conn.getInputStream(); ByteArrayOutputStream outputstream = new ByteArrayOutputStream();
byte[] str_b = new byte[1024];
try {
int i = -1;
while ((i=ins.read(str_b)) > 0) {
outputstream.write(str_b,0,i);
}
all_content = outputstream.toString();
System.out.println(all_content);
} catch (Exception ex) {
ex.printStackTrace();
} } catch (Exception e) {
e.printStackTrace();
}
// return new String(all_content.getBytes("ISO8859-1"));
return all_content;
}
}
百度下html 解析就好了