forms

HTML <input type='file'> apply a filter

<input type='file' name='userFile'> now when i will click the browse button, the browse dialog will show all files... what if i want to filter file types lets say only images or .png & .jpg & .gifs only office file like .doc & .docx & .pps how to do it... ...

AddOwnedForm - add WPF Window?

I'm working with an existing WinForms form. I'm trying to interface a new WPF Window with it (to replace an old form). The old code called mainForm.AddOwnedForm(newForm);. I know that that makes the new form somewhat of a child of the main form -- it's hidden when the main form is, etc. Is there a way for me to link a WPF window to t...

JSF, jQuery Plugin and fancy forms

Hi there, I'm building a small site at the moment and now I'm facing a problem: The customer wants his form element to look "fancy" so we have to hold on the design. I googled jqTransform which fully fits my/his needs. Now: I'm using seam and richfaces to build pages. I have to apply the jqTransform on my forms but I've got several sele...

Joomla interaction with php script is problematic / the "action" attribute in forms

I have made a personality test. It is a set of multiple choice questions that when the user submits, gives a personality description as output. The test questions are placed in a Joomla "Article", so the owners of the test can easily change them, and the output is then via the form handle passed to an external php script. Like this: <f...

Submitting form custom module

Hi guys, I have a question regarding drupal 6 forms. I have 4 tables: location[locationid, name]; package[packageid, name], person[personid, name, locationid, address, etc...] pickup[pickupid, personid, packageid, locationid, _pickup_day_,...]. I've made forms and form_submit for the three tables: location, package, person (simple C...

How do I get the tab button to focus on a checkbox element in my HTML form?

The title says it all I tried giving the checkbox a tabIndex but that didn't seem to affect anything. Thanks. ...

Dynamically construct array based on user input - Javascript/jQuery

Hi, I have a list of US regions set up as checkboxes. When a user submits the form, I need an array of associated states. This array is used for comparing to another array in my SQL tables. Using jQuery or javascript, what's the best way to go about this? I've got the general idea I believe: //populate region to state arr...

General WPF Application

Am just creating myself a WPF application, like outlook. am having all forms seperately. I just want one main window and and am haivng navigation pane in left side. when ever i click items in pane, i just want to load corresponding form to the main window in right container. How i can do this? ...

How can I make a second button in my form not run the submit code after it's pressed?

I have a form, with a submit button: <% form_for(@personalentry) do |f| %> <%= f.submit 'Create' %> <% end %> HTML Output <form action="/personalentries" class="new_personalentry" id="new_personalentry" method="post"> <input id="personalentry_submit" name="commit" type="submit" value="Create" /> </form> I want to add a seco...

Using JQuery UI to convert radio buttons into slider elements.

I have a form which is rendered with radio buttons like so: <h2>How long is your hair?</h2> <input type="radio" name="71" value="98">Short <input type="radio" name="71" value="99">Medium <input type="radio" name="71" value="100">Long There are about 15 questions like this, and I would like to have the whole form rendered with slid...

Django Forms and Buttons

I have been working on forms only recently and I am still puzzeld by them. What I want are standard Forms: Next Button Submit Data to Db Timestamp Clickable Images with Regions defined where when I click I get to the next page And I would like to combine these. E.g. have a next button + Record the Timestamp. or E.g. Click into an...

Zend Framework – Modules, Forms, ViewScripts and ViewHelpers

Hi, I have a search module. It has one form within it that produces the search field, I am using a viewScript that is stored within views/scripts/forms to render the form. I want this form to appear on ever screen so I have written a ViewHelper that creates the from and returns it. This works fine when I am within the search module bu...

.NET MVC and SalesForce drop down list issue

I built a form in sales force and added it to my site. The whole goal of this is that the form on my site submits to sales force. I want to add server-side validation to my form like I have on other forms on my site. Sales force uses a weird name for drop down lists that often starts with a number. In my case, the drop down list inp...

javascript how to add textboxs' values and titles to textarea

I have this html: <input type="radio" name="r1" value="v1"><input name="asd1" title="text1" id="asd1"><br> <input type="radio" name="r2" value="v2"><input name="asd2" title="text1" id="asd2"><br> <input type="button" name="but1"> <textarea rows=6 cols=80 name="conclus" id="idConclus"> </textarea><br><br> Is there a way on js to fill ...

Mixing a textfield input with a select input in html

My employer has asked me how to mix the functionality of a textfield input with a select input, "kinda like gmail does when you start typing the address of someone you've already written to, it allows you to choose the person and also to keep writing if it isn't in the database". How is this done? I imagine there's a javascript/jquery...

How to process ajax form parameters with PHP script

I've been developing a dynamically generated form that passes multiple items similar to the sample below to a PHP script. <div class="menu-item"> <input type="text" value="3" readonly="readonly" class="quantity" name="quantity"> <input type="text" value="Menu Item 3" readonly="readonly" class="item" name="item"> <input type="text" value...

Creating a sticky form in PHP

I am having issues creating a sticky for in PHP. It seems all the samples I can find online are using one pages for both the form and the processor. I have two separate pages. This is going to be a very long form and if a validation fails, and the user has to re-enter everything, they won't, they'll quit. So this is a vital feature for t...

Which elements support the ::before and ::after pseudo-elements?

I'm trying to come up with some good default styling for <input>s in HTML5 and tried the following: input::after { display: inline; } input:valid::after { content: ' ✓ '; color: #ddf0dd; } input:invalid::after { content: ' ✗ '; color: #f0dddd; } Alas, the ::after content never shows up. It's not a problem with double- versus...

jQuery AJAX Form Builder

I need some really stellar AJAX example forms. I want to build simple but great 2 column forms with a dynamic form builder. This is one example but want one that is very easy to use and that I can move rows up and down and is very flexible to code in. ...

Passing the value to the next page without a form

I have a page I am constructing and I need to pass in the values of the option dropdowns to the next page. The problem is that these dropdowns are not in a form. http://posnation.com/test/pre_config/pre_config_step_2.html Basically what i need to pass to the next page is that when i click "Proceed To Next Step" I need to pass the ...