|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
专业性的服务。有的ASP商提供垂直型的应用服务,针对某一特定行业提供应用服务。这个材料是之前搜集的,但愿能对你有所匡助。
1、page1.htm
<html>
<head>
</head>
<body>
<formid=scr_Data>
FirstName:<inputtype=textid=s_FNamevalue="none">
<br>
LastName:<inputtype=textid=s_LNamevalue="none">
<br><br>
<inputtype=hiddenid=s_Hiddenvalue="NoVALUEassignedyet!">
1.<inputtype=buttonid=btn_CallRemoteScripting0onClick="alert(BeforeRemoteScripting:+scr_Data.s_Hidden.value)"value="DisplayHIDDENTEXTBOXvalue"><br>
2.<inputtype=buttonid=btn_CallRemoteScripting1onClick="callRemoteScript1()"value="ChangeFirstName,LastName&HiddenTextboxvalues(callsanASPpage)"><br>
3.<inputtype=buttonid=btn_CallRemoteScripting2onClick="alert(AfterRemoteScripting:+scr_Data.s_Hidden.value)"value="DisplayHIDDENTEXTBOXvalue(afterRemoteScripting)"><br>
4.<inputtype=buttonid=btn_CallRemoteScripting3onClick="callRemoteScript2()"value="ClearFirst&LastNamevaluesbutKeepHiddenTextvalue(callsaHTMLpage)"><br>
</form>
</body>
<scriptlanguage=javascript>
//YOUCANEITHERUSEJAVASCRIPTORVBSCRIPT...
//YOUCANALSOCALLANASPORHTMLPAGE...
vart=dialogLeft:1024;dialogTop:768;dialogHeight:0;dialogWidth:0;center:no;edge:raised;+
help:no;show=no;resizable:no;status:no;scroll:no;unadorned:yes
functioncallRemoteScript1()
{
vars="remotescript1.asp"
/*
t=WindowProperties
s=Pagetocall(ASPorHTML)
scr_Data=YourFORMID/NAME(*besuretopassthisparameter*)
*/
self.showModalDialog(s,scr_Data,t);
}
functioncallRemoteScript2()
{
vars="remotescript2.htm"
/*
t=WindowProperties
s=Pagetocall(ASPorHTML)
scr_Data=YourFORMID/NAME(*besuretopassthisparameter*)
*/
self.showModalDialog(s,scr_Data,t);
alert(Neateh?);
}
</script>
</html>
2、remotescript1.asp
<%@Language=VBScript%>
<%
Dimasp_var_FName
Dimasp_var_s_LName
asp_var_FName="John"
asp_var_LName="Doe"
%>
<html>
<body>
</body>
<scriptlanguage=vbscript>
Setf_Reference=window.dialogArguments
f_Reference.s_FName.value="<%=asp_var_FName%>"
f_Reference.s_LName.value="<%=asp_var_LName%>"
f_Reference.s_Hidden.value="ThisisnowthenewvalueoftheHIDDENTEXTBOX"
self.close()
</script>
</html>
3、remotescript2.htm
<html>
<body>
</body>
<scriptlanguage=vbscript>
Setf_Reference=window.dialogArguments
f_Reference.s_FName.value=""
f_Reference.s_LName.value=""
self.close()
</script>
</html>
</p>asp是基于web的一种编程技术,可以说是cgi的一种。它可以完成以往cgi程序的所有功能,如计数器、留言簿、公告板、聊天室等等。 |
|