Welcome To Snipplr
Everyone's Recent Snippets Tagged form
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Suppose you have a login form and you want to send the form when user press enter on his keyboard and not only by clicking on the submit button.
This can be achieved capturing a specific event when the user is typing. We have to capture the keypress...
        
        
        
            1 
        
        
            1911 
        
                    posted 15 years ago by ginoplusio
            This is the most simple example of a ComboBox created in AS3, based mostly on Adobe's example from http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7fa9.html
Inside the zip file you will find two...
        
        
        
            0 
        
        
            2358 
        
                    posted 15 years ago by Winkyboy
            the user sees the confirmation page immedeateley. this is helpful if the mail() function takes some time
        
        
        
            0 
        
        
            1271 
        
                    posted 15 years ago by miebach
            Paste this into your AS file to add focus and blur events to your text/form fields. If your field contains YOUR DEFAULT MESSAGE when focus is brought to it, it will erase itself, to be ready for text entry. If focus is lost while the field is complet...
        
        
        
            0 
        
        
            1406 
        
                    posted 15 years ago by Winkyboy
            The source below is the function from the website with the corrected regular expression found in the site's comments. This is a nigh-one-line function for validating a string as an email address.
        
        
        
            4 
        
        
            1909 
        
                    posted 15 years ago by Winkyboy
            This snippet allows you to update multiple rows of a database using a single form in one easy click
        
        
        
            0 
        
        
            1907 
        
                    posted 16 years ago by daveismyname
            I use this to activate basic forms for clients. Just make sure your form input names are named appropriately.  Any inputs such as phone or fax that are separated into different inputs should have the same name.
        
        
        
            1 
        
        
            1581 
        
                    posted 16 years ago by dmautz1
            Summarised snippet of Natbat's article: http://natbat.net/2009/Jun/10/styling-buttons-as-links/
Any link that that initiates an action, rather than just changing a page should semantically be a form with a submit button not a l ink. However you ca...
        
        
        
            3 
        
        
            2089 
        
                    posted 16 years ago by PeteW
            Usage: 
//any element
window.onload = function(){
    focusFirstInput();
}
or 
// form elements under 'content-body'
window.onload = function(){
    focusFirstInput('content-body');
}
        
        
        
            0 
        
        
            1288 
        
                    posted 16 years ago by neoprolog
            Every now and then I need a form select list of all provinces and states... I figured I'm not the only one, so here you go, hope it helps!
        
        
        
            1 
        
        
            2606 
        
                    posted 16 years ago by ecardoza
            
