Advertisement

Results for "Category: Files/ File Controls/ Input/ Output"

2002ASP #8278
How do I prevent a form from being submitted, until all required fields are correct ?

How do I prevent a form from being submitted, until all required fields are correct ? Only one field is used in the example. Every time the user clicks the OK button, the onClick event fires. If it passes the test the form will submit, else the focus will be placed on the textbox, an alert will appear and the submit button will be disabled, which stops the submit process. The onMouseMove event is used to enable the button again. I just added the error handling code in case an error comes up. It is actually not necessary, you can just enable the button again. I use the onControlSelect event on the submit button, because sometimes after being disabled, the button looks like it is embedded in the page. The above event fixes it. The above can be applied to multiple textboxes, and multiple conditions and arguments can be used. It saves time and space as the validation is done on the current page, before the form is submitted. Otherwise the user has to go through the laborious task of clicking the back button on the posting page to be redirected to the previous page, and fix a simple mistake. I've had comments that the JavaScript return false statement is a better solution. Unfortunately the return false; statement doesn't seem to work when you are using frames. I hope you find this usefull !.

2002ASP #8293
Hier Menus From DataBase

I have always loved the HierMenus found at Web Reference but I wanted to be able to grab information from a database to fill the nodes. Well one weekend and a case of Mountain Dew later, a totally reusable HierMenu from DB to Menu system. There are some things you might notice: 1: Lack of More then useful comments. Reason: you will have to be familiar enough with Java, DHTML and ASP to be able to really understand this. 2: GetRows() was used so if you are going to have lots of null Parent Nodes you might what to consider using MoveFirst, MoveNext Methods. Reason: GetRows() is way faster. 3: HierMenus is a Product if you use it give credit were credit is due. I did not in any way create the HierMenus they were already made, all I did was find a way to provide Data from a DB to the menus. Please Vote For Me!

2002ASP #8294
Hier Menus From DataBase v2

I have always loved the HierMenus found at Web Reference(http://www.webreference.com/dhtml) but I wanted to be able to grab information from a database to fill the nodes. Well one weekend and a case of Mountain Dew later, a totally reusable HierMenu from DB to Menu system. There are some things you might notice: 1: Lack of More then useful comments. Reason: you will have to be familiar enough with Java, DHTML and ASP to be able to really understand this. 2: GetRows() was used so if you are going to have lots of null Parent Nodes you might what to consider using MoveFirst, MoveNext Methods. Reason: GetRows() is way faster. 3: HierMenus is a Product if you use it give credit were credit is due. I did not in any way create the HierMenus they were already made, all I did was find a way to provide Data from a DB to the menus. Please Vote For Me!

2002ASP #8312
Message Box Generator

This code will generate a HTML-code with a VbScript MsgBox, after setting a few things like Message title, icon or when the MsgBox should be invoked. Just execute this HTML file to generate a MsgBox (beginners) or look at the source to see the way I let had the MsgBox created by the form.

2002ASP #8326
Building an Input Form Dynamically From a Database.

Updated 3/23/2001 11:17 PM !!!!!!!!!!!!!!!!!!!!! This code will allow you to build an input form "on the fly" from a database. Instead of creating and hard coding the same old input form you can automatically build your form based on column names or values in your database! Just added is another page that will submit your data to your database "on the fly", truely making the process of creating web based entry forms DYNAMIC!!!!!!!! Now whenever you have to alter your input forms you just have to change your SELECT statement, no more HTML!! Please vote for this code if you find it useful, and feel free to send me any questions you have regarding the code. Thank you.

2002ASP #8384
Dynamenu

This DHTML Dynamic Menu slides in from the sided. Using Javascript that is embedded in 2 ASP include files. The menu is Database driven.

2002ASP #8393
Message Center v1.01

This is a message umm center hehe, Let your users send messages to other uses, NOT a CHAT it is more of an email client but sends them to other members your site, This version is very basic and will need to be modified in order to work properly, view the readme.txt file for more info. The next version will be great, I figured gotta have a simple basic one for the first version and then come out with a better more advanced version next time around right? yeah ok.. View it here http://65.4.131.57/Justin/messageCenter/Script/message_center.asp

2002ASP #8407
How to Embed SMS Wireless Messaging into ASP Applications

This article explains how to use Simplewire's platform to embed SMS wireless messaging to cell phones and pagers into your applications in ASP. This will allow your application to send information to mobile users throughout the world. I hope this helps a lot of you who are trying to developer wireless applications.

2002ASP #8533
Dynamically Pass Form Variables through Forms

This code passes all form variables by creating hidden copies of every form variable that was passed to it. This is great for gathering information over multiples forms (i.e. Order Processing).

2002ASP #8558
All_Form.ASP

Multi-function form for basic navigation, table editing, and recordset paging. This example includes code to dynamically build an SQL UPDATE command based on changed items on the current record. http://adozone.cnw.com/default.htm

2002ASP #8567
Pure Cool Menu

Demostrates how you can easily create a cool menu using the default filters which are part of internet explorer. You can easily modify the code to use it for your own menus.

2002C #8613
.INI read/write routines

.INI read/write routines mfncGetFromIni-- Reads from an *.INI file strFileName (full path & file name) mfncWriteIni--Writes to an *.INI file called strFileName (full path & file name) sitush@aol.com

2002C #8621
Validate_Drive

Validates whether a given hard/floppy/network drive is valid

2002C #8634
cmdFormatDrive

Format Floppy Disk using API:Here is the code on How to Format Floppy Disk using API. Note -- This code can format your Hard Disk as well, so you should be careful!!!!

2002C #8635
Launch file and associated program

How do I launch a file in its associated program? The Shell statement unfortunately only supports launching an EXE file directly. If you want to be able to launch, i.e. Microsoft Word by calling a .DOC file only, you can make your VB application launch the associated program with the document using the following method:

2002C #8644
Converting long file names

VB4's commands for dealing with file names (such as KILL, MKDIR, and FILECOPY) support long file names without programmer interaction. A number of the Win95 API functions will return only the short name, and you'll notice a number of short file name entries if you're digging through the registration database. Therefore, occasionally you'll need to convert a short file name into a long file name. This function lets you pass a long file name with no ill effects. The file must exist for the conversion to succeed. Because this routine uses Dir$ and "walks" the path name to do its work, it will not impress you with its speed:

2002C #8649
16 and 32 bit functions to create

16 AND 32 bit functions to read/write ini files--very useful!

2002C #8657
cIniFile

Complete access to INI files through a simple class module, which works with VB4 16,32 and VB5. This class module allows you to read/write INI values, delete values, delete sections and query whole sections through a simple inteface.

2002C #8666
Win95DirectoryPrompt

Prompting the User for a Directory in Win95. Windows' common dialogs are great if you want the user to select a file, but what if you want them to select a directory? Call the following function, which relies on Win32's new SHBrowseForFolder function:

2002C #8672
How to open a file with one line of code!

You create a funtion that can open a file with just one line of code.

Languages
Top Categories
Global Discovery