Explore the Articles

JavaScript

Self Closing Pop Up window

Self Closing Pop Up window.

Read More
JavaScript

Random Images by using simple to modify JavaScript

Websites become very easy boring when the images stay static. So on heavy used sites on the internet and intranet sites we can get arround the problem rather easy. The most simple solution is random images each time the user visits the page.

Read More
JavaScript

Preview Image with File Field

This short tutorial will show you how to attach a pre-view button to your file field, so you can see what image your uploading before actual hitting the upload button.

Note: the script view below gets truncated due to the width of the page, please copy/paste the javascript from the example (right-click>view source).

Read More
JavaScript

Multiple delete using Javascript

This tutorial descibes how to create a delete page using Javascript for multidelete purpose, without having to convert the "coma" into "OR". The SQL command "DELETE * FROM table IN (1,2,etc...)" is used normally in the delete page. Read More
JavaScript

Adding Messenger Smilies to form fields!

If you have developed a forum that uses the Messenger Smilie extension, or simply want to allow uses to add smilies without typing them into form fields by hand then this could be just what you need!

By giving the user either a text or graphical link to click to enter smilies you can enhance the user experience, make your site or application a lot more user-friendly and reduce input errors by the user..............

This tutorial will guide you through how to implement such a system :)

Read More
JavaScript

Using Images to submit Forms!

Using this very simple piece of javascript, you can use an image to submit or reset your forms!

1.In Dreamweaver select the image you want to use to submit or reset you form.
2. In the link Box of the Properties palette type the following javascript

javascript:document.yourformname.submit()

javascript:document.yourformname.reset()

Save the document and test!

So now now you are able to use the images that you took so long to make to send your forms!

Alternativley you can add this code at source view

<a href="javascript:document.form1.submit()"><img src="images/your_image.jpg" width="189" height="192" border="0"></a>

 

<a href="javascript:document.form1.reset()"><img src="images/your_image.jpg" width="189" height="192" border="0"></a>

Read More
JavaScript

Creating client-side dynamic dependent list boxes

Client-side dynamic dependent list boxes allow a "child" list box to refresh when a selection is made in a "parent" list box, without having to return to the server. Most dynamic dependent list box models return to the server to requery the dependent list box's recordset. The model described in this TechNote passes dependent list box data to the browser in an array. It uses JavaScript to extract the appropriate values from the array and refresh the "child" list box in the client's browser.

The advantage to this approach is immediate page response; the user does not have to wait for the new page to be delivered from the remote server. The disadvantage is all the data for the dynamic dependent list box is sent to the client as text, thus increasing the size of the requested page. An evaluation must be made whether the increased page size warrants saving return trips to the server. If the amount of data required for the dynamic dependent list box is not significant, page size remains relatively small.

Read More
Newer articles