Results for "Category: Files/ File Controls/ Input/ Output"
Prints out the content of a webpage
Simulate the tab control found at the bottom of popular programs such as visual Interdev and Front Page.
Forces users to have choice of downloading a binary file. This was becomming a problem with Word documents - as they would either open within the browser or open externally. You may need to change the FileName variable.
I was working on a scriptlet to allow users to choose a color. A color wheel is displayed with an assortment of colors - most of witch are web-safe. Clicking on a color causes it to be outlined and raise an event that a color was chosen. This object mimics one of the color-picker forms found in Microsoft Office 2000. This scriplet does not yet raise events or expose properties. The basics, however are available for you to be amazed.
This code is used to send form information to your email account. Essentially, it sends an HTML email with some basic information to an email account and a link to view the completed form. It uses CDONTS to send the information. The link contains all the information the user entered on the form and when you click on the link, it populates the form with that information. No database needed! It is really simple but since no one else has submitted something like this, I thought I would make my own contribution. There are three .asp files (and some graphics) and one .htm file and the source is very straight forward. Unzip to your wwwroot and give it a try! Be sure to change the SendTo address so it goes to your email account. Good luck!
This gives an alternating line color on tables, it also allows a realtime highlighting.
Only organize your directories, inlude your html pages anywhere. The asp source will automaticly create a Tree Menu (DHTML one). Nothing to do. You only have to go to the asp source and modify the begin of the path on which will be based your tree view. Look at readme.txt
This is an example of a real time date checker / date picker / open other window form. With lots of parameters passing examples Using a mix of asp, vbscript, and java.
This lets you click a button by a text box, click a date, and it fills in the textbox for you. Instructions: unzip into a single directory and look to popupcal.asp for a demo. Added comments to popupcal.asp to answer some of the questions people have had.
This is a very easy way to add a Tree View (like the VB Control) in your html page. With 1 function, add TreeViews with or without checkboxs and links. If you like it, vote for it ! Simon
This simulates a tab control in pure DHTML, using cascading stylesheets and VBScript to do the job. Mind you the VBScript code can easily be changed to JavaScript. With this, you can develop your own web application without haveing to use an Active-X control.
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 !.
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!
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!
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.
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.
This DHTML Dynamic Menu slides in from the sided. Using Javascript that is embedded in 2 ASP include files. The menu is Database driven.
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
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.
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).