form

When to keep a form around permanently

I've got a form in a 24/7 application that will probably be needed as many as 1000 time a day. Does it make sense to create/destroy this form every time I need it, or is this an example of a situation where the form should be permanent? ...

How to unset an ajax loading.

Hi, I have this script which loads external content: <script type="text/javascript"> var http_request = false; function makePOSTRequest(url, parameters) { http_request = false; if (window.XMLHttpRequest) { http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideM...

JQuery-AJAX: No further request after timeout and delay in form post

I got a form containing multiple checkboxes. This form shall be sent to the server to receive appropriate results from a server side script. This is already working. What I would achieve now: 1) Implementing a timeout: This is already working, but as soon as a timeout occurs, a new request is not working anymore. 2) Implementing a de...

Symfony: Pre filtering submitted values before/after validation

Hi All I've been scouring the net and i have found nothing! I am using symfonys form framework to build a simple 'Create' form. Validation is fine. However i'd like to pre-filter my submitted values, so adding ucfirst, strtoupper, and the like. I'm not sure if im missing something crucial here, but the way i see it is the only way to...

Overriding form submit based on counting elements with jquery.each

I am probably going about this all wrong, but here's what I'm trying to do: I have a form that has approximately 50 select boxes that are generated dynamically based on some database info. I do not have control over the IDs of the text boxes, but I can add a class to each of them. Before the form is submitted, the user needs to select a...

Validation with Jquery Form Plugin

Hi, This is the first time I have attempted to make a form using jquery and php. I used the folks over at Mid Mo Design as an example but even with that tutorial am still having trouble getting it to do what I want. This is the code I have been using. As well as jquery 1.4.1 and jQuery Form Plugin 2.43. Any help would be greatly apprecia...

Login in a Webpage with Watin

I try to login on a webpage. On the webpage are two forms with inputs, the inputs have the same Id("username"). How can i get the right inputs to set my text? This is my wrong Code: browser.TextField(Find.ByName("username")).TypeText("test123"); or browser.Form(Find.ByName("form_login")).TextField(Find.ByName("username")).TypeText("...

Rails Globalize2

How can i implement multiple language translation fields in one form with globalize2? ...

How to open form action in Jquery Dialog

I have a form: <form style="display: inline;" action="/player.php" method="post"> <input type="hidden" name="recname" value="'.$row['name'].'"> <input type="hidden" name="recordingdesc" value="'.$row['description'].'"> <input type="hidden" name="reclink" value="$_SESSION['customerid'].'-'.$row['timest...

Issue with 'selected' value within form

I currently have a form built in which after validation, if errors exist, the data stays on screen for the consumer to correct. An example of how this works for say the 'Year of Birth' is: <select name="DOB3"> <option value="">Year</option> <?php for ($i=date('Y'); $i>=1900; $i--) { echo "<option value='$i'"; i...

why doesn't hitting enter when a SELECT is focused submit the form?

Consider the following HTML: <form action=""> <input /> <select> <option>A</option> <option>B</option> </select> <input type="submit" /> </form> If the focus is on the input (text box) and I hit enter, the form submits. But, if the focus is on the select (dropdown box) and I hit enter, nothing happens....

Show Form from TreeView in VB.NET

I am attempting to show a specific form using a treeview control, the nodes of which have their tag value set to an instance of the Form I need to show. The code I have in the DoubleClick event works great for the first time I show a form, but after that I get an object disposed exception. As you can see, I tried handling it by resetti...

Log user name and password to text file from form

We have a very old client that is having problems trying to log in to a website. At the moment we think the user is not entering a correct username. The site is in ASP does any one have any code that I could borrow that would be able to log and write down whats posted and then post that user name and password to the normal submit functi...

best way to form Validation on gae.

(1) is this way : http://code.google.com/intl/en/appengine/articles/djangoforms.html (2) is write by self : #/usr/bin/env python2.5 #---------------------------- # Datastore models for user & signup #---------------------------- from base64 import b64encode as b64 from hashlib import md5, sha256 from random import randint from time im...

How to send data in the HTTP request body when using an HTML form?

The HTTP spec says that a POST request can contain an arbitrary body of data. An HTML form element can POST to a URL and may contain input elements, but those input elements get turned into a query string. How can I get a form to also send along data in the body of the HTTP POST request that it sends when its submit button is pressed? ...

JQuery Blur Validation Problem

I have a simple form that I want to validate using blur if the text field is empty. The below code should work, but keeps alerting me even if I pop in some text, please, what am I doing wrong? var name = $("input#name").val(); $("input#name").blur(function() { if (('input#name:empty')) { // Testing ...

Changing default XMLHTTPRequest which is sending after form submit.

I have some field in form, lets say: <FORM action="http://server.com/cgi/handle" enctype="multipart/form-data" method="post"> <P> What is your name? <INPUT type="text" name="submit-name"><BR> What files are you sending? <INPUT type="file" name="files"><BR> <INPUT type="submit" value="Send"> <INPUT type="reset...

JQueryUI: how to keep the form inside the dialog when there are validation errors?

Hi, I have a form inside a JqueryUI dialog that is showed when i click a link. If i try to submit the form and there are validation errors, the form is not showed inside the dialog. So what should i do to keep the form inside the dialog when there are validation errors? This is my code: <script type="text/javascript"> $(function ()...

Moving .NET controls at runtime

I am attempting to move all controls on a form down or up by the height of a menubar depending on whether it is visible or not. I have code which I think ought to work well for this, however it seems that Me.Controls is empty at runtime, so my for each loop is never entered. Could someone please offer a suggestion as to how I can move ...

Drupal 6 CCK node form redirect issue

Hi, I am having trouble with a multi-step node form for a CCK content type. I set $form_state['redirect'] to a thank you page path, but it does not get redirected upon successful submission. Here is the code following documentation on the Drupal 5.x to 6.x form API at http://drupal.org/node/144132 function rnf_form_alter(&$form, &$form...