forms

How to get jQuery validate success function to operate on a hidden input field?

Hi all! I have a form being validated by jQuery.validate. Using errorPlacement option I have a custom set of functions for real-time error validation. Using success option I have a custom set of functions to get rid of and replace error messages. All works great except my validation on hidden fields only works on submit. With the su...

Can a ::before selector be used with a <textarea>?

I'm experimenting with some styles on <textarea>s and I tried doing some stuff with ::before and ::after selectors and I couldn't to anything to get them to work. So the question is: is this possible? I know the CSS surrounding forms is arcane beyond mention but it seems like this should work. ...

Cross site scripting forms

I want to help fill forms for my users with default values on other pages. To do that I would like to show another page (from different domain) in an iframe and insert there default values when needed into fields. But it is not possible because of cross site scripting protection. I have checked http://sourceforge.net/projects/poxy/ and ...

nested forms with additional non-editable fields in child table

My application has got a parent and child table with a 'has_many' relationship. Now I have created a nested form as described in the tutorials (using accept_nested_attributes_for) and this works fine. Some information about my environment: Rails 2.3.8, authlogic In my child table is a additional field "user" (the reference to the curr...

How to create custom forms for custom content type in wordpress?

Hi.. Is there any way to create forms for a particular content type and submit it form the site itself. I have 2 content types created in my Wordpress and I want to create a form to post to a particular content type. Also is it possible to create the form as a page in wordpress? regards - dj ...

What events are fired when a user selects from the browsers stored form dropdown?

Hi, I'm using jQuery to alter things when a user enters text into an input. This works fine with .keydown() or .change() when typing. I'm unable to capture an event when the user selects from the browser stored inputs for that field. This is the dropdown that appears when typing or on click when the element already has focus and the br...

ASP.NET Wizard Control inline editing

I have being developing a form with the wizard control. The final step is a summary of the content that has been entered by the user as a confirmation step before submit the form. These summary sections also catgorised into visual sections that corresponds with the each WizardSteps. Each summary section is provided with an edit button...

AntiForgery implementation in Asp.net Forms

I am developing an httphandler to process some requests in Web Forms (NOT in MVC). How could I implement Anti Cross Site Scripting (like antiforgery in MVC)? I want to know mre about the antiforgery mechanism in MVC. ...

Alternatives to model binding for data submission

I have an ASP.NET MVC2 application that contains a partial view that allows the user to set a variety of properties on a collection of objects. These are currently done using HTML input controls such as the textbox and dropdown list. I am using using out-of-the-box model binding to submit the user-entered values to the server via a form ...

Checking multiple forms for submission on the same page in coldfusion

Hello again stackoverflow... Once again I have a troublesome problem. I have a page where I am using jQuery tabs to divide up three update forms. (Two really, one is a cfgrid so it doesn't really count.) Basically, when you submit the first form tab it is fine. However, if you submit the last form, it submits and refreshes the page but ...

How to Update a Database with CFGRID info?

Hello again! :o I am working with a cfgrid and I'm not sure how to make it so when someone edits data in an entry it saves. <cfform> <cfgrid name = "degrees" query = "getDegrees" insert = "yes" delete = "yes" width = "500" height = "150" insertButton = "New Degree" deleteButton = "Delete Degree" colHeaderBold = "Yes" selectColor = "##...

Form element added using jQuery is not sent on POST

I have a zend_form where I'm allowing the user to add form elements dynamically. Elements are added dynamically using jQuery : something like... $(function(){ $('#more_answers').click(function(){ var elemNum = $('.dummy-element').size(); $("<dd class='dummy-element' id='dummyanswer_"+elemNum+"-element'><input type='text' valu...

How do I control the definition, presentation, validation and storage of HTML form fields from one place?

I want to be able to define everything about a form field in one place, as opposed to having some info in the DB, some in HTML, some in JavaScript, some in ASP... Why do I have to worry about possibly changing things in four separate places (or more) when I want to change something about one field? I.e., I don't want to: declare the ...

Rails: best way to generate a form dynamically

I am creating an application where I want to add metadata about table fields from an enterprise system. I have a table_structure model which retrieves a table definition information like: table_name field_name Field_type field_length ... a particular field may exist in multiple tables like: tableA fieldX tableB fieldX regardless ...

drupal questions - how to print a form from another module?

I'm trying to include a module form in a panel and I've tried using drupal_get_form(), but not sure I'm using it correctly. In the organic groups module, there's a function to render an og_broadcast_form. It's called within a page_callback in og.module: // Broadcast tab on group node. $items['node/%node/broadcast'] = array( ...

Trouble with email validation using jQuery validation in WebKit

Hi, I'm running into a strange issue in WebKit browsers, where the "email" field on my form won't trigger validation by the jQuery validation plugin (using the built-in email method). Works in FF and IE, but Safari and Chrome don't seem to like it. I've put together a sample page here with just the form and scripts for debugging: htt...

Add extra information after submitting form

I have the following structure: class FeatureType(models.Model): type = models.CharField(max_length=20) def __unicode__(self): return self.type class Feature(models.Model): name = models.CharField(max_length=50) type = models.ForeignKey(FeatureType) premium = models.BooleanField("Premium Feature", default=F...

jquery get form values, multiple forms

Hi, I have multiple forms on the page and i need to get the values of the form that is submitted, but without specifying the form. $(document).ready( function (){ $('form').submit( function(){ return submitForm() }); }); and in the .js file submitForm() should identify the id of the form that is submitted. How can be that d...

foreach Control loop misses hidden controls

Hey there. The program I'm working on at the moment uses C# WinForms (on the 2.0 .NET Framework, though that probably won't make a difference in this case). The design calls for the ability to scale a form and all of its controls up and down. I did this by looping through each of the controls, saving their original sizes and locations, ...

Passing data from a form through a query string in Rails

I am creating an application with a search feature, and I would like have it set up similarly to Google or Twitter search, where there is a landing page with a search form at the root URL and then data from this form is passed through a query string, which forms the URL for the results page (for example: www.domain.com/search?query=my+se...