asp-classic

AJAX - Classic ASP - Post a Form

你离开我真会死。 提交于 2020-12-06 03:50:25
问题 I have a TEST.ASP with this code: <HTML> <HEAD> <SCRIPT src="ajaxScript.js" type="text/javascript"></SCRIPT> </HEAD> <BODY> <FORM action="action_page.asp" method="post"> First Name:<BR> <INPUT type="text" name="FName"><BR> Last Name:<BR> <INPUT type="text" name="LName"><BR> <INPUT type="submit" value="Submit"> <BUTTON type="button" onClick="loadXMLDoc('action_page.asp',this.form);">GoGoGo!</BUTTON> </FORM> <DIV id="msgBoxDiv">TEST!!</DIV> </BODY> </HTML> The Javascript file that is called

AJAX - Classic ASP - Post a Form

二次信任 提交于 2020-12-06 03:48:08
问题 I have a TEST.ASP with this code: <HTML> <HEAD> <SCRIPT src="ajaxScript.js" type="text/javascript"></SCRIPT> </HEAD> <BODY> <FORM action="action_page.asp" method="post"> First Name:<BR> <INPUT type="text" name="FName"><BR> Last Name:<BR> <INPUT type="text" name="LName"><BR> <INPUT type="submit" value="Submit"> <BUTTON type="button" onClick="loadXMLDoc('action_page.asp',this.form);">GoGoGo!</BUTTON> </FORM> <DIV id="msgBoxDiv">TEST!!</DIV> </BODY> </HTML> The Javascript file that is called

Regex to remove HTML attribute from any HTML tag (style=“”)?

旧城冷巷雨未停 提交于 2020-11-30 12:00:05
问题 I'm looking for a regex pattern that will look for an attribute within an HTML tag. Specifically, I'd like to find all instances of ... style="" ... and remove it from the HTML tag that it is contained within. Obviously this would include anything contained with the double quotes as well. I'm using Classic ASP to do this. I already have a function setup for a different regex pattern that looks for all HTML tags in a string and removes them. It works great. But now I just need another pattern

Regex to remove HTML attribute from any HTML tag (style=“”)?

时光毁灭记忆、已成空白 提交于 2020-11-30 11:55:25
问题 I'm looking for a regex pattern that will look for an attribute within an HTML tag. Specifically, I'd like to find all instances of ... style="" ... and remove it from the HTML tag that it is contained within. Obviously this would include anything contained with the double quotes as well. I'm using Classic ASP to do this. I already have a function setup for a different regex pattern that looks for all HTML tags in a string and removes them. It works great. But now I just need another pattern

Classic ASP - passing a property as byref

感情迁移 提交于 2020-11-29 09:25:07
问题 In classic ASP I have an object, call it bob . This then has a property called name , with let and get methods. I have a function as follows: sub append(byref a, b) a = a & b end sub This is simply to make it quicker to add text to a variable. I also have the same for prepend , just it is a = b & a . I know it would be simple to say bob.name = bob.name & "andy" , but I tried using the above functions and neither of them work. The way I am calling it is append bob.name, "andy" . Can anyone see

Classic ASP - passing a property as byref

你离开我真会死。 提交于 2020-11-29 09:24:26
问题 In classic ASP I have an object, call it bob . This then has a property called name , with let and get methods. I have a function as follows: sub append(byref a, b) a = a & b end sub This is simply to make it quicker to add text to a variable. I also have the same for prepend , just it is a = b & a . I know it would be simple to say bob.name = bob.name & "andy" , but I tried using the above functions and neither of them work. The way I am calling it is append bob.name, "andy" . Can anyone see

Email validation serverside

非 Y 不嫁゛ 提交于 2020-11-29 02:55:38
问题 I'm trying to validate emails but my code is not allowing a few scenarios.. Code pvm = "bw.stack@domain.com" does not work pvm = "user@gmail.com" - works If Len(pvm) < 5 OR NOT Instr(1, pvm, " ") = 0 OR InStr(1, pvm, "@", 1) < 2 OR InStrRev(pvm, ".") < InStr(1, pvm, "@", 1) Then blnEmailOKREG = False Else blnEmailOKREG = True End If 回答1: Here is a fairly good valiation for email addresses. Please note though that its hard to get a completely 'all-knowing' validation. ' Function IsValidEmail '

Email validation serverside

|▌冷眼眸甩不掉的悲伤 提交于 2020-11-29 02:52:16
问题 I'm trying to validate emails but my code is not allowing a few scenarios.. Code pvm = "bw.stack@domain.com" does not work pvm = "user@gmail.com" - works If Len(pvm) < 5 OR NOT Instr(1, pvm, " ") = 0 OR InStr(1, pvm, "@", 1) < 2 OR InStrRev(pvm, ".") < InStr(1, pvm, "@", 1) Then blnEmailOKREG = False Else blnEmailOKREG = True End If 回答1: Here is a fairly good valiation for email addresses. Please note though that its hard to get a completely 'all-knowing' validation. ' Function IsValidEmail '

Email validation serverside

我是研究僧i 提交于 2020-11-29 02:51:20
问题 I'm trying to validate emails but my code is not allowing a few scenarios.. Code pvm = "bw.stack@domain.com" does not work pvm = "user@gmail.com" - works If Len(pvm) < 5 OR NOT Instr(1, pvm, " ") = 0 OR InStr(1, pvm, "@", 1) < 2 OR InStrRev(pvm, ".") < InStr(1, pvm, "@", 1) Then blnEmailOKREG = False Else blnEmailOKREG = True End If 回答1: Here is a fairly good valiation for email addresses. Please note though that its hard to get a completely 'all-knowing' validation. ' Function IsValidEmail '