forms

Nested Object Forms not working as expected

I'm trying to get a nested model forms view working. As far as I can tell I'm doing everything right, but it still does not work. I'm on Rails 3 beta 3. My models are as expected: class Recipe < ActiveRecord::Base has_many :ingredients, :dependent => :destroy accepts_nested_attributes_for :ingredients attr_accessible :name end c...

Closing a MenuStrip programatically

I have a MenuStrip that I have added to a form, and in one of the dropdown menus in it, I have a text box. When I hit enter on the textbox, I want a function to run, then the drop down menu to close. I know how to get the enter part done, but I have no idea how to close the MenuStrip dropdown menu. Does anybody know how to do this? ...

Drop down selection not registered when form submitted quickly?!

Hello all, I have noticed a strange thing that happens on my web app when the server is under heavy loads (I am remoting on to the Windows Server). I have a drop down box which is generated dynamically (server side). When I make a selection and quickly press the submit button to indicate my selection the next page does not register my...

breaking datetime into constituent parts ASP.NET MVC form

hi guys, i have searched the web relentlessly for this and have not found anything - which is surprising because i would think it is such a common scenario! Basically, on my model i have a DateTime field which i wish the user to populate through a form. I am using the Html helper to render all other parts of the form (along with valida...

Symfony dynamic forms

Hi there, I started with a form, which is made by hand because of it's complexity (it's a javascript modified form, with sortable parts, etc). The problem is that now I need to do the validation, and it's a total mess to do it from scratch in the action using the sfValidator* classes. So, I am thinking to do it using sfForm so that my ...

Printing carbon forms with dot matrix okidata printer

Creating an app to fill out some government forms using PHP (cakephp). The forms have about 4 layers for all the necessary parties to get a carbon copy. Which is why a dot matrix printer is being used. Here's an example form: Manifest Example: Designated Facility to Destination State (PDF) (1 pg, 93K) Should I create a PDF based on th...

Sending data between forms without using .Show()

Lets say I have 2 forms. In Form1 I have a timer, which counts (count++) and in Form2 I have a text box (textBox1) which shows how much the timer has counted. Now I want to know how would I show the integer 'count' in 'textBox1' without any user interference (clicking buttons) or in other words, how would I make the data in the text box ...

Can't style input field in IE6, Why?

I know, I know IE6 right? Well no matter how strong the argument -- I have to please IE6 at the moment. I have a text input field. I was to style it's font and background colors. But I can't get IE6 to display the changes I'm altering. Here;s my markup and css. <style> input[readonly='readonly'], input.readonly { color:red !...

I'm having trouble traversing a newly appended DOM element with jQuery

I have a form that I want to be used to add entries. Once an entry is added, the original form should be reset to prepare it for the next entry, and the saved form should be duplicated prior to resetting and appended onto a div for 'storedEntries.' This much is working (for the most part), but Im having trouble accessing the newly crea...

posting a form but without posting the viewstate

hi i have a web for and want to 'get' it to another page.. is there anyway to submit it without posting the viewstate and other bits i dont want? or should i be catching the submit button click and redirecting with a querystring i build myself thanks ...

formtastic - :string field value as Array and not found-s

Hi, is there any possibility to send from formtastic form value of :string field like - semantic_form_for :project do |form| - form.inputs do = form.input :task_ids, :as => :string as Array? Currently value of this field is sending as String and i'd like to no parse this string in controller. Also, could you give me idea - if task...

Close child form if already open

Hi All How can I go about closing a Child form if it's already open? And if it isn't already open, then open it? Thank you I already have this code, which doesn't work, obviously: Form ibx = new inbox(); if(ibx.Visible) ibx.Dispose(); else ibx.Show(); All that the above does is creates a new form whether or not it's already open. ...

MDI Forms in .NET 3.5

Is there any improvemens or new features in .NET 3.5 Windos Forms in creating MDI Forms as compared to .NET 2.0? ...

jQuery Validate Element

jQuery Validate plugin passes element value to inline validate functions. I'm trying to get element's id and an error telling that "element.attr is not a function" : function someFunction(element) { var elementId = element.attr('id'); } rules: { someFiled: { required: someFunction } } ...

Best way to layout in HTML forms?

I want to display an HTML form containing labelled text fields, like this: First Name: [_____________] Last Name: [_____________] Date of Birth: [________] My obvious approach is to use a <TABLE> and simply place the labels and text fields in its cells, but is there a better way, e.g. a CSS-based approach? EDIT:...

FlowLayoutPanel error when resizing the main form

Hi, I have main form with FlowLayoutPanel that has some buttons (20 buttons), everything is OK when the user resize the main form. then I added background image to the FlowLayoutPanel, and when I try to resize the form the whole form will freeze for few seconds then appear? Any Idea why this behavior? Thanks, ...

POST data getting lost: Content Length = 0

I've been trying to find a solution for ages with no success. On our app, customers submit a form and on the next page we process it. Sometimes though the data never arrives. This seems to happen for just a few of our customers. Seems to happen with IE7 and using a proxy. Here's some headers, note the HTTP_VIA: X-REWRITE-URL: /process....

Firefox displaying username and password in all my forms?

I have a website, and when I tell Firefox to remember my username and password for the website, it is causing the username and password to display in all forms on my website, such as registration form. It is only supposed to do this on the login form. Does anyone know a fix for this? ...

Javascript - Text Input Attributes

I need to create a form element <input disabled type="text" value="Shui Mu Tsinghua" /> which is disabled by default. It enables when onmouseover occures. onmouseover="this.disabled=false;" And is disabled by onmouseout onmouseout="this.disabled=true;" What I need is to check the following. If the <input> is focused t...

Django Forms: TimeField Validation

I feel like I'm missing something obvious here. I have a Django form with a TimeField on it. I want to be able to allow times like "10:30AM", but I cannot get it to accept that input format or to use the "%P" format (which has a note attached saying it's a "Proprietary extension", but doesn't say where it comes from). Here's the gist of ...