It sounds like problem is more with JavaScript than VBScript. Here's an example of how to get ALL the values:
<html>
<head>
<script type="text/javascript">
function validate()
{
var x = new Array();
for (var i = 0; i < document.Form1.numbers.options.length; i++)
if...
If you don't know the actual values, I think you will have to use an If Then Else statement instead of the Select Case statement.
Select Case will execute statements based on the value of an expression. You can include more than one value, but you cannot evaluate a condition.
Select Case MyVar...
You code looks perfect to me. Try testing your page on a different server. Also, post your question to the Microsoft Active Server Pages (ASP) Forum; maybe someone there can help.
Textarea does not have a maxlength attribute, so you'll need to add some javascript to count and limit the characters. If you do not want to write your own script, http://javascript.internet.com/ has a number of free scripts that limit text area.
Hope this helps.
Let's say this is your URL:
http://www.results.asp?pos=programmer&nam=Albuckj2
<%
Response.Write(Request.ServerVariables("Query_String"))
%>
would give you
pos=programmer&nam=Albuckj2
<%
Response.Write(Request.ServerVariables("Server_Name") &...
I had this problem before and it had to do with permissions. You need to change the permissions to the Machinekeys folder and to the keys to allow the Administrators group and System account to have full control. I don't remember exactly how to do it, but you should be able to find details at...
It sounds like you are trying to process your script client side so you may have to use JavaScript instead of VBScript Maybe something like this:
<script type="text/javascript">
function sortFunc(url)
{
alert("newURL is currently " + url)
}
</script>
<select...
You can still use the "Left" function even though the name is variable in length.
If you're sure it will always be four characters
Left(string, Len(string - 4)
otherwise, you should search for the "." as the others suggested (probably better in the long run)
Left(string...
The width attribute of the <td> is deprecated in favor of style sheets. I think they consider this the version 2. Glad you were able to fix your problem. :)
Glad I could help and thanks for the star.
If you feel a post has been helpful to you, you give the poster a star/click on the link at the bottom of their post to cast a vote for "TipMaster Of The Week". You don't need to be the one who asked the question to vote.
I think to display the values you either need to add ".value"
<%=RSObj.Fields("LastName").value%>
or remove ".Fields"
<%=RSObj("LastName")%>
Noticed I was having a very bad variable syntax moment in my previous post:
strSQL = "SELECT * FROM Items where rsItem("Name") = sName;"
should have been
strSQL = "SELECT * FROM Items where Name = '" & sName & "'"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.