forms

CSS - Formatting Forms with label tags

I've got a form that I'm trying to layout semantically and format with CSS. As it's produced dynamically (from ASP.NET MVC) some elements may be rendered as text rather than input tags as they may be read-only for that screen. I am trying to add a width to the label tags to neaten up the form and align the values/value boxes, but it seem...

upload and proces user selected file in html, javascript and php

I want to have a user select a file and then have php put the contents in db. Now the last part (processing the file in php) is easy. But is there a way I can process a user selected file whithout a new page load? If I use the following: <FORM ACTION="upload.php" METHOD="post" ENCTYPE="multipart/form-data"> <INPUT TYPE="file" NAME="som...

How to correctly create an HTML form which spans multiple pages

Is it acceptable (in a standard's sense) to have a form which can span multiple pages? For example, I am making a shopping form, and on the main form are mugs and tshirts. However, I need to make it so the user can choose a color of a t shirt. Now, I could either add radio buttons to the small thumbnail of the tshirts, or I could make th...

Is it possible to get Cufon to work on a button?

So right now I'm bashing my head - at the moment we use an element for a button to give it our own custom font, fine - this works, but as we're using Cufon on the rest of the site, we're wondering if it's possible to get Cufon working on a button. So far I've changed the button to an and using standard css styles on an 'input' or 'inp...

How to submit data of a flash form? [python]

Hi. I would like to know if it is possible to submit a flash form from python and, if it is, how? I have done form submitting from python before, but the forms were HTML not flash. I really have no idea on how to do this. In my research about this I kept getting 'Ming'. However, Ming is only to create .swf files and that's not what I in...

How to allow certain HTML tags in a form field in Symfony 1.2

I'm playing around with Symfony and have encountered a road block. I created a model "CmsPage" which has a field called "content" which is stored as a clob (this is specific to doctrine I believe). When I created the app I set "--escaping-strategy=on" so if I enter any html when editing a CmsPage that gets encoded with html entities or...

progressBar while MainFrom initialize

Hi guys, I have a windows form application that needs to load a bunch of things before loading the Main window. I thought this would justify a progressbar, so I thought I display another form that contains the progressbar control using the constructor of my main form. It all works fine but if I try to put text in a label on the intro f...

multiple forms with ajax/jquery?

I am using this plugin: http://malsup.com/jquery/form/#getting-started I am having issues, getting it to submit (using a single function) more than one form on the page at the same time, and to make it more complicated, I am loading the form via ajax from a remote html call. So the form function needs to be loaded again. The question ...

Easily Creating Dynamic Form/Controls Within Qt

We've got a Qt application that configures external devices by querying their configure interface and then, using a QWebView, we present an HTML page with the appropriate controls. We'd prefer to hand the configuration information to some sort of Qt "Form Builder" class, and have it spit out a QWidget with a layout that contains native ...

Corrupt Form - Rescue or Remake?

During my work on this database application, I've apparently managed to corrupt a form in the application - attempting to save any edit to any field on the form will cause Access to crash, and for the database file to report corrupted when Access attempts to re-open it. I've tried exporting the entire form + controls as text, then re-im...

jQuery triggers in a form

I previous recieved help with a problem, getting a multiple option select form to create new inputs, depending on how many were selected. The code below is what ended up working for me (credit goes to Peter Bailey) <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html lang="en"> <head> <titl...

why doesn't this jQuery code work in IE?

The following code is used so when clicking 'enter' when focused in an input field within a form, it disables the standard submit button functionality. Rather the javascript builds a new form and sends a post request to another page. I am using this so that I can achieve a "form within a form" functionality. The input field has its ow...

How do I pass form elements to a javascript validation function?

I have a form that lists users, and for each user there is a drop down menu (2 choices: waiting, finished) and a comments textbox. The drop down menus are each labeled "status-userid" and the comments textbox is labeled "comments-userid" ... so for user 92, the fields in his row are labeled status-92 and comments-92. I need to validate...

Best way to display this in a form?

On my website, I have two tables which are linked using a pivot table. What I am trying to do is let a user update the relationships between the two tables (inserting and removing records from the pivot table). I have no problem doing this in PHP, but what I am concerned about is the way the form is displayed in the users web browser. T...

Django Dynamic Drop-down List from Database

Hi...I wanted to develop a Django app and one of the functionalities I'd like to have is dynamic drop-down lists...specifically for vehicle makes and models...selecting a specific make will update the models list with only the models that fall under that make....I know this is possible in javascript or jQuery (this would be my best choic...

FillRectangle has no effect on Graphics from Bitmap?

I have code: using (Graphics g = control.CreateGraphics()) { Bitmap bm = new Bitmap(r.Width, r.Height, g); using (Graphics gbm = Graphics.FromImage(bm)) { gbm.FillRectangle(Brushes.Green, r); form.BackgroundImage = bm; form.BackgroundImageLayout = ImageLayout.Zoom; } } But that FillRectangle doe...

CompareValidator date format

Hi, I have an ajax calendar control that I specified the date format to be yyyy-MM-dd. Is it possible to have the comparevalidator validate that type of date sepcifically and have it fail for everything else? right now it seems to only take dd-MM-yyyy. Thanks. ...

Detecting "value" of input text field after a keydown event in the text field?

So my site has an input box, which has a onkeydown event that merely alerts the value of the input box. Unfortunately the value of the input does not include the changes due to the key being pressed. For example for this input box: <input onkeydown="alert(this.value)" type="text" value="cow" /> The default value is "cow". When you...

Problem with multi-forms submission in IE and Google chrome

I have serveral forms(user can add new form dynamically) in one page, they're all submitted to the same struts2 action. I need to submit all these forms when the user clicks the save button. Things go well in FF. But in IE and Google chrome, only the last form is submitted. Any help is appreciated. Thank you. Each form's elements are ...

C++ Builder 2007 message dialog problem

Hi, My message dilogs seem to disppear below the main form. This only random. Most of the time it displays correctly on top, but some times disppear behind the main application form . What could be the reson? Thanks ...