📄 spellcheck.asp
字号:
<html>
<%
' build SendBackTo String
' This will automatically send the system back to SpellingDone.asp without you haveing to change any of this script.
dim SendBackTo
dim CdyneAddr
dim imageAddr
if lcase(request.ServerVariables("HTTPS")) = "off" then
SendBackTo = "http://" 'unsecure
CdyneAddr = "http://www.cdyne.com/SpellChecker/cs.aspx"
imageAddr = "http://www.cdyne.com/SpellChecker/i/wait.gif"
else
SendBackTo = "https://" 'secure
CdyneAddr = "https://secure.cdyne.com/SpellChecker/cs.aspx"
imageAddr = "https://secure.cdyne.com/SpellChecker/i/wait.gif"
end if
SendBackTo = SendBackTo & trim(request.ServerVariables("SERVER_NAME"))
SendBackTo = SendBackTo & left(trim(request.ServerVariables("URL")),instrrev(trim(request.ServerVariables("URL")),"/"))
SendBackTo = SendBackTo & "SpellingDone.asp"
%>
<head>
<title>Processing...</title>
<script language="javascript"><!--
function PostIT() {
document.SpellPost.OrigTxt.value = opener.OrigTxt;
document.SpellPost.submit();
}
//--></script>
</head>
<body>
<form action="<%=CdyneAddr%>" enctype="x-www-form-urlencoded" method="post" name="SpellPost" ID="SpellPost">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" ID="Table1">
<tr>
<td align="center" valign="middle"><img src="<%=imageAddr%>" onload="PostIT()" width="259" height="105"></td>
</tr>
</table>
<!--
Field Desription:
OrigTxt = contains the original text to post to CDYNE's ASP page. (this example automatically fills this item)
SendBackTo = a LOCAL url to send the text back to. This way the speller can communicate the results with the main page.
POST = tells if the SendBackTo form can handle a post and process the data in the post. false/true
//-->
<input type="hidden" name="OrigTxt" value="TheJavascriptAboveFillsMe">
<input type="hidden" name="SendBackTo" value="<%=SendBackTo%>">
<input type="hidden" name="isPOST" value="true">
<!--
JAVA Querystring sample can handle no more than 1600 characters.
This allows you to use Spellchecking on any server; but, I feel it is very limiting. Please only use this
method if you have no other alternative. This is really a hack to get javascript to communicate cross domains.
<input type="hidden" name="OrigTxt" value="nothing" ID="Hidden1">
<input type="hidden" name="SendBackTo" value="http://localhost/SpellCheckerExamples/SpellingDone.htm" ID="Hidden2">
<input type="hidden" name="isPOST" value="false">
//-->
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -