IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Design
Search Design Group:

Advanced
-Collapse +Expand Design Store
PRESTWOODSTORE
   ► KBWebsite Scri...   Print This     

Design KB: Website Scripting Topic


Topics

68 Articles Found in the Website Scripting Topic  (or one of the sub-topics in bold above)

  KB Article    

Mike Prestwood
1. 4 Guys from Rolla http://www.4guysfromrolla.com/
Posted to KB Topic: ASP Classic
9 years ago

Link
Nothing New Since Your Last Visit
4125
Hits

ASP Classic Coding

Mike Prestwood
2. ActivePerl Distribution (Install Perl)

ActivePerl is the industry-standard Perl distribution, available for Windows, Linux, Mac OS X, Solaris, AIX and HP-UX. Developers worldwide rely on ActivePerl's completeness and ease-of-use, while corporate users protect their infrastructure and stay competitive with quality-assured ActivePerl business solutions.

Posted to KB Topic: Perl
9 years ago, and updated 9 years ago

Download
Nothing New Since Your Last Visit
7934
Hits

Perl

Mike Prestwood
3. ActivePerl Pro Studio Commercial Perl development suite from ActiveState.
Posted to KB Topic: Perl
9 years ago

Download
Nothing New Since Your Last Visit
6453
Hits

Perl

Kim Berry
4. ADO Objects must be explicitly closed Setting ADO objects to Nothing without first closing them might cause ASPMail to fail
Posted to KB Topic: ASP Classic
15 years ago

KB Post
Nothing New Since Your Last Visit
4057
Hits

ASP Classic Coding

Douglas.M
5. An Easy To Use PHP Email Blast Utility

This article describes a simple to use PHP program I made for performing a mass email “broadcast” or “blast” to a mysql database full of email addresses.

Posted to KB Topic: PHP
19 days ago
(1 Comments , last by Beverly.A )

Article
Nothing New Since Your Last Visit
35
Hits

PHP & Delphi for PHP

Mike Prestwood
6. ASP and ADO Coding Practices ASP and ADO coding best practices.
Posted to KB Topic: ASP Classic
14 years ago

KB Post
Nothing New Since Your Last Visit
6003
Hits

ASP Classic Coding

Mike Prestwood
7. ASP Classic Array (x = Array())

Arrays in ASP Classic use a 0-based indice.

Use UBound to get the number of elements. UBound returns -1 if the array has no elements, 0 if it has 1, 1 if it has 2, etc.

Posted to KB Topic: ASP Classic
7 years ago, and updated 6 years ago

Code

KB Post
Nothing New Since Your Last Visit  
10950
Hits

ASP Classic Coding

Mike Prestwood
8. ASP Classic Case Sensitivity (No)

ASP Classic is not case sensitive. My preference for all languages where case sensitivity does not matter is to use camel caps as in the first example above. Many developers coming from a case sensitive language prefer to use all lowercase.

Posted to KB Topic: ASP Classic
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit  
13253
Hits

ASP Classic Coding

Mike Prestwood
9. ASP Classic Edit Record (AddNew, Update, Delete)

In ASP, using ADO, you use RecordSet.AddNew to add a new record, Recordset.Update to post the record, and RecordSet.Delete to delete it. To edit a record, you open the RecordSet using an editable cursor.

Posted to KB Topic: ASP Classic
7 years ago

Code
Nothing New Since Your Last Visit
14335
Hits

ASP Classic Coding

Mike Prestwood
10. ASP Classic Empty String Check (Len(s&vbNullString))

In ASP Classic, you have to add an empty string to the value being compared in order to get consistent results. For example, add &"" to your string varilable or it's code equivalent &vbNullString. Then compare to an empty string or verify it's length to 0 with Len.

Posted to KB Topic: ASP Classic
8 years ago, and updated 7 years ago
(3 Comments , last by mprestwood )

Code

Article
Nothing New Since Your Last Visit  
33907
Hits

ASP Classic Coding

