forms

Create multiple CCK nodes with single custom form in Drupal

I need a form which will allow creation of several related nodes at the same time. All of the nodes involve CCK fields. I would like to use as much of CCK's built-in validation, submission, input widget, and security functionality as possible/practical. What is the best way to accomplish this in Drupal 6? Are there 'best practices' or ...

System.ComponentModel.Win32Exception: The operation completed successfully

I am getting this exception sometimes while running my Windows Forms app for a long time: System.ComponentModel.Win32Exception: The operation completed successfully at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits) at System.Drawing.BufferedGraphi...

Digg Style Form Validation with Hints with JQuery

I am looking for a form validation utility with cool effects similar to the Digg's Registration Page. http://digg.com/register/. I have been searching for a tutorial/code but could not find the perfect one. Please let me know if anybody has some resources on it. Update: I am still open to receive your answers! ...

How can 2 Html forms share 1 hidden field?

I have a page with 2 forms and a hidden field that is outside of both of the forms. How can the hidden field be submitted with either of the forms? I thought about doing something like this with jQuery: <script type="text/javascript"> $(function() { $('form').submit(function() { // do something to move or copy ...

Will a disabled text field submit when a form is POSTed?

If I submit a disabled text field via POST, what will the resulting value be on the action page? For example, I have: <table border=0 cellpadding=4 cellspacing=0> <tr><td> <input type="checkbox" id="chk_$item" onClick="javascript:handleClick('$item')"> </td><td> <input type="text" id="txt_$item" name="addresses[]" value="$it...

Rails duplicating view

Hi, I'm trying to display all @user.notes on my index action of the user_controller, and provide a form below to add a new note, inline. Pretty simple code that I've gleaned from a few tutorials, but what's happening is my view is completely duplicated. It spits out 2 copies of the same html. Still pretty new to rails so I'm having a ...

Load content into jQuery tab from within a tab (tabs, hijack, forms)

Hello. I have something like the following. A main page has jquery tabs on it. It loads content for the tabs from other pages. Using the hijack plugin, the content loads correctly for me. Now, on the loaded tab, I have a form (page2.html below). On here, when I hit the link, I would like the new page as directed by the action (edit...

overriding a function within the jquery validation plugin

I am using the jquery form validation plugin to validate a long form. If a user submits the form with multiple fields that fail to validate, the cursor returns to the last field that did not pass. Instead, I want the cursor to be returned to the first field in the form that failed validation. Rather than modifying the plugin, I would lik...

Django form errorlist render position

When I display a form with errors using {{ f.as_p }} , the errorlist ul always comes first then the label and input field. For example: <ul class="errorlist"> <li>This field is required.</li> </ul> <p> <label for="id_content">Content:</label> <textarea id="id_content" class="required error" name="content" cols="80" rows="10"/> </p> I ...

django template forloop.counter question

Hi all, i have many fields in my form i was trying to apply different css to neighbour forms fields like <li class='thiscolor' > <field> </li> <li class='thatcolor' > <field> </li> if there a way like {% for field in form %} **{% if forloop.counter%2 == 0 %}** <li class='thiscolor'> {% else%} <li class='thatcolo...

Three level nested forms in rails using accepts_nested_attributes_for

Hi, I've been trying to implement a dynamic multi-model form with accepts_nested_attributes_for in my rails application. I've been following Eloy Duran's complex-forms example that shows a 2 level implementation, but I've been trying to expand this to 3 levels. Is there support with accepts_nested_attributes_for for a 3 level form? Ca...

Screen Scrape Form Results

I was recently requested by a client to build a website for their insurance business. As part of this, they want to do some screen scraping of the quote site for one of their providers. They asked if their was an API to do this, and were told there wasn't one, but that if they could get the data from their engine they could use it as t...

Best ways to handle Record Form in Zend Framework

Once you're OK with basic record form built after example from Tutorial, you realize you want more professionally designed Record Form. E.g. I don't want to duplicate record form for the same table in User and Admin areas. 1) Does anyone use some mechanism, possibly inheritance, to reduce duplication of almost similar admin and user for...

Problem with tabbing through 4 text input boxes in action script 3

Hello I hope someone has the patience to look at this..... I have a flash form and need to set a tabbing order for the four textinput boxes in the form. The four boxes are named: name_txt surname_txt email_txt phone_txt Each box is an instance of a generic textinput box component At the moment when a use is focussed on name_txt an...

Submitting forms in background

I want a user to submit multiple form at once by submitting a "master" form. I got it working by using mootools' "send" function, but we switched to prototype and I can't get the same result. using "submit" just "clicks" all forms. basicly what I need: A function to submit all form by just using an Ajax POST call. Strangely all ajax fu...

What HTML element should I use for when a user must select multiple items out of a large list in ASP.NET MVC?

I have a form for lawyers where they need to be able to select which states they are licensed in. So, they need a clean way to be able to select a few states from all 50 states. What I'm not sure is, how to handle this in HTML. Is there some possible way to have a drop down of checkboxes or something similar? I'm using ASP.NET MVC. ...

Automatically making a div appear based on status of radio button with JavaScript

I have a form which posts data to the same page. Based on the user's radio button selection I am inserting checked="checked" into the radio button form element to redisplay the correct selection. This works fine, however when the form is redisplayed (in case of bad input etc), I need a div to be revealed (containing the relevant fields f...

Is there a way to create a top level window besides Form in .NET?

Is there a way to create a Control that can display on the desktop without the use of Form? For example, displaying a splash window? I know that it's easy to create a splash window without any borders, etc. using Form. But that's just an example. I'd like to know if it's possible to create a top level window without all the baggage th...

Does Grails have a mechanism to provide an automatic, default rendering of a form based on a corresponding Domain class?

I've look around and see a few plugins that do this, but I'm surprised it's not built into the language, outside of the scaffolding. In Django, for example, you can say <form action="/contact/" method="POST"> {{ form.as_p }} <input type="submit" value="Submit" /> </form> and get a reasonable form for a model, based on the model defin...

Animating form resize in VB.NET

I have a form positioned slightly above the taskbar/system tray in the bottom right corner of my desktop window. It's sort of like a pop-up notification. The notification itself looks great, but there's a button on it which resizes the form up, animating the sizing in increments of 5px whilst keeping it's position relative to the botto...