forms

Expire the page after submission

I'm implementing an iAuth form for a credit application in a J2EE container (JSTL+JSP+Stripes). The vendor states in the implementation guide: Expire the “Questions” page after answers submission When performing iAuth transactions you will need to “expire” the page on which the consumer's questions will be displayed after they h...

Alternative to chained selects

I've been trying to use chained selects for a registration form, but have given up hope on them ever working in IE8. Does anyone know of another method for dynamic form-fields? Basically I need the user to select type 1 or type 2 and have type 1 populate a dropdown with options ABC and type 2 populate a dropdown with options XYZ. ...

Is there a way to override automatic record updating of Access 2007 forms created with Form Wizard?

I'm new to Access VBA, and have created a form using the Form Wizard that displays records in a table. That's a piece of cake. The behavior that I get with the form, though, is that updates to the records occur automatically when I move around records. What I'd like is to have the updates occur only when I click an "Update" button tha...

ASP.NET MVC: Including MVC partial view in APS.NET Forms pages

We've got old ASP.NET Forms pages and new MVC views and partials views in the same solution. Some pages on the site are MVC, and legacy pages are Forms. One of these legacy Forms pages is an .ascx control. Is there any way for me to insert an MVC partial view (.ascx) into this Forms .ascx control? ...

Easiest Way To Make A Form Submit Without Refresh

I have been trying to create a simple calculator. Using PHP I managed to get the values from input fields and jump menus from the POST, but of course the form refreshes upon submit. Using Javascript i tried using function changeText(){ document.getElementById('result').innerHTML = '<?php echo "$result";?>' but this would keep giving ...

how can i close my jquery ui dialog when i submit a form?

i load a form into a jquery ui dialog. i have a submit button (inside my form - NOT the actual dialog buttons) that calls a controller action but i can't figure out how to close the dialog after the submit is called as i dont have any event handler that i am attaching. is there anyway of doing this besides changing the submit to inpu...

Problems with passing form details in PHP using POST

This is a piece of code on home.php <form action="./Login" method="post"> Email Address: <br /> <input type="text" name="username" tabindex="1" /><br /> Password: <br /> <input type="password" name="password" tabindex="2" /><br /> <input type="hidden" name="home" value="yes" /> <div class="options"> <input type="submit" value="" name="L...

vb forms button control

very basic question. I have 3 forms. one main form with two buttons, that need to open one of the other two forms on clicking the button. Now when say button 2 is clicked then form 2 should open and also form form 2 person should be able to click back and come to main form. how can i do this? ...

Unset uploaded files in PHP

I have a Form that I am using to receive an uploaded .csv file, parse it and insert the data into my MySQL db on an Apache server. The page first checks to see if there is an uploaded file. If there is, it processes the data, if not the form (below) is displayed. <form enctype="multipart/form-data" action="uploadfaculty.php" method="P...

html form button vs input type="submit" vs this.submit()?

What is the proper standards compliant semantic way to have a submit button on a form? I don't need images or backgrounds in the buttons, just simple text, maybe a gradient background with curved corners (using CSS3). These are the ways I know of: <input type="submit" value="click here"/> <button>click here</button> <span class="but...

In an HTML form, I need to generate incrementally increasing values in the dropdown options of a select tag.

Here's what I need to write for a bunch of dropdown menus: <select> <option value="23">23</option> <option value="23.5">23.5</option> <option value="24">24</option> <option value="24.5">24.5</option> [etc...] </select> It needs to increase by .5 for every option. The etc. part is where I need to repeat the process...

Best interface paradigm for time interval selection?

I'm working on a small project that involves selecting time intervals and then using them for my nefarious purposes (which basically boils down to making a robot voice shout things at me). However, I can't decide on a proper paradigm for choosing these intervals. The required data is as follows: Action (Text) Starting At (Time, can be...

Getting an input element's value in jQuery

How can i get the input element value in jquery ...

how to switch/choose between html forms

Hello, I have a little problem, and an need your profesisonal... So i have two forms in two div. DIV ID=A and DIV ID=B When a user visit my site, a would like to offer the visitor to choose between the forms. he user see a drop down box, or two radio button, and if select option A then form A load, if B...then B.. But i don't know ho...

Jquery form validation problem: Salesforce field id starts with digit

I have been supplied a form by Salesforce.com for which I need to do client side validation. I am using the Jquery validation plug-in. The form contains a dropdown list which like this: <select id="00N2000002pPvP" name="00N2000002pPvP" title="Region"> I have been informed by Salesforce that they cannot change it. My problem is that...

echo json_encode with 2 variables with jquery form plugin

code inside php file: $variable1 = array( 'variable1' => "$variable1" ); $variable2 = array( 'variable2' => "$variable2" ); echo json_encode ($variable1); code inside main page: <span id="variable1"></span> <span id="variable2"></span> I am trying to make it so it echos both variables in their spans. doing 2 echos...

Creating a Combobox in HTML

Actually I have a CGI form which consists of textfields and I need a combobox in which I can enter my own data dynamically. May be it seems very silly question but I am new to cgi-perl as well as HTML so no idea what to do. Here is my form: #!C:\perl\bin\perl.exe use CGI; use CGI qw/:standard/; use CGI::Carp qw(warningsToBrowser fatal...

Separate date and time form fields in Rails

I have an ActiveRecord model Eventwith a datetime column starts_at. I would like to present a form, where date and time for starts_at are chosen separately (e.g. "23-10-2010" for date and "18:00" for time). These fields should be backed by the single column starts_at, and validations should preferably be against starts_at, too. I can of...

Multi-nested attributes using accepts_nested_attributes_for does not update any but the first layer of nested objects

I have an interesting conundrum. I have a table of programs that has_many install_validations that have many install_validation_reactions (don't ask!). I set the program model to accepts_nested_attributes_for :install_validations, :allow_destroy => true, and the same between the install_validations and install_validation_reactions. Built...

Check multiple textarea fields for value using jquery and then perform a function

Basically what I'm trying to accomplish is I want to check multiple dynamic forms on a page. Then if All textareas are empty OR have the default value, perform a function. Otherwise if any of them are not empty without the default value, cancel the function. I know how to get the total count of the divs/forms or go through each one, sor...