Mike Prestwood
11. ASP Classic error 0208 : 80004005 (Generic request collection) error 'ASP 0208 : 80004005' Cannot use generic Request collection /_private/footer_content.inc, line 72 Cannot use the generic Request collection after calling BinaryRead.
Posted to KB Topic: ASP Classic
10 years ago, and updated 10 years ago

Error
Nothing New Since Your Last Visit
11709
Hits

ASP Classic Coding

Mike Prestwood
12. ASP Classic Exception Trapping (On Error)

Languages Focus: Exception Trapping

A common usage of exception handling is to obtain and use resources in a "try-it" block, deal with any exceptions in an "exceptions" block, and release the resources in some kind of "final" block which executes whether or not any exceptions are trapped.

ASP Classic Exception Trapping

Posted to KB Topic: ASP Classic
9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
6589
Hits

ASP Classic Coding

Mike Prestwood
13. ASP Classic File Extensions (.ASP)

.asp is the default extension for Active Server Pages (ASP) although some developers will change the default extension in an effort to add an additional security level. Although there is no clear standard for include files, using .INC is common but you must make sure that .INC files are not executed nor displayed.

Posted to KB Topic: ASP Classic
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
4878
Hits

ASP Classic Coding

Mike Prestwood
14. ASP Classic Filter Records (Filter)

In ASP, using ADO, you filter a set of records using Filter.

Posted to KB Topic: ASP Classic
7 years ago

Code
Nothing New Since Your Last Visit
5726
Hits

ASP Classic Coding

Mike Prestwood
15. ASP Classic Find Record (Find, Seek)

In ASP, using ADO, you use Find and Seek to move a cursor of a RecordSet to a matching record.

Posted to KB Topic: ASP Classic
7 years ago

Code
Nothing New Since Your Last Visit
5010
Hits

ASP Classic Coding

Mike Prestwood
16. ASP Classic Parameters (ByRef, ByVal)

By Reference or Value
For parameters, you can optionally specify ByVal or ByRef. ByRef is the default if you don't specify.

Posted to KB Topic: ASP Classic
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit  
8332
Hits

ASP Classic Coding

Mike Prestwood
17. ASP Classic Record Movement (MoveFirst, MoveLast, MoveNext)

ASP uses MoveFirst, MoveLast, MoveNext, and MovePrevious to move a database cursor (a RecordSet).

objRecordSet.MoveNext
Posted to KB Topic: ASP Classic
7 years ago

Code
Nothing New Since Your Last Visit
13241
Hits

ASP Classic Coding

Mike Prestwood
18. ASP Classic Sort Records (Sort)

In ASP, using ADO, you sort a set of records using the Sort property.

Posted to KB Topic: ASP Classic
7 years ago

Code
Nothing New Since Your Last Visit
5420
Hits

ASP Classic Coding

Mike Prestwood
19. ASP Classic Yes/No Function

The following function demonstrates one technique for coding a Yes/No dropdown. It uses a for loop which can be expanded to handle more than the 3 states (Y, N, and blank).

Example of calling the function:

Do you fish? <%=YesNoDropDown("ynFish", "")%>
Posted to KB Topic: ASP Classic
7 years ago

Code
Nothing New Since Your Last Visit
5221
Hits

ASP Classic Coding

Mike Prestwood
20. ASP Constant Naming Convention When naming constants, Microsoft suggests you prefix each constant with "con" as in conYourConstant. Although, they also say the older all caps with words separated by an underscore is still acceptable (i.e. YOUR_CONSTANT).
Posted to KB Topic: ASP Classic
9 years ago, and updated 9 years ago

Tip
Nothing New Since Your Last Visit
5987
Hits

ASP Classic Coding

Mike Prestwood
21. ASPSuite Developers Blog Developer blog journal for our ASPSuite product. This blog is intended for the Prestwood ASP Classic developers.
Posted to KB Topic: ASP Classic
11 years ago, and updated 10 years ago
, last by mprestwood )

Blog
Nothing New Since Your Last Visit
8084
Hits

ASP Classic Coding

Mike Prestwood
22. Associative Arrays in JavaScript

An associative array links a set of unique values (keys) to another set of values (not necessarily unique). Associative arrays are also known as a dictionary or a hash table in other languages.

