52,566 Archived Topics

Remove Filter
Member Avatar for
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 xml
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 …

0
955
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 image javascript
0
202
Member Avatar for essential

This script is capable of handling multiple iframes inside your page. Which allow you to specify [b]fixed[/b] [color=red]Width[/color]/[color=red]Height[/color] with your iframes' to ensure layout stability in your page and also it comes with an auto-fit feature. [b]<<<INSTRUCTION>>>[/b] &#8212; [color=green]The[/color] iframeFixer.js [color=green]must be included in your[/color] iframe page [color=green]including all pages …

Web Development html-css javascript
Member Avatar for essential
0
206
Member Avatar for JugglerDrummer

Make regex creation easier! Enter regex, test string, select from various function to run, then see the output.

Web Development javascript regex
Member Avatar for JugglerDrummer
0
212
Member Avatar for essential

This version is more precise and accurate compared to my first posted version of this script.

Web Development javascript
0
187
Member Avatar for alpschints

ADODB.Field error '80020009' Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /nirmal/asp/editrecord.asp, line 0

Web Development asp
0
317
Member Avatar for serkan sendur
0
789
Member Avatar for serkan sendur

By calling this function from the header row of your table, you can make your table collapsible.

Web Development javascript
0
195
Member Avatar for serkan sendur

Sometimes, you need to see what properties does that object have and what values are assigned to them. This snippet does that.

Web Development javascript
0
181
Member Avatar for serkan sendur

in the previous snippet i compared two tables having columns as name and value pairs. this new one compares two tables of any number of columns(as long as it is the same number on both tables).

Web Development html-css javascript
Member Avatar for serkan sendur
0
148
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
2K
Member Avatar for serkan sendur

converts the html tables which are created by string concatenation to dom table objects

Web Development html-css javascript
0
140
Member Avatar for serkan sendur

I saw that in some xml files, child numbers are not the same for the elements which will correspond to our table rows. So i created a more smart version which is error tolerant.

Web Development html-css javascript xml
0
158
Member Avatar for serkan sendur
Member Avatar for BinodSuman
0
4K
Member Avatar for serkan sendur
0
101
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
129
Member Avatar for digital-ether

This class allows you to use the Google AJAX Translation API to translate arbitrary text to the many languages supported by the Google API. Source versioning added to: [url]http://code.google.com/p/php-language-api/[/url]

Web Development api google google-api php
0
1K
Member Avatar for serkan sendur

Accepts number as input, writes the prime numbers up to that number to the screen.

Web Development javascript
0
161
Member Avatar for serkan sendur

to demonstrate some usage of bitwise shift and xor operators, i created a conversion function using these two.

Web Development javascript
0
148
Member Avatar for serkan sendur

This pure javascript code simulates how multiplication is done by mips processors.

Web Development javascript
0
158
Member Avatar for serkan sendur

Converts binary numbers to their equivalent decimal numbers.

Web Development javascript
0
149
Member Avatar for essential

A basic example on how to change your stylesheet dynamicaly! I will use a dropDown list to control the environtment! Assuming that you have 4 different .css ( default, red, blue and green ) on your directory! From this line you'll have to replace this with your own stylesheets. [b]default.css[/b] …

Web Development javascript
Member Avatar for hakimkal
0
160
Member Avatar for essential

A simple date picker with live 12/24hr clock, month/week names, 2/4 digits' year display and supported with configuration settings...

Web Development javascript
Member Avatar for uringinteristi
0
147
Member Avatar for essential

Making a calendar is a bit more complex than making a timer or clock but mostly because any calendar script is going to be generating HTML to display the calendar and whenever you have programs writing programs things always get a bit funky! We'll do this as a prototype so …

Web Development javascript
Member Avatar for DealthRune
0
4K
Member Avatar for essential

[color=maroon]This method escapes all &, <, and > symbols in the string, making it safe to display the string on a web page without fear that it will be treated as HTML.[/color]

Web Development javascript
Member Avatar for westworld
0
211
Member Avatar for Mohan0704

Random numbers from 1-50 are drawn and displayed in a alert dialog box.

Web Development javascript
0
164
Member Avatar for digital-ether

Just copy and paste the snippet into a file and save. You need to save this under the web root, not in a web accessible folder. For example, on linux you could save it in your home directory. Say your user is "joe" then save it in /home/joe/ . Ify …

Web Development php
0
272
Member Avatar for Shalvin

Uploading a file to a specific folder inside the virtual directory.

Web Development asp.net
0
136
Member Avatar for Shalvin

