Advertisement

Results for "Author: matt khoury"

4_2005-2006 #157492
Dynamic Favorites Function

To dynamically add a web page to a user's favorites folder.

4_2005-2006 #157493
Move/Add/Swap/Transfer Data Client Side

If you’ve ever had two multiple selection boxes, and wanted to transfer the values of the multiple selection boxes back and forth, then finally submit the code in the adjusted multiple selection box(s), here’s the code to do it!

4_2005-2006 #157494
Validation

If you're looking for a very thorough validation routine, look no further.

5_2007-2008 #180004
Get Server Variable Info

To gather all server variables, and display them nicely in a readable format.

5_2007-2008 #180005
ASP Refresh

Instead of using a META refresh, use an ASP refresh to insure you have the most current copy of the web page.

5_2007-2008 #180006
Format Date

Format the current data (off the server) in the following format, for example, Tuesday, June 19, 2001.

5_2007-2008 #180007
Add to Favorites - Dynamically!

After searching throughout the web for a JavaScript function that would add a web page to a users favorites folder, I grew increasingly impatient with the laziness of others code, (hey why re-create the wheel?) because others code only lets you add one page to a users favorites folder. Therefore, I created a DYNAMIC “Add to Favorites” function, that for example will add the web page where the code is located to the users favorites. Just create an include virtual, (for script) and insert the include onto all of your pages, or preferably if you have a header page include, just copy the code into that – and Voila! As long as you have the TITLE tags on your page, you’re set!

5_2007-2008 #180008
Display Directory Listing

First off let me say that this code is a modified version of Kaustav Acharya’s post on Planet Source Code. I simplified the code to better suit my needs. You should just be able to copy the code posted below, and in order for this code to work you MUST update the SELECT CASE statement and configure it to work on your server’s structure. I think the other code is a bit harder (not user friendly) to use/fix for inexperienced programmers. Once configured properly, this code will display the contents of a directory wherever this file is placed. I named the file to be inserted into the directory to display index.asp, just because my default web site is set up to read an index.asp file as the default web page. You can also get cute with this script as well, write another select case statement checking for the file types, and display the pertinent icon according to the file name. Not what I need this code for, but just a suggestion. Happy Coding!

5_2007-2008 #180009
Request Form Sub

This code will help make your code more common, and provide simpler viewing for the Request.Form collection, by allowing the developer to place the entire Request.Form collection into a single Sub, therefore helping to organize your code a little better. We’ve all seen the type of code where Request.Form’s are done many, many time throughout an ASP. It’s hard to keep track of, right? Well, using this Sub will help you to organize your code, and your form collection.

5_2007-2008 #180010
Dynamic Favorites Function

To dynamically add a web page to a user's favorites folder.

5_2007-2008 #180011
Move/Add/Swap/Transfer Data Client Side

If you’ve ever had two multiple selection boxes, and wanted to transfer the values of the multiple selection boxes back and forth, then finally submit the code in the adjusted multiple selection box(s), here’s the code to do it!

5_2007-2008 #180012
Validation

If you're looking for a very thorough validation routine, look no further.

6_2008-2009 #202522
Get Server Variable Info

To gather all server variables, and display them nicely in a readable format.

6_2008-2009 #202523
ASP Refresh

Instead of using a META refresh, use an ASP refresh to insure you have the most current copy of the web page.

6_2008-2009 #202524
Format Date

Format the current data (off the server) in the following format, for example, Tuesday, June 19, 2001.

6_2008-2009 #202525
Add to Favorites - Dynamically!

After searching throughout the web for a JavaScript function that would add a web page to a users favorites folder, I grew increasingly impatient with the laziness of others code, (hey why re-create the wheel?) because others code only lets you add one page to a users favorites folder. Therefore, I created a DYNAMIC “Add to Favorites” function, that for example will add the web page where the code is located to the users favorites. Just create an include virtual, (for script) and insert the include onto all of your pages, or preferably if you have a header page include, just copy the code into that – and Voila! As long as you have the TITLE tags on your page, you’re set!

6_2008-2009 #202526
Display Directory Listing

First off let me say that this code is a modified version of Kaustav Acharya’s post on Planet Source Code. I simplified the code to better suit my needs. You should just be able to copy the code posted below, and in order for this code to work you MUST update the SELECT CASE statement and configure it to work on your server’s structure. I think the other code is a bit harder (not user friendly) to use/fix for inexperienced programmers. Once configured properly, this code will display the contents of a directory wherever this file is placed. I named the file to be inserted into the directory to display index.asp, just because my default web site is set up to read an index.asp file as the default web page. You can also get cute with this script as well, write another select case statement checking for the file types, and display the pertinent icon according to the file name. Not what I need this code for, but just a suggestion. Happy Coding!

6_2008-2009 #202527
Request Form Sub

This code will help make your code more common, and provide simpler viewing for the Request.Form collection, by allowing the developer to place the entire Request.Form collection into a single Sub, therefore helping to organize your code a little better. We’ve all seen the type of code where Request.Form’s are done many, many time throughout an ASP. It’s hard to keep track of, right? Well, using this Sub will help you to organize your code, and your form collection.

6_2008-2009 #202528
Dynamic Favorites Function

To dynamically add a web page to a user's favorites folder.

6_2008-2009 #202529
Move/Add/Swap/Transfer Data Client Side

If you’ve ever had two multiple selection boxes, and wanted to transfer the values of the multiple selection boxes back and forth, then finally submit the code in the adjusted multiple selection box(s), here’s the code to do it!

Languages
Top Categories
Global Discovery