Posted to KB Topic: JavaScript and AJAX
9 years ago

Code
Nothing New Since Your Last Visit
8341
Hits

JavaScript and AJAX

Mike Prestwood
23. Borland CodeGear Releases Delphi for PHP CodeGear, a leader in developer tools, today announced Delphi for PHP, a component-based rapid application development (RAD) IDE, and VCL for PHP, an open source visual component library.
Posted to KB Topic: PHP
10 years ago, and updated 10 years ago

News
Nothing New Since Your Last Visit
3457
Hits

PHP & Delphi for PHP

Mike Prestwood
24. Browser Size How do you specify the browser size of a window in a link?
Posted to KB Topic: JavaScript and AJAX
9 years ago

FAQ
Nothing New Since Your Last Visit
4976
Hits

JavaScript and AJAX

Mike Prestwood
25. CDO (Collaboration Data Objects) Using CDO to send email.
Posted to KB Topic: ASP Classic
14 years ago

KB Post
Nothing New Since Your Last Visit
5252
Hits

ASP Classic Coding

Mike Prestwood
26. Changed PHP Global Variables PHP has become more conformed to CGI specifications and as such, you will need to make changes to your code in order for global variables to be filled in.
Posted to KB Topic: PHP
14 years ago

KB Post
Nothing New Since Your Last Visit
6738
Hits

PHP & Delphi for PHP

Mike Prestwood
27. CMS Short for Content Management Sytem (CMS) and is used to manage content on a website such as web page content, knowledge base, online store, message boards, etc. A popular .Net CMS' right now is DotNetNuke. Prestwood's own ASPSuite is a customized CMS we use for our website and our clients.
9 years ago
(1 Comments , last by Tim.M )

Definition
Nothing New Since Your Last Visit
7161
Hits

Website Design & Hosting

Bryan Valencia
28. Connection Strings, Web.Config, and the Development Environment

There is a way to configure your ASP.NET website with one configuration for your internal development environment and another for your online website - and still be able to publish your site without hand editing the web.config.

8 years ago

KB Post
Nothing New Since Your Last Visit
4888
Hits

Website Design & Hosting

Mike Prestwood
29. DateDiff vbMonday ww Week of Year This code returns the current week of the current year with a week starting on Monday.
Posted to KB Topic: ASP Classic
10 years ago

Code
Nothing New Since Your Last Visit
8824
Hits

ASP Classic Coding

Wes Peterson
30. Delphi for PHP 2.0 ships After selling tens of thousands of units of the initial version of Delphi for PHP, first released in February of 2007, in early March, CodeGear announced the availability of version 2.0.
Posted to KB Topic: PHP
9 years ago, and updated 9 years ago
(1 Comments , last by adamlum )

News
Nothing New Since Your Last Visit
6213
Hits

PHP & Delphi for PHP

Bryan Valencia
31. Don't Overlook Robots.txt

When designing websites, all developers are required to manage not only the content of the site, but the indexing of the site as well.  Robots.txt is a powerful tool you can use to make sure your projects are listed in search engines as effectively as possible.

8 years ago

Tip
Nothing New Since Your Last Visit
6130
Hits

Website Design & Hosting

Mike Prestwood
32. error '80020009' error '80020009' YourPage.asp, line xxxx
Posted to KB Topic: ASP Classic
9 years ago, and updated 9 years ago

Error
Nothing New Since Your Last Visit
8338
Hits

ASP Classic Coding

Mike Prestwood
33. Find Last Day of Week

How do you find last Monday? I want to return a date for last Monday or today if today is Monday.

Posted to KB Topic: ASP Classic
10 years ago, and updated 8 years ago

FAQ
Nothing New Since Your Last Visit
8251
Hits

ASP Classic Coding

Mike Prestwood
35. How do I determine which version of IIS I am running? The following ASP Classic code displays the version of the Internet Information Services (IIS) you are running in the form of a text string (i.e. Microsoft-IIS/6.0).
Posted to KB Topic: ASP Classic
10 years ago

