forms

posting to multiple scripts

hi, i'm changing an existing email signup form to use the feedburner signup (opens in a popup), but want to keep the existing one in place aswell. i was hoping this would work, but it display a blank page. the existing signup script returns complete page containing yet another form. $(document).ready(function() { $('#subscribe_fo...

How do I create a polymorphic model with a collection_select?

This are my models: class Speaker < ActiveRecord::Base belongs_to :session, :foreign_key => :session_id, :class_name => :Session belongs_to :speakable, :polymorphic => true end class Session < ActiveRecord::Base has_many :speakers accepts_nested_attributes_for :speakers end class Person < ActiveRecord::Base has_many :speak...

Setting a Forms Authentication cookie from a .NET client application

We currently have a .NET 2.0 web app that uses forms authentication via cookies. Associated with this web app is an old VB6 client application that has its own login system. Currently, the users have to login to the VB6 app, and then when they click on a link, need to authenticate themselves again with the .NET forms authentication sys...

jQuery Auto Add Text Field on Click

Does anybody know of a good solid plugin that allows a user to have an infinatly expanding list of text boxes. So here is an example: Col 1 - Col 2 Cheese - 150mg Cake - 20mg Cheese - 100mg New - New So when a user clicks on any of those (They will be in a table), they can edit it. And when New is clicked, New...

Django - restricting ChoiceField in form

Using Django 1.1.1 In models.py: class Site(models.Model): name = models.CharField(max_length=50) class SiteMonth(models.Model): site = models.ForeignKey(Site) timestamp = models.DateTimeField() parameter1 = models.IntegerField() .... In site_view.py: #form for selecting which site to analyse class SiteForm(form...

Populate Rails form fields

Hi, This is quite difficult to explain, but here goes. I have a Rails app with students, courses, assignments and grades In the student show view, there is a list of all of the courses that a student takes, along with the assignments associated with those courses. All assignments which there is a recorded grade for between the student ...

charts, forms and credit card payment in drupal

Hey. I've got this client who's a dietician and wants a site with some functionality I'm not sure how to implement: custom forms that calculate some stuff (like ideal body weight, based on a bazillion factors), the user is supposed to be able to pay for the consultation with a credit card - which lets him access more consultation form...

Modal forms get in the way of processing

I’m working on an interface in VB6 to interact with a sound editor to automate certain tasks mainly using the editor’s object handles and activating them through SendMessage/PostMessage. In general it works OK, except that the editor has some dialog boxes that open in modal mode and freeze everything on the interface, including the timer...

Javascript - formular - nested dynamic appendchild functions

Hi I have a form which changes the inputfields depending on a radio-button. for text there appears a textbox for textarea there appear additional 2 fields for cols And rows for select, checkbox and radio there appear additional fields with appendchild have a look here: http://joomla.byethost16.com/php.php Now what i want is to let t...

image drag and display

How image drag and display corresponding row and how take that image's name when sumit form we have four images on topof the page.each images have each value.then below that display some words row by row.whenever we drga tha image from the top to the corresponding words,then we can identify that image name,corresponding words when submit...

What do browsesr use to auto suggest values in web forms?

If I come back to a web site after having filled in a form previously, the browser remembers my username (for example). I'm not talking about cookies remembering user names and passwords, but the way a browser will suggest a value for a previously submitted field. What controls this behaviour? My issue at the moment is that I have logi...

form element not showing up after adding in through jquery

inside a jquery method (on a click event of a button) i have the following code: $(selector).html("<form action='/Tracker/CopyFood' method='post'><input type='hidden' name='Id' value=" + id + "><input class='very-small-input' type='text' name='Quantity' value='1' /> for <select name='Date'><option value='Today'>Today</option><option...

Best place to create windows form objects

I'm creating a windows app in c# 2008 that will have around 8-10 dialog boxes. I want these forms to exist throughout the life of the program. Where's the best place to create and store the objects? I'm coming from Delphi, where Form objects were usually stored in global variables. I'm tempted to do it in the static Program class. S...

How do I get a jQuery dialog window to display only if a form validates when I click the submit button?

I've got a form that is using jQuery validation. When the user clicks the submit button, a dialog window displays thatshows the fields the user filled out along with the data the user entered. It asks the user if this information is correct. If it is, the user clicks the submit button in the dialog window and the form is submitted. If...

Multi-model form problem

(I'm just learning rails so....) I have a photo model and a gallery model, habtm associations and a join table. I'm making a photo gallery. The gallery page has a title field and description field. User creates gallery title, then goes to the photo page and checkboxes each image they want in that gallery. I get the error "undefined meth...

Why is this jquery dialog window not displaying?

I've got a form that is using jquery validation. When the user clicks the submit button, I've got some jquery that intercepts the submit and should display a dialog window asking the user to verify the information they entered on the form. This dialog window should only display if the form has validated. Here is my code: $('#form').s...

can an input field have two labels?

Mary had a little form, and it's fields where labeled just so. Whenever an error crept in, confusion it would sow. I've got a label for each input field... pretty standard affair. After validating the form, I'm displaying a helpful little paragraph at the top of the form detailing what information is missing or incorrect. Can I have two...

ANY way to consolidate this code?

I am building a PHP registration form which takes the following fields for up to 20 athletes: First Name Middle Initial Last Name Federation Number Address City State Zip DOB SSN Phone Email I am only through 7 of the fields for each fighter and my php file is very large (over 40kb). Is there ANY way to consolidate this code at...

Retrieving multiple rows from a loop-created form... Stuck.

Let me start by saying that I'm new to PHP, but I'm here to learn and would really appreciate your help. I use the following code to pull in data and create a form. This creates up to 40 lines for a user to fill out. Each line consists of the same information: Description, Amount, and Frequency. The remainder of the information needed ...

Form input validation with JAX-RS

I want to use JAX-RS REST services as a back-end for a web application used directly by humans with browsers. Since humans make mistakes from time to time I want to validate the form input and redisplay the form with validation message, if something wrong was entered. By default JAX-RS sends a 400 or 404 status code if not all or wrong v...