forms

How do I use jquery validate remote validation on a field that depends on another field in the form? How can I trigger a jquery remote validation call even when the input field is unchanged?

I have a form in which I am using remote validation to check if an email address already exists in the database. However, the catch is that on this form, the user can select between several different "groups", and each group has its own distinct set of email addresses (thus the same email can exist once in each group). The group select...

submit form and keeping values setting

Hi I want to know if there is a way to submit a form but at the same time keep the values selected and edited(without reset). Thanks. ...

Disable all form controls on a web page

What is the nicest way to disable all form controls on a web page? I have read that this cannot be done via CSS but this would be my preferred option if possible. I also have access to jQuery if that makes life easier. ...

Jquery Form styling that works in iPad/iPhone/iPod?

Hi, I use jQTransform (http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/) to style select boxes, but when testing it and other types of form styling plugins, they don't provise a scroll bar for scrolling through items, even though it is set to overflow-y:auto. Can anyone help with this? For the time being I have set the h...

smooth scroll with autoscroll

I have a Panel on a Windows Form. The Panel has autoscroll enabled. The scroll bars appear as they should and the scroll bars generally operate as they should. But the content of the panel is only updated when the mouse button is released. How can I make the content scroll AS the scroll bar is moved. (I want to duplicate the scroll ...

Making "helper" text in a form be a different color then typed text.

<input name="phone" type="text" id="phone" value="Phone #" onfocus="value=''"> I've got two problems here. The main one is I would like the helper text (in this case "Phone Number") to be a different color then the inputted text from the user, to make it easier for the user to differentiate between filled and unfilled fields. The seco...

Form Input - Restricting to one submit per IP / Computer

I'm coding a sweepstakes entry form in php where the User submits some information in a form and it is stored in a database. I would like to find a way to restrict this form to one submission per person. Either dropping a cookie or by IP address. What would be the best way to approach this? I'm building it on code igniter, if that make...

Remembering Form information

Hi everyone! I'm sorry if this has been asked before but I feel my situation is a little different... I have a huge form (like 50 questions involving checkboxes, drop downs, text boxes and textareas) When a user submits a form and the validation page throws an error, is there an easy way to keep the info they entered? My intitial f...

Jquery cookie plugin - conditional content determined by cookie being set

Hello I have a sign up form that is displayed to all new site visitors. If a user fills out the form, the next time they visit the site, I would like to display a "welcome back" message where the form would usually sit. I am trying to do this via the jquery cookie plugin (http://plugins.jquery.com/project/Cookie). My form would look ...

JavaScript accessing form elements using document.forms[].elements[]

var loc_name = document.forms['create_<?php echo(htmlspecialchars($window_ID)); ?>'].elements['location_name']; alert(loc_name); This just gives me the message 'undefined' where as... var loc_name = document.forms['create_<?php echo(htmlspecialchars($window_ID)); ?>']; alert(loc_name); Gives me the object form business. Have I jus...

Easy way to post form values using jQuery

I have a simple form that I wish to postback to the server in an easy fashion and get the result. I am using a custom ISAPI plugin on the backend so using JSON or other funky stuff isn't an option. How best can I do this? Edit: I would also rather not use external plugins, if possible ...

Click event on submit buttons only fires once

I subscribe to the click event on all submit buttons on my page once loaded. All buttons fire off the correct event when clicked, but this only works once. If you click any two buttons in a row the second button submits the form normally as opposed to running the script. What am I doing wrong?. Note: I load the form data from "myurl...

jQuery AJAX form submission not working

I'm trying to submit a form through AJAX instead of using the normal POST submission. The HTML is just a standard form with method="post" and my jQuery code is as follows: jQuery.noConflict(); jQuery(document).ready( function($) { var $form = $('#default_contact'); $form.submit( function() { $.ajax({ type: '...

Zend framework multiple Validators in an array

Hello everybody I want to create a form in Zend framework. I am using the code below for a field: $this->addElement('text', 'username', array( 'label' => 'Username:', 'required' => true, 'filters' => array('StringTrim'), 'validators' => array( 'alnum' ) )); This works. But now I also want to add ...

django customizing form labels

I have a problem in customizing labels in a Django form This is the form code in file contact_form.py: from django import forms class ContactForm(forms.Form): def __init__(self, subject_label="Subject", message_label="Message", email_label="Your email", cc_myself_label="Cc myself", *args, **kwargs): super(ContactForm, self...

'button_to' gives me an ugly URL!

Im trying to get an 'add to cart' button to work. When I use <%= button_to "Add to Cart", :acton => "add_to_cart", :id => @product %> and then click the button, I get a URL that puts the action after the ID, like this: http://localhost:3000/store/show/1?acton=add_to_cart The cart page does not load. What I need is a URL that looks li...

how to make so that Form2 when you click on Button1 not opened for the second time?

I have the code: private void Button1_Click (object sender, EventArgs e) ( Form2 f2 = new Form2 (); f2.Show (); ) how to make so that Form2 when you click on Button1 not opened for the second time, if it is open? sorry for bad english ...

Good piece of software that can manage the creation of complex web forms, including reporting, etc?

I have some clients who are requesting for some of their reasonably complex paper-based forms to be converted in to web forms. There's straight Q&A text input stuff, there's questions based around checkboxes, radio boxes, select boxes, maybe the occasional attached image, there's data that has to be entered in a tabular fashion, etc. I ...

Jquery cookie plugin - set cookie when user submits form

Hello I would like to set a cookie when a user submits a form. I am working with some legacy code that sets a cookie based on a user checking a checkbox, but would like this to simply set the cookie when a user submits a form. Here is what i have, which works when a checkbox is checked: $().ready(function() { $('.application-form...

forms problem in django 1.1

I have the following form: class ModuleItemForm2(forms.ModelForm): class Meta: model = Module_item fields = ('title', 'media', 'thumb', 'desc', 'default', 'player_option') The model is: class Module_item(models.Model): title = models.CharField(max_length=100) layout = models.CharField(max_length=5, choice...