Advertisement

Results for "Category: Internet/ Browsers/ HTML"

2002ASP #8040
Detect if cookies are enabled

When you work with cookies, you always run into paranoid types who disable their cookies. If you don't detect and deal with them, your code may not work. This code detects the user's cookie settings using the ASP Session object. Unlike some other implementations, it requires only one script page.

2002ASP #8052
Send Email from ASP with attachment using CDONTS without getting unspeciefied error 80004005

You can send an Email with attachment(s) from your ASP page using CDONTS. There is some code here on planet-source-code, but it does only work on the webserver itself, because the code does NOT first upload the attachment to the WebServer. This is neccesary, because the webserver the ASP is on cannot access your harddrive and pick up the file you want to send as attachment. If you don't, you get "Unspecified Error 80004005" Make sure you have IIS with CDONTS (standard under IIS5) installed and the SMTP virtual server is running on the webserver. The magnificent code to upload a file to a webserver is from Karl P. Grear and can be found on planet-source-code (Form Based File Upload Using Pure ASP).

2002ASP #8053
Browse Favorites

Using the Windows Scripting Host this VBScript retrieves the users favorites folder and loads the url links into an array, then goes to each site for three minutes.

2002ASP #8057
Hack... er, uh... verify ISP/website security

My purpose for this was educational. I was trying to learn the Scripting.FileSystemObjects which were not documented well at the time. You can use it for educational purposes, or to test the security and see how well your server's NT user permissions are locked down (for instance, if your anonymous user can browse and download files from your WinNt directory (which is usually the case!), your permissions are probably not quite up to snuff)

2002ASP #8059
Domain Redirect

This is a basic redirection script based on the domain name. It is usefull if you are hosting multiple sites from one IP address.

2002ASP #8065
Simple Search

Search in the site for any word

2002ASP #8066
Send Mail using ActiveX DLL

You can send e-mail whom ever you want from who ever you want, using wich ever server you want This program uses my own control Active X, in the zip you can find the source code.

2002ASP #8067
Controlling the Height of HTML Tables that Contain Forms

When working with HTML forms and ASP the order of the tags CAN and WILL make a difference! This article details some traps that HTML newbies can run into when designing ASP pages.

2002ASP #8068
Writing a COM Object in Visual Basic

This a tutorial I wrote because I had so much trouble learning how to write a COM object, I wanted to put it in simple terms for anyone else who might want to get into it.

2002ASP #8074
Banner Rotator with Stats

This Banner Rotator stores The Image URLs, Links, Tracking URLs, Views, adn Clicks in a database. When the banner loads it update the views for that banner in the database. when a user clicks the banner it updates the clicks in the data base. On the stats page(type http:/yoururl/ad.asp?fadmin=True to get there.) you can sort banners by ID, Views Or Clicks. It displays 10 banner stats per page. A sample database is included. make sure you change the gblConnection String at the top of the asp file to the location of the database. Please post your comments/questions.

2002ASP #8076
Resize and move browser window after opening

Resize and position the browser window

2002ASP #8088
VBScript Tutorial: Chapter 2--Introduction to the IE Object Model

Since you are using VBScript, that should mean that either you have separate versions for Netscape and Internet Explorer users, make pages which tailor themselves to the client's browser, use VBScript only for non-essential page features, or are developing only for people using Internet Explorer. I have provided an example of a forwarding page which separates users capable of VBScript from others, and also a script which calls extra features if the client is using Internet Explorer. Note that they both use JavaScript, so that they will function in either NN of IE.

2002ASP #8094
Force a Save File Dialog

This piece of code FORCES the user to save known file types (ie: *.mpg, *.gif, *.jpg, *.htm... you get the idea). Normally these (known file types) are opened in the browser, if you wish to bypass this feature in the browsers and allow the user to save a copy to their local computer without telling them to "right click" on the file and select "save target", this is the way. This code is REAL SIMPLE. I commented EVERY line so you know exacly what purpose it serves. If you have any enhancements to make to it, please let me know I'd love to see them. Please vote good or bad, 'cause I'd like to know.

2002ASP #8140
Polls Admin v2.02

Polls Admin is back. Custom number of questions, customizable layout, emailing, printing.

2002ASP #8164
Parse Metadata from URLs

This class demonstrates how you can request the HTML of a URL from another website using the XMLHTTP object to spider the web page. (Simular to the methods of the ASPHttp object). The data is parsed and made available through a class object. This code is great if you are thinking about creating a Search Engine - or you just want to verify that URLs exist that users may place in there profiles. Also handy for finding broken links. If your server has IE5, or XML objects from Microsoft installed on it, then you should be able to use this demonstration without any problems.

2002ASP #8165
Client Bandwidth Recorder

Measures the bandwidth in kbps (kilobits per second) that the client is viewing your website at. Works with modems, dsl, cable modems, network cards and any other means of connecting to the internet.

2002ASP #8190
Detect if Cookies are Enabled with 1 (that's one!) line of code

In looking for an easy way to detect the client browser's cookie settings, everything I've found has been complex. Each example I've found requires a page refresh or redirect to itself. This severely hampers true application development as the Request.Form collection is then cleared. This code is something simple I stumbled on and it works (see explanations).

2002ASP #8211
Spell Checker

Use Microsoft word spell checker utility

2002ASP #8218
Web Site Designing (HTML, DHTML, JavaScript, CSS and DOM)

"Web Site Designing" is a tutorial which aims to teach the Internet, HTML, DHTML, JavaScript, CSS and DOM. No prior knowledge / experience is required.

2002ASP #8220
Guestbook w/o Database Version 2.0

To have a completely functional Guestbook on your website, MINUS the difficulty of a database.

Languages
Top Categories
Global Discovery