form

How to put flash uploader between Zend Framework Form Elements

I need to put flash uploader between form elements. Could you please tell me how to do it? ...

Dojo: dijit.form.select won't fire "onClick" event the first time clicked

Hi, I've been through the Dojo docs as well as the API and tried Google but can't find a solution to my problem, I hope anybody here can help me out. I'm trying to create a dijit.form.select programmatically (using Dojo 1.4) and connect to the "onClick"-event of the widget. Here's a part of my code: var dataSelect = new dijit.form.Sel...

C#: Trouble with Form.AcceptButton

Hi all, I have a form with an button which is set as the AcceptButton of the form. The form has several other controls. Now when I press Enter on other controls the form gets closed because of the accept button on the form. Same goes for CancelButton. How do I handle this. I tried hooking on to keypress keydown event of the form and con...

Help with question/form code PLEASE

I am in desperate need of some help to write some code for templates I need for work. I want to write a number of different options but I need to know how to do a basic code and have fields come up based on answers from the previous question. Something kind of like this... Select Letter (then have the different letter options and depen...

jquery.form: how to set more than one form in one page?

hi! i have a list of names with "delete" button, every row is a form and clicking on delete the list should be updated in real time but don't works because in this plugin i can set only one id (infact it runs when in the list there's only one name) this is the javascript function: $(document).ready(function() { var options = { ...

jQuery form submission. Stopping page refresh only works in newest browsers

Using jQuery 1.4 to do this. Adding a form to the body tag, nothing special about the form itself: $(function() { $('body').prepend('<form name="frmSample" id="frmSample"><input class="btn" type="submit" value="SIGN UP" /></form>'); }); I'm using the following to submit the form: $('#frmSample').live('submit', function() { var for...

Zend Framework and LoginController with LoginForm

I've got some stuff I'm trying to do with ZF; I have a LoginController.php in application/controllers/ with class LoginController extends Zend_Controller_Action. Within it, I have the following: public function getForm() { return new LoginForm(array( 'action' => '/login/process', 'method' => 'post', ...

django - how to save form (not a modelForm)

Hi there, probably a silly question, but I'm not sure how to handle this 'correct'. I got a normal form with some fields. I can insert data without problems. When I want to edit a record, I'm using the "model_to_dict"-function to populate the form. After editing a record I want so save it, and here my problems starts. The django docs s...

jQuery validation form not working

MY .js file: //rounded corners $(document).ready(function() { $("#topbar").corner("bl br 5px"); $("#mainbar").corner("5px"); $("#sidebar").corner("5px"); $("#bottombar").corner("5px"); }); //form $(document).ready(function(){ $("#commentForm").valid...

If an HTML form has two <input type="submit"> buttons, how do I know which got clicked?

Hello everyone! Suppose I have the following HTML form: <form> ... <input type="submit" name="queue" value="Queue item"> <input type="submit" name="submit" value="Submit item"> </form> How do I know which button the user clicked (without using javascript)? I looked at submitted data and it seems that when "Queue Item" is clicked the...

Zend Framework: Creating Array Form Element & Validation

This is the data being posted to my Zend Form for validation: Array ( [cross_promotion_insert_categories] => Array ( [37908] => Antiques > Antiquities > The Americas [162922] => Antiques > Antiquities > Byzantine [162923] => Antiques > Antiquities > Celtic ) Is it possible to create a form elemen...

How to build an order processing form in ASP.NET MVC and jQuery/JavaScript

I need help with building page where information is entered on a form at the top of the page and then added to a grid below the form when the user clicks the "Add" button. The form will have drop-down boxes so the colums in the grid representing the selection should show the text of the drop-down and not the index/id. Once all data has b...

Drupal 6 Validation for Form Callback Function

I have a simple form with a select menu on the node display page. Is there an easy way to validate the form in my callback function? By validation I don't mean anything advanced, just to check that the values actually existed in the form array. For example, without ajax, if my select menu has 3 items and I add a 4th item and try to submi...

Ajax/PHP contact form not able to send mail

The funny thing is it did work for one evening. I contacted my host, and they are saying there's no reason it should not be working. I have also attempted to test it in Firebug, but it seemed to be sending. And I specifically put the email address (hosted in my domain) on my email safe list, so that is not the culprit either. Would anyo...

ASP.NET MVC - Submit Form with complex Model with EntitySet

Hello There, I'm struggling myself trying to make my form work with my models... So, I have 3 Models Account has_one -> Company has_many -> Individuals -> has_one Document So the account can have one company and many individuals with one document each. When submit my forms I have the following action [AcceptVerbs(HttpVerbs.Pos...

How to prevent multiple inserts when submitting a form in PHP?

Sometimes the user may press Enter twice, and the post is inserted twice. Is there a solution to prevent this other than check if there is already a post with the same title and content? ...

php simple contact form not sending mail even after confirmation...

Hi I have been trying to get a php contact form working on my portfolio site (currently on a free megabyet.net account), but on testing it(on the uploaded site) even though i get the thankyou/confirmation message, I still don't receive any message on my mail account (specified in the code), I can't seem to understand the problem here......

Vertically (only) resizable windows form in C#

Hi, I have a situation where it would be beneficial to me to allow my windows form to be resized by the user, but only vertically. After some searching, it seems like there isn't much on this particular subject. Is it possible? Thanks, -Ben ...

Submitting Html Form Through Java Code

Actually I want to submit a html Form through java code. i use Apache HttpClient API Post method for this but when i send the request it return me same page with filled form instead of submitting it. When i open that Html Form which i want to submit through java code i came to know that it has a ajax call to submit. i want to know ...

Change text box value of an iframe on a different domain using jQuery?

I have an Iframe for a page that allows people to sign up for my email newsletters. I want to auto fill the email field in the iframe based on the querystring url (page.html?email=email) I know how to do the querystring stuff, I'm just not sure If I'm able to access the input text box within the frame. The form or the textbox neither ...