331 Reusable Code Snippet Topics

Remove Filter
Member Avatar for
Member Avatar for ayesha789

This code is about months and year options. When you change the months or Year and press Submit button it will show selected month and year which you sleclet. This will be helpful for you all.

Web Development php
0
133
Member Avatar for ArtistScope

ASP code snippet to detect visitors and monitor their current activity. Monitor and display which visitors are currently visiting which web page, IP number, user-agent, language preference, page referrer and more. In the settings file you can specify for how long to retain the display, for example show visitors activity …

Web Development asp
0
294
Member Avatar for MitkOK

Hello. I know that there are many ways to convert date in PHP, but i use those to two convert from/to MySQL DB.

Web Development php
Member Avatar for asimshahiddIT
0
198
Member Avatar for scaiferw

I wrote this code because I wanted the members of my volunteer organization go have a place they could easily get the most current list of email addresses to send a message. This code reads the names and addresses from the database, and creates a comma delimited list of addresses …

Web Development email javascript php
0
143
Member Avatar for iamrashid

It is a simple one and a more complex one will be here soon this code has not been tested but it works well on IE 6.0+ Do enjoy and Comment it Please

Web Development javascript
Member Avatar for vmars
1
133
Member Avatar for jhbalaji

I was digging through my old codes to get this, still could not find. Hence when I wrote it, just made a note here such that later it wont be difficult to find atleast for me. [B]Format filesize, php filesize human readable[/B]

Web Development php
0
163
Member Avatar for Santho786

how to avoid validation summary when required field validator is disabled..i am disabling required filed validator from java script...eventhough i disabled it ...error message is shown in validation summary. I am facing the error... Explain how to go ahead ... i need to go ahead with jsp, javascript, not with …

Web Development javascript
0
213
Member Avatar for ReDuX

Do you work with datasheets regularly ? Always getting .pdf files open in your browser and having to wait EONs for them to download/display ? Well here is a resolve for that most frustrating of problems with Adobe's "Handy file intercept" feature. Use this script to FORCE the browser to …

Web Development adobe pdf php
Member Avatar for w3m
0
156
Member Avatar for peter_budo

In my current project we need to provide drag&drop functionality of items from left to right and vice-versa and on click of the button send array of item IDs to server. Main problem was that we couldn't get array across to server and online examples that we found did not …

Web Development javascript javascript-jquery
2
908
Member Avatar for cwarn23

Hi, I have made an encryption and decryption script for those who want to encode data and decode the encoded data. This script may especially be useful for those who do not have the mbstring library installed as it uses a math grid. So for example you can store the …

Web Development php
0
339
Member Avatar for YoungCoder
Member Avatar for omol
0
129
Member Avatar for corewizard

this script, made by me, lets you resize an image propotionally!

Web Development php
Member Avatar for chumsie
0
131
Member Avatar for The web master

here is a javascript code for puting a message in your status bar on your website.Just change testing 123 to your message.:)

Web Development javascript
-2
168
Member Avatar for umut78

Thanks to the MS [ICODE]filter[/ICODE] property that disables Cleartype while applying effects. [B]Instructions:[/B] [LIST=1] [*]Paste the snippet to HEAD section of your document. [*]Paste this HTML to HEAD section of your document: [CODE=CSS] <style type="text/css"> .faded { filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=90); } .okay { filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=100); } </style> [/CODE] [*]Add these class, …

Web Development javascript
0
177
Member Avatar for Krstevski

This simple library containing some methods of Ajax. Example about addContent(url, target): With this function you can change the content of the someone DIV tag. E.g: index.php [CODE=php] <html> <head> <title>Untitled Document</title> <script type="text/javascript" src="ajax.js"></script> </head> <body> <div id="test"> <a href="javascript: addContent('test.php', 'content')"> Change </a> </div> <div id="content"> <label> This …

Web Development javascript
0
861
Member Avatar for ReDuX

If you have done a PHP based website, chances are you have dynamic content called by variables and so on. As many people use a main page (index.php) and use code within that page to dictate what content is displayed, either with if or switches or whatever. Thing is, Google …

Web Development php
Member Avatar for wiltekg
0
121
Member Avatar for beanonymous

