Results for "Category: Internet/ Browsers/ HTML"
Ping a machine from .NET. This code is CLR compliant.
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).
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.
The scope of this code is to allow the client to select a image on their harddrive and preview it before they submit it to your server, this source uses memory streams and swaps image objects and byte arrays back and forth to resize the image to a standard previewable size while the original image stays unchanged so you can store it. You can store the image to a database with related user data input or just save the image to a directory when the client does their final submit. Comments and suggestions are welcome, I have found this to be the easiest way to make this happen as IE7 does not allow you to load images from the users harddrive to the browser with client-side script. Please share if you have another way to do this in VB.NET
This short code keeps track of the number of people currently on your site - just like Dev-Center. Put this in a file called global.asa and upload it to the root web. [http://www.yourdomain.com/global.asa] Use the following in an ASP page to display the number of visitors: or
/* The purpose of this article is to help out people who know the basics of C but want to start learning TCP controls in C. This program will connect to a server and send a TCP packet containing "La la la la". */
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)
This code will check your POP3 e-mail account. Uses no MFC. It uses plain old winsock.. no winsock2. Also uses CreateThread, GetOpenFileName, trayicons, SetTimer, sndPlaySound, GetExitCodeThread, TerminateThread, and many more usefull API.
This ASP page is randomly refreshed. The refreshing time is from 5 up to 20 seconds. You can use it with displaying a commercial banners.
This is a basic redirection script based on the domain name. It is usefull if you are hosting multiple sites from one IP address.
Search in the site for any word
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.
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.
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.
This Script will go out to planetsourcecode.com and retrieve the newest submissions. It saves the data it got in a text file so we don't get the info every time the page loads. It will get the submissions from ALL Worlds on PSC. After it gathers the data it strips All the HTML from it. Then it will out put the submission in a table for easy display. See Screen Shot for Output. Ive Uploaded it in zip format now for eazy download.
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.
This is an Example of Server Side XML & XSLT With CSS, Javascript and HTML. It takes an XML File with Data collected about each file and folder in a directory. The Data collection was done with an other application that I wrote, email me for info about that... The output from this is a Explorer style looking window. see screen shot below. if you dont have an IIS Web Server to try this out you can goto http://camalotdesigns.com/pscode/ for a live demo. Please leave your comments and let me know what you think.
This is a subclassed richtextbox that supports mirc color codes. Uses regular expressions and highlights the line as it is inserted so its fast. Has a "Scroll to Bottom" method that scrolls the RichTextBox to the bottom. This is a "Work in progress" for a irc chat client I am working on. This control does not yet support mIRC Bold, Underline or Reverse formatting codes.
Resize and position the browser window
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.