When to use a spinner vs a form object
When is using a spinner object appropriate, rather than using a standard text entry object (a.k.a. form, or text box)? I am looking for information on "best practices" in GUI. ...
When is using a spinner object appropriate, rather than using a standard text entry object (a.k.a. form, or text box)? I am looking for information on "best practices" in GUI. ...
I have a Django my_forms.py like this: class CarSearchForm(forms.Form): # lots of fields like this bodystyle = forms.ChoiceField(choices=bodystyle_choices()) Each choice is e.g. ("Saloon", "Saloon (15 cars)"). So the choices are computed by this function. def bodystyle_choices(): return [(bodystyle.bodystyle_name, '%s...
What is the best way to update a label on a windows forms application while processing. I have a loop that does some processing to files on the users system when the user clicks a button. foreach (System.IO.FileInfo f in dir.GetFiles("*.txt")) { // Do processing // Show progress bar // Update Label on Form, "f.Name is done pro...
Is there any way to stop Firefox from submitting a form on a Javascript error? I mean I know I can use an alert box or firebug to stop it from doing so, but...not all pages that people work on work with Firebug, and that alert box is just annoying... Maybe there's a setting in about:config? I could twiddle with? ...
I have a script that allows the posting of news. I want to be able to create a 'save as draft' button next to the 'publish' button. How can I allow the 'save as draft' button to pass a value to the back end? I just need a simple 1 or 0 depending on which button was pressed, I'm using php by the way. ...
I'm looking to create a form on my website where users can enter their email address and a message (however long). Then upon clicking on a submit button, the code, sends the message as an email to my mailbox. I was wondering if someone knew what code i could use. I am using PHP as my server-side language. ...
I am looking to revamp our CRUD web forms and would appreciate any examples of good UI design. We have lots of database tables that have minimal editing needs by the user - Country Codes, Tax codes, Product prices, and so on - and these all currently use a simple format for CRUD, but it was designed by developers and looks very bland, a...
Hello, I am new to windows Forms. I am using VS 2008, C# to write a RichTextBox. I want to be able to color each line with a different color as I write to the RichTextBox. Can someone point me to samples. Thanks foreach (string file in myfiles) { // As I process my files // richTextBox1.Text += "My processing results"; if(file ==...
Trying to use the nested model form in the new rails release candidate. I have this, but it only renders form fields for each existing associated photo object. (Given a form builder f that was created for my parent model object) %h3 Photos - f.fields_for :photos do |photo_form| %p = photo_form.label :caption = photo_form.te...
The website I'm developing will allow users to login at 3 levels. Level 1 - Not logged in Level 2 - They register their email address and receive a confirmation email, and login that way. Level 2 - They login with a username/password, which is then sent to a web service. If the web service comes back with a "successful login" result, ...
This is my first time posting - I greatly appreciate any and all guidance on this subject. Background: I am building a Real Estate web site. I would like to use the free IDX data provided by my local MLS board. The MLS board does not allow me the option of displaying a predefined search and only provides me with a link to the search fi...
I have a form on my page and am dynamically adding controls to the form with Javascript/JQuery. At some point I need to get all the values in the form on the client side as a collection or a query string. I don't want to submit the form because I want to pass the form values along with other information that I have on the client to a b...
I've gotten used to using <table>s for aligning my form fields perfectly. This is how I commonly write my forms: <table border="0"> <tr> <td><label for="f_name">First name:</label></td> <td><input type='text' id='f_name' name='f_name' /></td> <td class='error'><?=form_error('f_name');?></td> </tr> </table> I know ...
I have a custom made ASP control which is based on a select (drop down menu). If I disable my control by adding the word "disabled" in its html, I start getting null pointer errors when processing the form data. I figure, either the browser doesn't post back disabled form items or ASP.NET ignores them when processing the form data. I'...
I would like to make editing form fields as user-friendly as possible. For example, for numeric values, I would like the field to be displayed with commas (like number_with_precision). This is easy enough on the display side, but what about editing? Is there a good way to do this? I am using the Rails FormBuilder. Upon investigation, I...
I'm currently working on the requirements/scoping of a project now that could involve: 1) 5 to 6 forms 2) with 250 to 300 questions/fields accross the forms 3) 2 to 3 workflows Are there any .NET or cross-platform tools that will allow me to put the responsibility of developing the forms back onto a non-technical Business Analyst? Are...
A user will input text in a textarea. It is then inserted directly into a mySQL database. I use trim, htmlentities, mysql_real_escape_string on it and I have magic quotes enabled. How should I sanitize it when outputting that data back into a textarea? Thanks for your help. I've never been too sure on the correct way of doing this... ...
I appear to be having a problem with ASP.NET MVC in that, if I have more than one form on a page which uses the same name in each one, but as different types (radio/hidden/etc), then, when the first form posts (I choose the 'Date' radio button for instance), if the form is re-rendered (say as part of the results page), I seem to have the...
So far I've built a simple form for a user using the form_for method to wrap around my user model. But if I'm going to create a form now which doesn't doesn't map directly to any particular model, should I still be using form_for? ...
I'm writing a web form for my Ruby on Rails app. The form has a text field, some checkboxes, a set of radio buttons and two text boxes. What are the pluses and minuses of using GET over POST and vice versa. I always thought you should use GET for retrieving the form and POST for submitting, but I've just learnt you can do both. Does it...