Code
Nothing New Since Your Last Visit
4261
Hits

ASP Classic Coding

Mike Prestwood
36. JavaScript JavaScript is a platform-independent, event-driven, interpreted programming language developed by Netscape Communications Corp. and Sun Microsystems. Originally called LiveScript (and still called LiveWireTM by Netscape in its compiled, server-side incarnation), JavaScript is affiliated with Sun's object-oriented programming language JavaTM primarily as a marketing convenience. They interoperate well but are technically, functionally and behaviorally very different.
Posted to KB Topic: JavaScript and AJAX
9 years ago

Definition
Nothing New Since Your Last Visit
5162
Hits

JavaScript and AJAX

Mike Prestwood
37. JavaScript Case Sensitivity (Yes)

JavaScript is case sensitive. Change the case, and it no longer works! Notice the "W" in "Write" is capitalized.

<script language=JavaScript>
<!--
document.Write("Hello"); //Does not work!
//-->
</script>

Variable names are case sensitive.

Posted to KB Topic: JavaScript and AJAX
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
5172
Hits

JavaScript and AJAX

Mike Prestwood
38. JavaScript Code Blocks ({ })

Inhtml pages, you embed JavaScript code between <script> and </script> (see example). Also it's tradtional to put an HTML comment around your code too so that really old browsers don't crash (probably not all that important these days).

For JavaScript, Java, PHP, and C++, I prefer to put the first { at the end of the first line of the code block as in the example above because I see moreJavaScript codeformatted that way.

Posted to KB Topic: JavaScript and AJAX
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
6399
Hits

JavaScript and AJAX

Mike Prestwood
39. JavaScript Event Handler

The JavaScript event handler contains events centered around the Document Object Model (DOM). Common events include onMouseOver and onMouseOut, onFocus and onBlur, onClick and onDblClick, onChange and onSelect, onLoad and onUnload.

For example, onMouseOver and onMouseOut are frequently used with websites to change an image when your mouse moves over it. The onClick event is used to trigger code upon a mouse click.

Posted to KB Topic: JavaScript and AJAX
8 years ago

Code
Nothing New Since Your Last Visit
7143
Hits

JavaScript and AJAX

Mike Prestwood
40. JavaScript Exception Trapping (try/catch/finally)

See "throw" to raise (throw) an error.

Posted to KB Topic: JavaScript and AJAX
9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
4467
Hits

JavaScript and AJAX

Mike Prestwood
41. JavaScript File Extensions

.js is the common standard for browser-side JavaScript and .jsp is the common standard for server-side JavaScript.

Posted to KB Topic: JavaScript and AJAX
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
4360
Hits

JavaScript and AJAX

Mike Prestwood
42. JavaScript Inheritance (No, but sort of.)

JavaScript does not offer a formal inheritance machanism. There are some tricks some developers are fond of.

Posted to KB Topic: JavaScript and AJAX
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
5898
Hits

JavaScript and AJAX

Mike Prestwood
43. JavaScript Member Method

Not fully OOP as you can call the method outside of the class.

Posted to KB Topic: JavaScript and AJAX
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
5496
Hits

JavaScript and AJAX

Mike Prestwood
44. JavaScript Similiar to C How is JavaScript syntax like C / C++?
Posted to KB Topic: JavaScript and AJAX
9 years ago

FAQ
Nothing New Since Your Last Visit
5218
Hits

JavaScript and AJAX

Mike Prestwood
45. JavaScript substr

Above returns "Mike P".

SubStr(StartIndex, NumberOfCharacters)

Notice JavaScript is 0 based (the first character is character 0).�0 is start character, 6 is number�of characters).�

You can also use substring where both numbers are indexes:

SubString(StartIndex, EndIndex)

The following returns "re".

var sName;
sName = "Mike Prestwood";
sName = sName.substring(6, 8);
document.write(sName);
Posted to KB Topic: JavaScript and AJAX
9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
5519
Hits

JavaScript and AJAX

Mike Prestwood
47. Perl Assignment (=)

Perl assignment operators:

