I have a grid in a coldfusion flash form.
Users do not enter information directly into the grid. They enter data into a "Details Section" which is a collection of form items (textbox, selectbox, etc) bound to the grid.
I have actionscript which changes the values in the grid based on user entries.
The actionscript works properly beca...
Say I have a form that looks like this:
[ Animal name input field ] Add button
If I type a name and hit enter, an animal with the given name is added to a table. Works fine. What I would like now is to call the current way of working "quick add" and add a new feature called "slow add", which I am not quite sure how to do. Basically...
I'm writing some javascript (a greasemonkey/userscript) that will insert some input fields into a form on a website.
The thing is, I don't want those input fields to affect the form in any way, I don't want them to be submitted when the form is submitted, I only want my javascript to have access to their values.
Is there some way I cou...
I have a simple form showing products from my database. Each product has a foreign key to manufacturer_id . I would like to filter my form by manufacturer_id instead of default product_id. How I can do that ? I know I must create a macro. Also I've already created a query, that takes manufacturer's name as argument and returns manufactur...
I have two forms in one view updating the User Profile. One Form is to Update my name etc. and one is to change my password.
Profile Form:
- form_for @user, :url => account_path do |f|
= f.error_messages
...form fields here...
Password Form:
- form_for @user, :url => account_path do |pf|
= pf.error_messages
...password field...
I'm having a problem making serialized columns in my model persist correctly in forms. If my model validation fails I want to redisplay the "new" page with all my model data still in the forms. Right now, everything except the serialized fields seem to persist (if my Order fails to purchase, on the "new" page the email is still filled in...
Hi! My simple donation form submits properly except for Internet Explorer. I'm sure it has to do with issues with change() and focus() or blur(), but all my hundreds of attempts so far have failed me. I tried using .click() instead of change() as mentioned in this post:http://stackoverflow.com/questions/208471/getting-jquery-to-recognise...
I have a pretty standard Rails form:
<div>
<h1>Create a New Listing</h1>
<%- form_for @listing, :html => {:multipart => true} do |f| -%>
<div><%= f.label :title, "Title:"%> <%= f.text_field :title %></div>
<div>
<%= f.label :image, "Image:" %> <%= f.file_field :image
<...
I have a simple login form with 2 input fields: "username" and "password".
"username" field is focused by default. The problem is that when user clicks outside "username" or "password" fields, the focus is gone (it is neither on "username" nor on "password" fields"). How can I force the focus to be on these 2 fields only ?
In my case, ...
I'm basically looking for the client-side equivalent of Django's ModelForm: I want to be able to specify the general schema of my data (what the fields are, which ones are required, what kinds of fields to use, etc.), and I want to be able to dynamically generate the form, itself, fill it with any initial data, validate it, and extract a...
Hi
I have this code :
<form id="form2" name="form2" method="post" action="">
<table dir="ltr" width="554" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="269" class="da"><div align="center"><span id="spryselect1">
<select onchange="form2.submit()" name="mpage" id="mpage">...
I just wondered and wanted to gather together in one place all missing features of our beloved html form elements.
One example could be missing of horizontal scrollbar in a listbox. But I am sure there are a lot of features we would like to see in our form elements by default.
One missing feature per answer please.
Thank you.
...
I'm trying to parse some text into a textarea control and at the same time replace all with ordinary line break chars.
I have been able to do it in windows by replacing with CR (it didn't work with CRLF strangely enough, it gave me linebreak + empty space) but I'm afraid that this code won't work in Unix/Mac because they use LF for l...
I'm working on the comment leaving system on my blog and everything works fine except I can't get my "comments" text box to become larger. Well, I can, using the command, but it puts the raw html from the rest of the page in the text box. The page displays my form as "Name: [blank input box] Comment: [larger input box, but filled with a...
I have a classroom application,and a follow relation. Users can follow each other and can create classrooms.When a user creates a classroom, he can invite only the people that are following him.
The Classroom model is a m2m to User table.
i have in models. py:
class Classroom(models.Model):
creator = models.ForeignKey(User)
c...
Hi,
I have a sfWidgetFormChoice which renders checkboxes in Symfony 1.4. The problem I have is that I want to rend each choice as a row in a table. So my html would ideally be something like this:
<tr><td>Choice 1</td></tr>
<tr><td>Choice 1</td></tr>
<tr><td>Choice 1</td></tr>
.
.
.
So that it woul...
I have an HTML form (form action="https:..." method="post"). I want to handle the post in PHP. How do I simulate the form post in PHP? So, instead, I will have (form action="helper.php") a and helper.php will post the form data.
...
Maybe it's me or maybe it isn't. I don't have a huge amount of experience of developing web based data entry software but do have some. I used to do it quite a bit years ago. Used to use Oracle Forms, Visual Studio, various 4th generation languages, and performing the user interface layout used to be a snap. Now doing the user interfac...
Hi,
How do I access a model's parent's attribute in a form? For example, for the following form for answer, I want to access answer.question.text and use that for the question - how do I do this?
Thanks!
<% form_for :answers do |ans| %>
<%= ans.label :question, "Question" %>
<%= ans.text_field :value %>
...
I have two related tables in a many to many relation: Role and Permission. The join table is RolePermission.
The Role object has a list of permission. it looks like this:
private Set<Permission> Permissions;
@ManyToMany(fetch = FetchType.EAGER, cascade = { CascadeType.ALL })
@JoinTable(name = "permission_role", joinColumns = @Jo...