20,316 Topics
I have several fields being updated for a parking structure... The client inputs the number of cars and can immediately see the percentage before updating the database.... The field names always change so I need the JavaScript to be able to pick up the unique field names calculate and place …
I'm trying to setup a simple php code that will read .txt files. I want the links to change $x to the desired .txt file, then print the results below the navigation. The code works if i predefine $x, but i want to make it where clicking the links defines …
Hi to all, hope you all will be fine, I use a script to detect IE and Mozilla but the problem is when i run it in the firefox it won't work then i find out the name of navigator and it shows Netscape. How i detect Mozilla here is …
hi guys :) i am new in the designing patterns field so i have a question i have made dots game(like [URL="http://www.arcadecabin.com/play/dots_game.html"]this)[/URL] which have two options a)play against the computer b)play multi users so i want to apply the state pattern so i will have two states a)play against the …
Hi I need to set the border width of a link when it is clicked. The link calls a javascript and so I need a way to identify which link has been clicked, hence the outline... i tried [code] this.style.borderWidth = 'thin'; [/code] but to no avail...?! I have already …
I did this site before Explorer 8 came out and I tested it on the latest version of all browser at that time and it worked... [url]http://watershot.com/[/url] but now on IE8 the menu are not appearing right, can anyone tell me whats the problem?
I have an anchor with a class name. When I click the anchor I want the class to change. When I click it again, I want it to change back. Simple, but I don't know JS. Thanks
hi, I am currently using an IFrame (in my jsp) to bring up a third party web content(ex.a payment page from [url]www.hsbc.com)[/url]. i want the external site to handle all the user actions (within the iframe). In this case I am unable to capture the errors or exception that the …
Thank you in advance for any help here. This is my first post and I will try to phrase what I am thinking. I am trying to validate the entry of a field based on entry in a second field. If field "A" has value 1, 2, or 3 then …
Hi everyone, hope someone can help. I'm very much a beginner in Javascript and 'ok' in html but just cannot get a new (picture) window to open in Firefox without the title and address bars (or anything else, just the image). IE shows just the title bar, with or without …
In the following I need/want to alter the field called "TopicBody" to align with the table that appears above it. No matter whether I tried div or span positioning but I cannot get it working correctly. Please tell me why. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> …
In another interesting development showing that open source truly has a place in corporate computing, Microsoft announced on Sunday that it will be adding the JQuery JavaScript library to ASP.NET. The move came after many ASP.NET developers requested similar features to those that JQuery provides. According to Scott Guthrie of …
For three years running, the Eclipse Foundation and its development community have successfully released—in full synchronicity—dozens of interoperable projects consisting of millions of lines of code. Impressive feat. Perhaps some of those developers might consider running for public office here in the U.S., where with energy prices approaching the stratosphere, …
If you’re a Ruby or Python developer building AJAX applications, you’ve got to learn JavaScript. Even if you’re converting Ruby code to client-side JavaScript with a tool like [URL= http://www.scribd.com/doc/220397/RJShow-it-works] RJS[/URL], it can still be helpful to know the AJAX component for adding features and debugging. Now Microsoft is promoting …
The Opera client used to be universally recognized as the alternative browser to Internet Explorer, and then along came Firefox and stole all the alternative browser thunder - and how. But the fat lady is still singing, and to prove it has released the [URL="http://www.opera.com/dragonfly/"]Opera Dragonfly[/URL] to debug web pages, …
I am not an easily shockable person. Anyone who knows me, anyone who has seen me, will understand this. Indeed, other than the usual trio of sexual or racial abuse and mindless violence it takes a lot to drop my jaw in shame and despair while browsing the web. However, …
[URL="http://po-ru.com/about/"]Paul Battley[/URL] is a software developer from London who can probably lay claim to being the biggest thorn in the side of the BBC right now. No sooner had the mighty British Broadband Corporation [URL="http://news.bbc.co.uk/1/hi/technology/7293988.stm"]announced[/URL] that his hack which allowed people to download iPlayer TV streams meant for an iPhone …
Hello, I would like to introduce to you a tag, which is unique to FireFox, called <canvas/>. It has amazing graphics, from another world, all with just a few lines of JS. For more information by Mozilla: [URL]http://developer.mozilla.org/en/docs/HTML:Canvas[/URL] For a complitation of Canvas's capabilities (by me :P): [URL]http://www.mattdsworld.com/shaffer/canvas/basic.html[/URL] Thanks, Shaffer.
I would be prepared to bet alot of money (if there was somewhere to bet this) that 60%+ have got there homepage set as one of the Google sites. I also bet that 60%+ of them have got the google toolbar. So why do they? To be honest I can't …
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; …
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
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 …
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 …
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 …
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 — don't hesitate to post back …
[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 …
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 …
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] — [color=green]The[/color] iframeFixer.js [color=green]must be included in your[/color] iframe page [color=green]including all pages …
Make regex creation easier! Enter regex, test string, select from various function to run, then see the output.
This version is more precise and accurate compared to my first posted version of this script.
By calling this function from the header row of your table, you can make your table collapsible.
Sometimes, you need to see what properties does that object have and what values are assigned to them. This snippet does that.
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).
compares to tables and highligthts the changes
converts the html tables which are created by string concatenation to dom table objects
very simple very powerful tab menu, it can be used as a switch menu or to hide-show associated panels.
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.
I have searched for a tab menu script for a long time but none of them was flexible enough,then i created one for me. The algorithm is nice so the script is not too long although being flexible. your tab menu is in an html table row as follows :
Accepts number as input, writes the prime numbers up to that number to the screen.
to demonstrate some usage of bitwise shift and xor operators, i created a conversion function using these two.
This pure javascript code simulates how multiplication is done by mips processors.
Converts binary numbers to their equivalent decimal numbers.
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] …
A simple date picker with live 12/24hr clock, month/week names, 2/4 digits' year display and supported with configuration settings...
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 …
[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]
First take two images named with smirk1.jpg and smirk2.jpg with same size paste below code and for Image write this code <IMG src="smirk1.jpg" name="smirk" onMouseOver="over(0);" onMouseOut="out(0);" />
Check this for disable Right Click Permissions
Random numbers from 1-50 are drawn and displayed in a alert dialog box.
The End.