Hi there,
I have a form where depending on the select state ([checkboxOn/checkboxOff]) a check box should appear or not. When the check box is displayed it should be checked by default.
How to handle that situation, taking into account that
when select is in 'checkboxOff'
state, I would have
MyFormObject.isCheckboxOn == false;
when ...
I have an event listener:
$('button.publish').live('click', function() {
//enter code here
});
This button element is inside a form. I know that I can't use $(this).submit(); 'cause it will cause refresh. I also can't target the form by its ID because I'm trying to make it for general use (add news, add contact, add ...).
Knowin...
Not sure how to proceed on this.
I have a contacts Ruby on Rails application. One person, many contacts. I have created the master name and have the associated contacts. All that works fine. Now, I have another "has_many" table for master_name and what I'm not sure is how I should display that data entry portion. Do I just have ano...
I made an access vba application where all my architecting was simply creating a one-to-many relationship between a "status" table and a "data" table that contained all the other details of my record. Created a form with the single click of a button with my "status" table open, and wallah,,, I got a form for my open or closed records th...
I am trying to submit a form with 2 fields with the same name but different type. I can identify the correct field I want by the field type or the number. Whats the best way of setting the correct field without iterating through all the fields?
...
Hi,
My website is set to UTF-8, do i have to set my forms also to utf-8 using the accept-charset for forms?
My guestbook for example allows multilanguage so my guestbook database table is utf8_unicode_ci and all my webpages use the same template so the encoding for all pages is utf-8, because i set the charset for my webpages as utf-8...
I am messing around with a tornado web app with which I need a bit of help. I have multiple checkboxes with the same name and I would like to POST the values of the selected one.
<input id=DB_BASED_ID name="activity" value=DB_BASED_ID type="checkbox"/>
<input id=DB_BASED_ID name="activity" value=DB_BASED_ID type="checkbox"/>
<input id=...
Hi, I am developing a splash screen as coming soon for my new website and want an email subscription form with auto-responding capabality. I can do this myself but I was pondering if there is any services out there to handle such email related activities or we should still do such things by ourselves?
Sorry if this sounds a rather old-sc...
Hi there -
I am relatively new to html and PHP, and have a problem which I can't seem to get around.
Basically, I have a table and want to have within one of the cells a submit button that will take the user to another page where they can edit that row.
I have all of the machinery for this in place, apart from the fact that I can't ge...
Does anybody know of any open source project that deals with creating forms or surveys?
The engine needs to function something similar to Survey Monkey (surveys; each containing survey pages; each containing a survey element - radio boxes/check boxes/text areas or other components) - except that we have requirements to brand it with cus...
I have a form around a list of items. I would like to check a radio button on the list and then, after clicking 'Submit', go to the 'Edit' page of the selected item.
The problem is that if I am writing something like
<%= form_tag edit_item_path %>
but Rails complains that I didn't provided a proper id, which in turn is being set on...
I created a project with Django and am trying to write from forms to db.
The model class has two classes :
class Contact(models.Model):
name = models.CharField(max_length=200)
birth_day = models.DateTimeField()
address = models.CharField(max_length=200)
class PhoneNumber(models.Model):
PHONETYPE_CHOICES = (
(0, ...
Hi all,
I need some advice please on the best way to achieve a particular outcome...
My scenario...
I have a Form1 class, which is my main Form with a picture box on it.
I have a second class called camera that using an event handler grabs a frame (bitmap) from my webcam.
I then want to pass this frame to the picture box in the main...
Hi Everyone,
I'm basically just trying to submit a form through AJAX and want to show the return of the processing PHP page. The PHP page just validates the input and shows either the errors that occured, or a thank you message to the user. Normally I wouldn't use ajax for it, but in this case the customers setup requires me to.
As sim...
Hello again,
Can someone look at my two functions below and suggest what i can do?, i have created two functions that basically creates a unique key and this is echoed in a hidden field in a form and then straight after i check if the form has been submitted the second function checks to see if the key in the hidden field matches the ke...
Our accounting department has an application that presents a pdf type form where users fill in input fields.
Today we have to replace an old tax form. We don't have the developer software or the old developer. I think the software to make the form comes from adobe.
What software do we need to create/test this type of form? Is th...
I am using a wp blog and I want leads to come in to go to be via email and then get refered to another website with the values already filled in?
I want to use php, but i will use anything that works.
does anyone know how to do this?
...
Hello,
I have a Category model with two booleans, article_cat? and profile_cat?. I want to be able to create a new Category with a form that lists these two using radio buttons. If one radio button is marked, the other one is unmarked. It should send a true value to the create method of the one that is checked and create a new category w...
I am designing a checkbox for a for and I absolutely cannot have the checkbox to toggle when the user clicks on its label, as this label contains a link to open a small infobox where the user gets to know what he or she is accepting by selecting the checkbox.
How can I disable checkbox toggle when clicking on its label?
The code looks ...
I have a basic Rails form like so:
<%= form_for @person do |f| %>
<%= f.label :first_name %>:
<%= f.text_field :first_name %><br />
<%= f.label :last_name %>:
<%= f.text_field :last_name %><br />
<%= f.submit %>
<% end %>
How could I optionally send the form information to another an entirely different controll...