OK here is a piece of code I've been working on that actually logs you in and returns what ever Curl sees except i have no idea how to make Curl function correctly with websites that require cookie authentication correctly, can anyone help? =/

Web Development php
0
187
Member Avatar for linksprocket

Hope some one can assist me Below is my code which works fine. I need to be able to select more than one of the options at the same time. The code at the moment will only select one option rather than all my options. Any advice would be great.

Web Development javascript
Member Avatar for Hangfire
0
185
Member Avatar for sohil.shivani

Hello sir, I tried with this code it is running well but I am not getting mail in my account with this code, even this code is not giving any error. Is there any problem?? Please help me.

Web Development asp.net c#
0
489
Member Avatar for greenphpcoder

hi i was set the task to increment a number by x every x seconds and i tried to find some [URL="http://www.daniweb.com/code/../techtalkforums/thread68355.html#"]code[/URL] off the net, but found the subject covered very sparsley so for whoevers benefit ill post the code here hope it helps [URL]http://www.daniweb.com/code/../techtalkforums/dani-images/smilies/fiyellow/icon_smile.gif[/URL] Thanks Nicholas

Web Development php
Member Avatar for sharasyn
0
905
Member Avatar for fsn812

A very simple PHP/Javascript snippet to detect the resolution of a user's monitor and create a table using that resolution to best fit within the user's browser (to avoid scrolling). Note: This is a PHP script which includes Javascript

Web Development javascript
Member Avatar for almostbob
0
542
Member Avatar for DealthRune

This one is a messaging system! Made it myself, works great! Hopes you like :)

Web Development php
Member Avatar for jamied_uk
1
259
Member Avatar for murugavel.b

If you want to restrict the user to go back or forward from the web browser, you can use the below mentioned javascript. Use this javascript in the script tag. It works on all browsers. For further details: [url]http://dotnetbypulikesi.blogspot.com[/url]

Web Development asp.net javascript
1
188
Member Avatar for DealthRune

This is it, I've completed my forum script and I'm sharing it with you!!!!!!! :O Hope you like it, if you find any bugs, please post it here Oh yea, and the first registered person will be the admin

Web Development php
Member Avatar for smartness
0
171
Member Avatar for mikeSQL

This tutorial shows how to greet your visitors depending on what time of day it is. If it's morning, it greets your visitor with "Good Morning!" If it's afternoon, it greets them with "Good Afternoon!" Magic? Noooo! Just PHP! We will start by looking at the entire script and then …

Web Development php
Member Avatar for LloydFarrell
0
126
Member Avatar for Graphix

You can place the game "Blackjack" by adding the following script to your website. All the information is included within the script, please do not remove the warranty or information. If you don't want such a big lap of code on your website, you can also place the following, as …

Web Development gaming javascript
0
472
Member Avatar for Graphix

This script can be used for star ratings on for example forum or music sites. The scriptinformation is included within the script. ~G

Web Development javascript
2
422
Member Avatar for Alxandr

This is a simple code-snippet that can be used to parse dates with javascript. It's setup to use European dates (dd.mm.yyyy | dd/mm/yyyy | dd,mm,yyyy), but it can easily be setup to use american dates as well (mm/dd/yyyy etc), to do so simply replace "$1" with "$2" and "$2" with …

Web Development javascript
0
329
Member Avatar for marulu

I am in the process of learning PHP with JS and Ajax and have the foll. problems. I have created a class to generate master data entry screens. (1) Javascript code that works when I run master.class.php independently does not work when I run users.php. I came across this problem …

Web Development javascript php
0
145
Member Avatar for alxwm

I wont describe whats here, just figure it out yerself, enjoy =)

Web Development php
Member Avatar for anmurthy
0
98
Member Avatar for DealthRune

This is a nice and easy table editer. Use it to add and delete cells, rows, and a caption

Web Development javascript
Member Avatar for Jonh S. Brown
1
160
Member Avatar for DealthRune

Use this to encrypt your passwords, for login fields and password protection.

Web Development javascript
Member Avatar for LUCKYLOVE
0
303
Member Avatar for Drew

I created this code because i was bored and wanted to try something with some code and i ended up creating this little code snip. [B] Code from: [URL]http://www.iportalx.net[/URL][/B]

Web Development asp
Member Avatar for yonker
0
198
Member Avatar for msaqib

