A couple of Prototype Ports for ActionScript





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

12
Date Submitted Mon. Oct. 30th, 2006 2:23 PM
Revision 1
Beginner Mattkins
Tags CSS | DHTML | JavaScript
Comments 3 comments
Allows you to hide all elements on an HTML page by their tag name. Extremely handy in getting around the "Windowless Elements" problem in IE, which is a bug that puts certain elements, most commonly select boxes, on top of any other element, no matter what. As you can imagine, this causes real problems with DHTML drop-down menus and such like. This is the simplest and quickest fix I've come up with, I simply set this function to run alongside the drop-down and all of the select tags vanish before a menu drops, then I run the show function when the menu retracts.
11
Date Submitted Sun. Oct. 9th, 2005 8:12 PM
Revision 1
Coder mattrmiller
Tags Cookie | JavaScript | Set
Comments 0 comments
Set a Cookie
13
Date Submitted Sun. Oct. 9th, 2005 8:13 PM
Revision 1
Coder mattrmiller
Tags Cookie | Delete | JavaScript
Comments 0 comments
Delete a Cookie
11
Date Submitted Sun. Oct. 9th, 2005 8:15 PM
Revision 1
Coder mattrmiller
Tags Cookie | Get | JavaScript
Comments 0 comments
Get a Cookie Value
9
Date Submitted Mon. Apr. 3rd, 2006 8:59 AM
Revision 1
Coder mattrmiller
Tags Back | Button | JavaScript
Comments 1 comments
A simple back button in JavaScript.
10
Date Submitted Mon. May. 1st, 2006 8:26 AM
Revision 1
Coder mattrmiller
Tags Focus | Form | JavaScript | Password | Username
Comments 0 comments
This is a correct way to do login form auto-focus, checking to see if either username or password have focus already. This prevents someone from typing a username hitting TAB, then having JavaScript chime in, resetting focus to Username while user is typing in their password. In this case, the password is appended to the username which is in plaintext.
8
Date Submitted Wed. Feb. 21st, 2007 8:53 AM
Revision 1
Beginner mikedowson
Tags CSS | JavaScript
Comments 2 comments
An easy way to hide and show div's using Javascript and CSS.

Basically just a slight variation on this script by Real Gagnon.
10
Date Submitted Wed. Feb. 28th, 2007 3:35 PM
Revision 1
Helper mjlintz
Tags JavaScript
Comments 2 comments
Highlight table row on rollover.
5
Date Submitted Tue. Sep. 5th, 2006 8:27 PM
Revision 1
Beginner MovingParts
Tags Bind | Control | controls | datasource | same | two
Comments 0 comments
so you executed a query that took .5 second to execute and you want to bind that to a windows control. next you decide that you will need to have two controls bound to the same datasource. not a problem, except when you do this:
control1.datasource = datatable
control2.datasource = datatable

you notice that each control mirrors the other and you cannot pick two seperate and distinct values.

one way to solve this is to create two datatables and execute the query twice. unfortunately this now doubles your query time. bad idea.

here is the elegant solution...
8
Date Submitted Fri. Dec. 8th, 2006 9:28 PM
Revision 1
Beginner neshumah
Tags ActionScript | Random
Comments 0 comments
Return a random number within a gived range