= Assignment $x = 8;
+= Addition $x += 8;
-= Substraction $x -= 8;
*= Muliplication $x *= 8;
/= Division $x /= 8;
%= Modulus $x %= 8;
**= Exponent $x **= 8;

Posted to KB Topic: Perl
8 years ago

Code
Nothing New Since Your Last Visit
5587
Hits

Perl

Mike Prestwood
48. Perl Comments (#)

Commenting Code
Perl uses # for single line comments and Perl does NOT have a multiple line comment.

Compiler Directives (A special comment.)

Perl also uses compiler directives embedded in comments with #! as in:

#!/usr/local/bin/perl -w
Posted to KB Topic: Perl
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
5955
Hits

Perl

Mike Prestwood
49. Perl Constants (use constant)

In PHP, you declare constants using the define keyword:

define("CONST_NAME", "Value");

Constants in PHP are case sensitive. A common standard in PHP is to use all-uppercase letters, with underscores to separate words within the name.

Posted to KB Topic: Perl
7 years ago

Code
Nothing New Since Your Last Visit
7157
Hits

Perl

Mike Prestwood
50. Perl Custom Routines (sub)

Perl uses subs and parameters are referenced in a special array. All arguments passed to a subroutine are stored in a special @_ array. To retrieve the arguments, you have to look inside the array and extract them.

Posted to KB Topic: Perl
9 years ago, and updated 9 years ago

Code

KB Post
Nothing New Since Your Last Visit
6854
Hits

Perl

Mike Prestwood
51. Perl Development Tools

Many developers just use a text editor but you have to be careful when developing on Windows and deploying to Unix/Linix. Some Windows text editors including Notepad, and Microsoft Expression Web save text files in UTF-8 which is not compatible with Unix/Linux.

There are many Perl editors available including ActivePerl Pro Studio, and the free Perl Express. I usually use Perl Express.

Quick Start: Install Perl to IIS or Apache, install Perl Express then configure to use Perl, then install MySQL. For IIS 7, you will likely have to configure Hangler Mappings and add %s %s.

Posted to KB Topic: Perl
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
6776
Hits

Perl

Mike Prestwood
52. Perl Express Free Perl editor.
Posted to KB Topic: Perl
9 years ago

Download
Nothing New Since Your Last Visit
6284
Hits

Perl

Mike Prestwood
53. PHP A recursive acronym that stands for: PHP: Hypertext Preprocessor
Posted to KB Topic: PHP
9 years ago

Definition
Nothing New Since Your Last Visit
6451
Hits

PHP & Delphi for PHP

Adam Lum
54. PHP and MySQL Basics The basics to get you going in PHP with a MySQL Database.
Posted to KB Topic: PHP
11 years ago, and updated 9 years ago

KB Post
Nothing New Since Your Last Visit
5512
Hits

PHP & Delphi for PHP

Mike Prestwood
55. PHP Code Blocks ({ })

In .PHPhtml pages, you embed PHP code between <?PHP and ?>.

For PHP, JavaScript, Java,and C++, I prefer to put the first { at the end of the first line of the code block as in the example above because I see morePHP codeformatted that way (and on PHP.Net).

PHP Alternative Syntax

Although I don't like to use it, PHP offers an alternative syntax for if, while, for, foreach, and switch. These code blocks are surrounded by statement ending keywords that all use End with camel caps such as endif, endwhile, endfor, endforeach,and endswitch.

Posted to KB Topic: PHP
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
6751
Hits

PHP & Delphi for PHP

Mike Prestwood
56. PHP Constants (define)

In PHP, you declare constants using the define keyword:

define("CONST_NAME", "Value");

Constants in PHP are case sensitive. A common standard in PHP is to use all-uppercase letters, with underscores to separate words within the name.

Posted to KB Topic: PHP
7 years ago

Code
Nothing New Since Your Last Visit
6387
Hits

PHP & Delphi for PHP

Mike Prestwood
57. PHP Development Tools

Many developers just use a text editor. There are many PHP editors available including phpDesigner, and Delphi for PHP.

Posted to KB Topic: PHP
9 years ago, and updated 8 years ago
(1 Comments , last by Anonymous )

Code
Nothing New Since Your Last Visit
5464
Hits

PHP & Delphi for PHP

bhavyait
58. replaceAll

Implements replaceAll in javascript. This is achieved using prototype.js

Posted to KB Topic: JavaScript and AJAX
10 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
9729
Hits

JavaScript and AJAX

Adam Lum
59. Response.Redirect vs. Server.Transfer

A quick comparison.

Posted to KB Topic: ASP Classic
10 years ago, and updated 8 years ago

KB Post
Nothing New Since Your Last Visit  
9469
Hits

ASP Classic Coding

Mike Prestwood
60. Security Tips: 13 Ways to Harden Your Code

13 things you can do to make your code more secure, general advice about the rest of it, PLUS YOUR COMMENTS and experiences.

9 years ago, and updated 7 years ago
(6 Comments , last by mprestwood )

Article
Nothing New Since Your Last Visit
47059
Hits

Website Design & Hosting

Mike Prestwood
61. Setting to null or empty and checking Use IsEmpty or Len > 0 to test
When clearing, set to Null (not "")
Posted to KB Topic: ASP Classic
14 years ago, and updated 10 years ago

KB Post
Nothing New Since Your Last Visit
7920
Hits

ASP Classic Coding

Adam Lum
62. Setting up your Web Server to Run ASP Scripts Running ASP on IIS
Posted to KB Topic: ASP Classic
11 years ago

KB Post
Nothing New Since Your Last Visit
4568
Hits

ASP Classic Coding

Mike Prestwood
63. Share data From ASP To JavaScript How do you pass values from ASP to Javascript in the same page?
Posted to KB Topic: JavaScript and AJAX
9 years ago

FAQ
Nothing New Since Your Last Visit
5348
Hits

JavaScript and AJAX

Mike Prestwood
64. Sun Java System Active Server Pages Run ASP pages on Linux/Unix! This software was originally developed by ChiliSoft.
Posted to KB Topic: ASP Classic
9 years ago

Download
Nothing New Since Your Last Visit
7925
Hits

ASP Classic Coding

Douglas.M
65. The Workings Of A Simple PHP Scrolling List

This article shows how PHP can be used to access a MySQL database to retrieve data for a scroll list. Here, I will discuss one that lists 12 rows at a time on a web page.

Posted to KB Topic: PHP
39 months ago

Article
Nothing New Since Your Last Visit
3832
Hits

PHP & Delphi for PHP

Mike Prestwood
66. UBB Threads http://www.ubbcentral.com/
Posted to KB Topic: PHP
9 years ago

Link
Nothing New Since Your Last Visit
6270
Hits

PHP & Delphi for PHP

Mike Prestwood
67. VBScript What does VBScript stand for?
Posted to KB Topic: ASP Classic
9 years ago

FAQ
Nothing New Since Your Last Visit
5447
Hits

ASP Classic Coding

Mike Prestwood
68. VBScript Language Reference on Microsoft.com http://msdn2.microsoft.com/en-us/library/d1wf56tt.aspx
Posted to KB Topic: ASP Classic
10 years ago

Link
Nothing New Since Your Last Visit
4252
Hits

ASP Classic Coding

Icon Legend:
Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).

New Website Design & Hosting Knowledge Base Post...

Share your knowledge with the WORLD! In addition to adding comments to existing posts, you can post knowledge you've acquired. We welcome full articles (intro with screen shots), general posts (shorter), and tidbits (tips, FAQs, definitions, etc.).

Post New...

Tidbit Post: Short Flashcard FAQ Definition Quick Tip Code Snippet
Longer Post: Full Article General Post File Link Error News
Other: Blog Topic
Or, if YOU have a question...
  Website Design & Hosting Message Board
-
   Contact Us!
 
Have a question? Need our services? Contact us now.
--Mike Prestwood

Call: 916-726-5675

email: info@prestwood.com


Go ahead!   Use Us! Call: 916-726-5675 


©1995-2017 Prestwood IT Solutions.   [Security & Privacy]