form

C# WaitCursor while form loads

Hello all, I'm having a form that takes a few seconds to finally display. This form is called through: using (ResultsForm frm = new ResultsForm()) { this.Visible = false; frm.ShowDialog(); this.Visible = true; } It's useful that I get the default cursor to Cursors.WaitCursor while waiting for the form to finally display. ...

Multiple Forms vs 1 All-Encompassing Form?

I'm writing a YouTube Reply/Comment type wall on my website. This allows users to either post a new comment to the wall, or reply to any existing comment on the wall. Is it recommended to create a separate form for each reply comment box? Or is it better to just create 1 form on the page that contains all of the input/submit elements,...

HTML: Spanning a form across multiple td columns

I'd like to be able to do something like this in HTML. It isn't valid HTML, but the intent is there: <table> <tr> <th>Name</th> <th>Favorite Color</th> <th>&nbsp;</th> <th>&nbsp;</th> </tr> <tr> <form action="/updatePerson" method="post"> <input name="person_uuid" value="55...

ASP.NET Contact Form - output to email and access database

I am new to ASP.NET, and I am trying to create a contact form which sends an email at submission as well storing the data in a database. I have read numerous tutorials, and I am pretty comfortable with a basic contact form to email setup - but I am having trouble with the database part of it. Please let me know if you have ever done th...

creating Online form builder

Is it possible to create clone of the site http://jotform.com/ using asp.net I tried using jquery and asp.net, Creating the user interface is okay, but i'm stuck in managing the backend e.g. the form will have variable number of fields and the variable number of fields will be saved in the database saving-retrieving-managing form sub...

jquery see if any boxes checked

How do I find out if the users have checked any of the boxes with jQuery? Thanks. <div id="boxes"> <input id='id1' type='checkbox'> <input id='id2' type='checkbox'> <input id='id3' type='checkbox'> </div> ...

Problem with has_many :through and fields_for.

Hi There, I have a pretty basic association: # user.rb class User < ActiveRecord::Base has_many :services, :through => :subscriptions has_many :subscriptions, :accessible => true accepts_nested_attributes_for :subscriptions end # service.rb class Service < ActiveRecord::Base has_many :users, :through => :subscriptions has_ma...

Axapta: Form lifecycle question

I am attempting to manually populate an image icon into a window nested in a grid. In the run event, the fields don't appear to have values yet. The string control always returns an empty value. Is there a better place for this code? In .NET, I'd use a databound event. Is there an equivalent in AX? void run() { FormStringContro...

Jquery Form field duplication

Hi there, I am new to jquery and consider myself a very novice coder at best, so please bare with me. But I think I am in need of your help! I have quite a long complicated php form, and a requirement to duplicate a set of fields. I am sure there must be a more efficient way of coding it, however I can't figure it out. There are 2 examp...

Is there a reason to put tokens on a search form?

Let me first tell that I understand the concept of CSRF attacks. Now I wonder, are there benefits to placing tokens on a search form? I can't really think of anything myself. ...

jQuery for submitting a form via AJAX?

Is there any magic jquery method that will allow you to submit a form to its action URL via AJAX rather than with an page reload? I know you can bind a form's submit event to a handler function, but I'm also looking for something that will automatically serialize the form's request variables into the $.post's data element in the same as...

better to use jquery on form submit button?

isnt it better to use jquery for form submit? like: Username: <input type="text" id="username" name="username" maxlength="30" /><br /> Password: <input type="password" id="password" name="password" maxlength="30" /><br /> <input type="button" id="register" name="register" value="Register" /> and then bind the id...

ASP.NET MVC Ajax Form - If value changes in Model after post, Form still displays old value

This behavior is making me wonder about my sanity.. I have a form that has two places that accept input, let's call them ValueA and ValueB. The user can enter a value in either one and the form submits. <div id="MyUpdateTarget"> <% using (Ajax.BeginForm("MyControllerAction", new AjaxOptions { UpdateTargetId = "MyUpdateTarget" })) { %>...

formvalidation with php and javascript/jquery?

im new in formavalidation. i am wondering if there is some library class you can download and include and then use for formvalidation in php and also in javascript/jquery? it would save a lot of time so you dont have to reinvent the wheel. thanks a lot in advance! ...

jquery validation plugin

someone has used this jquery plugin for form validation? http://docs.jquery.com/Plugins/Validation i cant figure out how to use it. it doesnt say anything in the documentation how to name the html form elements to make it work with the validate() method. and question nr 2, what php class validation is there to use for the server side?...

Newbie question : table to form generator in php

Hi all, I'm pretty sure there is a solution for this but I'm not sure about how to phrase it correctly. I have a form that needs to be saved in a database, pretty simple done in php and stored in a mysql table. But maintenance is pretty tedious, so I'm wondering if there is (or I should write my own) a solution to write the form's questi...

Copying INPUT FILE value to INPUT TEXT with click in jQuery

I would like to copy the value of a input:file to input:text. I can do it with plan JavaScript but I will like to know how to do it with jQuery. ----JavaScript // This what the script would look like with plain JavaScript // It works fine. I just woulld like to know who to do it with jQuery. function fakeScript() { var filepath; file...

Cakephp comment form input keeps the same value after i press add

Hello, I've created a blog site from "Beginning CakePHP from novice to professiona"-David Golding. I have the comment view listed below: <div class="comments form"> <?php echo $form->create('Comment');?> <fieldset> <legend><?php __('Add Comment');?></legend> <?php echo $form->input('name'); echo $form->input('cont...

How do I get the name of a form in Javascript?

How do I get the name of a form in Javascript? I have tried stuff like: document.forms[0].name document.forms[0].id //I have both name and id set ...

how to get post element in form in this case( in PHP )

in a form which is handled by php language, how can we get a input elements which are in a kind of array like item1,item2,item3..... (if we only want those items that are having values) example:- <form method="post" action="<?php echo $PHP_SELF;?>"> item1 <input type="text" name="item1"> item2 <input type="text" name="item2"> item3 <inp...