button
Change Text Of Submit Button When Clicked
Fri, 03/19/2010 - 16:11 | by philipnorton42Changing the text of a submit button when clicked can be useful if you are writing an AJAX application or you know that there will be some sort of delay. Providing the user with some form of feedback is a useful way of letting them know they they have done something.
First, we need a form to work with, so I built a quick one here. Notice that the submit button has an onclick action associated with it, this will be used later to enable us to alter the text of the button.
The Script Element, Adding An Action To A Button And Functions In Flex
Wed, 11/05/2008 - 11:18 | by philipnorton42Yesterday I talked about creating some simple Flex elements in your application. Today I will introduce a new element called Script.
The Script element, if you haven't already guessed is used to run your application function and should be contained within the Application element. You can either put script inline like this.
Creating Some Simple Flex Interface Elements
Tue, 11/04/2008 - 12:21 | by philipnorton42Following on from my previous blog post about installing Flex on Windows I thought I would go through how to create an interface using mxml. When you create a Flex 3 project the first file you are given is called Main.mxml, which has the following content.
Highlight The Contents Of A Textarea With JavaScript
Wed, 08/27/2008 - 08:47 | by philipnorton42If you want to give your users a little snippet of code it is nice to give them the option of selecting the entire block of code without having to highlight the text manually. This can be done with a simple JavaScript button.
Take the following form:
Using JavaScript To Select Textarea Text
Tue, 07/01/2008 - 08:24 | by philipnorton42This is a simple trick that will allow users to select the contents of a text area. First we need a text area.