This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
'////////////////////////////////////////////////// | |
'// | |
'// | |
'// | |
'////////////////////////////////////////////////// | |
Function MixedCase(strInput) | |
Dim strPos, strSpace, strOutput | |
strPosition = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
FUNCTION URLDecoder(str) | |
'// This function: | |
'// - decodes any utf-8 encoded characters into unicode characters eg. (%C3%A5 = å) | |
'// - replaces any plus sign separators with a space character | |
'// | |
'// IMPORTANT: | |
'// Your webpage must use the UTF-8 character set. Easiest method is to use this META tag: | |
'// <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
'// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
Function in_array(element, arr, performTrim) | |
Dim i | |
in_array = False | |
For i=0 To Ubound(arr) | |
If performTrim Then '//there are some scenarios where you want to trim | |
If Trim(arr(i)) = Trim(element) Then | |
in_array = True | |
Exit Function | |
End If |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { font-size: 16px;} | |
p { font-size: 1.5em; /* 1.5em = 24px = 18pt */} | |
h1 { font-size: 200%; /* 200% = 32px = 24pt */} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
FUNCTION LoadThePage(strPageText, strInputURL) | |
Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") | |
objXMLHTTP.Open "GET", strInputURL, False | |
objXMLHTTP.Send | |
strPageText = objXMLHTTP.responseText | |
Set objXMLHTTP = Nothing | |
End FUNCTION | |
FUNCTION GrabTheContent(strStart, strEnd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
FUNCTION stripHTML(strHTML) | |
Dim objRegExp, strOutput, tempStr | |
Set objRegExp = New Regexp | |
objRegExp.IgnoreCase = True | |
objRegExp.Global = True | |
objRegExp.Pattern = "<(.|n)+?>" | |
'Replace all HTML tag matches with the empty string | |
strOutput = objRegExp.Replace(strHTML, "") | |
'Replace all < and > with < and > |