First, a little bit of context (cause I know you all love it!):
I have a model called Note. It has a field called Type which, in the database, is an integer value that designates which type of object this note belongs to (1 = Customer, 2 = Sales Lead, etc). A second field called Source designates the ID of the specific object that this ...
I would like to use this to hide/expand columns:
http://www.fiendish.demon.co.uk/html/javascript/hidetablecols.html
but remove eveything having to do with the form. The java script function must be changed accordingly but I am not having any luck. Any suggestions?
Thanks.
...
I want to modify a few tiny details of Django's built-in django.contrib.auth module. Specifically, I want a different form that makes username an email field (and email an alternate email address. (I'd rather not modify auth any more than necessary -- a simple form change seems to be all that's needed.)
When I use autodiscover with a...
I have an app that would benefit from google-style autocompletion while filling in an entry field.
Any pointers on how this is implemented, or a package that I can drop in to assist?
...
Hi
I have an HTML form - with PHP, I am sending the data of the form into a MySQL database. Some of the answers to the questions on the form have checkboxes. Obviously, the user does not have to tick all checkboxes for one question. I also want to make the other questions (including radio groups) optional.
However, if I submit the form...
I want to be able to update a dynamic number of objects within a single form using Django and I'm wondering what the best way to do this would be. An example of a similar situation may help.
Model:
class Customer(Model.models):
name = models.CharField(max_length=100)
active = models.BooleanField()
Form (I know I'm mixing view...
I'm trying to get access to a form and its elements. The form is within an iframe and the javascript code that is accessing the form is within the main document.
I'm not sure what else I should put into the question, so please let me know if I need to add something else.
(form and main page are in the same domain)
Thanks
...
Hi guys,
I have this struts tag:
<s:select name="country.id"
list="countries"
listValue="name"
listKey="id"
headerValue="Select Country"
headerKey=""
label="Country" />
which outputs the following html code:
<select name="country.id" tabindex="12" id="registration_country">
<option value="">Select Country</option>
<optio...
From my time working with Ruby On rails, there is a couple different packaged/projects out there to manage both validation and error reporting in an extensible way.
Self-studying Python Pylons I just got introduced to HTMLFill which so far seems like an elegant solution to a common task of form validation.
I know both examples are feat...
I have a simple form on a view page, implemented as a user control, that looks something like this:
<%=Html.BeginForm("List", "Building", FormMethod.Post) %>
//several fields go here
<%Html.EndForm(); %>
There are two problems I would like resolved, the first is that I would like the controller method that receives this to take a ty...
What do you call a form with two list boxes and buttons to move the list box items from one to the other? I've always called it a "switch list".
...
I've been looking all over the Internet for a tutorial that teaches the Qt designer and how to add C++ code and functionality to my forms but so far all I can find is either coding using a text-editor or designing forms only. If you know one that has both please let me know of it. Thanks!
...
Hi,
i'm quite new with windows forms and i have a small issue.
i have a form that contains a userControl.
the form also contains a button with enabled = false, and upon some user selection in the userControl sets the button to enabled = true.
basically, i want to know what's the best way to change something in the form upon a change in ...
<form action="/cgi-bin/Lib.exe" method=POST name="checks">
<input type=checkbox name="user1" value="'$NAME'">
<input type=checkbox name="user2" value="'$NAME'">
<input type=checkbox name="user3" value="'$NAME'">
<input type="button" value="User 1" onclick="somefunction()">
For example, if I selected c...
I have a database for a carpet company. I have a form which enables the user to make a quote, including choosing the customer, etc. There is a also subform dealing with the products and extras, with quantities and unit prices. To state whether the user requires fitting there is a checkbox. When ticked I would like fitting to be added in ...
I'm creating a web page based on user input from a form. After the user sees the generated page I want to allow them to press the back button and make changes to the form. I would like to display the form as they had filled it out previously. What is the best way to get this behavior (with cross browser support)?
...
Anybody know where to find an sample form using MSChart in C# ?
I made an example.
Tanks.
//name program.cs
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace MSChart_Sample
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </s...
This is a UI paradigm question I think.
How do you display Child information?
Is the Browse a Tree? Do you have a Form (double-click on browse)? Or some other way, or amalgum of things?
I'm having a discussion with a Trainer regarding the layout of a browse. They don't like the Tree (for displaying child records), but I'm not yet con...
Got a simple form, posting to an action... the action takes the data and creates a record in the DB, and copies the image to a directory. Works great on my local dev box.
Upload the form to my host, and the image uploading doesn't work. The form acts as if it's failing the UpdateModel(), but doesn't show any validation messages.
Anyone...
I am starting a winform application[.NET 3.5, C#], where in the the main form of the application starts at a particular specified location. Am calling the following code in the constructor for this
private void SetFormPosition()
{
this.StartPosition = FormStartPosition.Manual;
this.Left = Screen.PrimaryScreen.Wo...