This is a small function that will block the specific IP from viewing the certain page, and it will redirect the user to the main page or noaccess page.

Web Development asp
Member Avatar for yonker
0
323
Member Avatar for corewizard
Member Avatar for JLChafardet
0
219
Member Avatar for dokinah1

this php n html code is supposeed to allow editting of property info/details

Web Development php
Member Avatar for poojamakhija
0
263
Member Avatar for itsjareds

Here's a script I worked up to convert binary code into ASCII. Didn't work out an ASCII to binary conversion yet.

Web Development javascript
Member Avatar for digital-ether
0
996
Member Avatar for serkan sendur
Member Avatar for digital-ether
0
222
Member Avatar for click here

Overview this is a fast way to delete Records from your mysql datebase without loading the page . this jquery code can Delete a Record with animation fade-out effect using jQuery and Ajax. <FAKE SIGNATURE>

Web Development javascript-jquery php
0
167
Member Avatar for somedude3488

Got bored and made a function that handles filling strings similar to mysqli bind_param. It actually gets used a lot in my code. Figured someone else might find it useful. Example usage: Using question marks as place holders [code] $str = 'Hello, my daniweb user name is ? and my …

Web Development php
Member Avatar for somedude3488
0
152
Member Avatar for stevenpetersen

1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> [ICODE]<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function ViewImage(ifile,ix,iy,ititle) { var win; var sWidth; …

Web Development javascript
0
198
Member Avatar for slac3dork

A simple domain name checker. This script use service from who.is Usage: ruby domainchecker.rb <domain_name>

Web Development ruby
0
501
Member Avatar for Menster

Hi there peoples, This is a currency converter, built with a combination of javascript and php, which uses an XML feed from [url]http://www.ecb.int/[/url] to get up to date exchange rates. I know the xml handling is not very elegant, but it is functional :) Additions/comments/corrections welcome

Web Development php
0
273
Member Avatar for essential

This script will lists all available methods, properties, values, and types, supported inside your browser. This is useful when you are creating script and you want to see a full reference lists of methods supported on the browser that you are working on - then you can simply run the …

Web Development javascript
0
217
Member Avatar for Gabarieko

This is a javascript code to fix any element in any browser. Simply add "fixed" to the classes of the desired element. Examples: [icode] <div class="fixed">FIXED</div> <div class="someClass fixed">FIXED</div> [/icode] Though it's a little rough when scrolling I hope it will do the job. The way it works: - By …

Web Development javascript
0
347
Member Avatar for Ramesh S

Sometimes you might need to have checkboxes for each row in a GridView control (like Inbox in Gmail). This code snippet helps to select/unselect all checkboxes in the GridView control by clicking the header checkbox. The selectUnselectCheckboxes() javascript function handles this fuctionality. This function is called in the CheckBox in …

Web Development asp.net
0
319
Member Avatar for essential

A simple tool that provides easy navigation in your site using a Combo box. It lets you jump to different location on the Web and also included with text display, which provides short details about the site. If you have comments, suggestions or request &#8212; don't hesitate to post back …

Web Development javascript
Member Avatar for DealthRune
0
184
Member Avatar for Airshow

[B]INTRODUCTION[/B] The W3C's [URL=http://www.w3.org/TR/Window]Window Object 1.0[/URL] specification (Working Draft dated 07 April 2006 at the time of writing) defines in it's [URL=http://www.w3.org/TR/Window/#location-attributes]Location Interface[/URL] section a set of attributes (or fragments) by which a Location object may be addressed. Despite the draft status of this document, many implementations of javascript have …

Web Development javascript
0
954
Member Avatar for itsjareds

I answered a question a few days ago on Yahoo! Answers where I helped (did all the work for) the question asker. They were asking for a way to parse text from a <textarea> and search for HTML-like elements that were named in a database (or an array, in my …

Web Development php xml
Member Avatar for itsjareds
0
151
Member Avatar for essential

This script simply preload's images inside (x)HTML document. [b]<<<INSTRUCTION>>>[/b] — Simply attached these preloader.js in your document, were you want your images to be preloaded. — You can simply referenced it using [icode]<script type="text/javascript" src="path/preloader.js"></script>[/icode] block. — if you have any suggestions, comments or request, please feel free to post …

Web Development javascript
0
202

The End.