aspnet_regsql is a tool user for installing membership, role and personalization tables to Sql Server. 1. Porting all tables to Sql Server 2. Porting only membership tables to Sql Server 3. Removing all membership and role tables 4. Removing Personalization tables. I am be posting a detailed blog on Membership …

Web Development asp.net
0
148
Member Avatar for Shalvin

Web site Administration Tool is accessible only from the hosting server. Many times programmers won't have direct access to the the hosting server. So knowledge of ASP.Net Membership classes is an added advantage in creating an administrative module for the site. In this code snippet we will take up: 1. …

Web Development asp asp.net web-server
0
103
Member Avatar for serkan sendur

when you have long web pages, your users may be confused scrolling within your pages because built-in javascript scrollIntoView method makes the page move suddenly. ScrollToControl method moves slowly enabling the user to keep track of where he/she is going.

Web Development javascript
Member Avatar for serkan sendur
0
189
Member Avatar for maddog39

This class will allow you to take an RSS feed (local or remote) and "export" it to an easily managed/viewed array. Below is an example of it usage: [code=php] <?php include("exportrss.php"); // Parse XML/RSS 2.0 feed $feed = new ExportRSS("test.xml", "2.0"); $channel = $feed->get_channel_data(); echo "<h3>Channel</h3> <p> <b>Title:</b> {$channel['title']}<br/> <b>Date:</b> …

Web Development php xml
0
333
Member Avatar for Shaffer

This function distributes mail to a mailing list, out of an array. Wether the array is plundered from a database, a file, or from the code, the function only takes a prepared one. Also, this function is only good for HTML messages. The array's syntax is to be: [code] array("recipent's …

Web Development email html-css php
Member Avatar for sonny.scroggin
0
143
Member Avatar for Shaffer

This function caps a specific letter of a string, and returns the updated string. THe first letter is 0, as it is default as well.

Web Development php
Member Avatar for Shaffer
0
149
Member Avatar for MitkOK

Here are two simple functions to validate name and e-mail . int [COLOR="#008000"]valName[/COLOR]( string $arg1 ) - this function returns 1 if name is correct, 0 if incorrect int [COLOR="Green"]valMail[/COLOR]( string $arg1 ) - this function returns 1 if name is correct, 0 if incorrect

Web Development php
0
187
Member Avatar for php4ever

Okay so I had this need to vary the template layout of an osCommerce theme using its BTS (basic template system) and noticed that unlike standard osCommerce where you can edit each and every individual page to have a unique layout, BTS uses a template system to generate its look. …

Web Development cms flash php
0
126
Member Avatar for Stylish

I needed a way to spawn multiple threads, have them monitored, and restarted if an error occured. I came up with the following. This snippet is from a larger program, so if there is a problem please let me know. This is for command line and tested on Linux (well, …

Web Development ruby
0
125
Member Avatar for daniusr

This script displays the current time in your browser. You can choose the 12-hours format or the 24-hours format.

Web Development javascript
Member Avatar for fclose_fp
0
295
Member Avatar for IP2Location

This is ASP script to enable lookup country, region, city, latitude, longitude, ZIPcode, Timezone and netspeedomain and netspeed from IP address by using IP2Location database. Free sample database available at [URL]http://www.ip2location.com[/URL]. The script supports several database types such as Microsoft Access, MS SQL and mySQL. Internet geolocation has been widely …

0
419
Member Avatar for MattEvans

You want your object to do a number of different things when it's clicked, and you've used up onmouseup, onmousedown and onclick. There are some properietry solutions to this, but it's quite a simple thing really. Copy and paste the MultiHandle object into an empty js file, include it in …

Web Development javascript
Member Avatar for MattEvans
0
160
Member Avatar for diafol

A simple example of date (day and month) translation. The code is for Welsh, but can be easily modified for any language - especially those without "full" support. I have used the code in a footer to display the last updated date and time. //EDIT - a few years later …

Web Development php
Member Avatar for 42south
0
254
Member Avatar for Banderson

[COLOR=Blue] Ever since PHP turned register_globals_off I have had problems here and there in my codes. I searched hard and long for a simple fix while keeping globals turned off. Fortunately, I found one! I have posted it below for your convenience and it is also described [URL=http://www.nasatech.com/PHP-DOCS/faq.misc.html#faq.misc.registerglobals]Here[/URL]. I'm not …

Web Development php
Member Avatar for Banderson
0
430
Member Avatar for vegaseat

Using an SDL (Simple DirectMedia Layer) wrapper is one way to play sound and music with Ruby. I have tested this snippet with .MID .MOD and .WAV files and it performs well. There are several SDL wrappers for Ruby available, I picked RUDL because of its simplicity. RUDL is great …

Web Development ruby
0
296

The End.