forms

How to display another form on select of button

Hi everyone I created jsp which has 2 forms. In UI there are 2 buttons. On select of each button respective form should be displayed. But while trying to do this its not allowing me to display other form on button click. Can I have any sample code such that it will resolve my problem and i can proceed with my work. I will be thankful for...

What is the entering method of a multi form project?

I'm working with a C# project using System.Windows.Form to create the GUI, I have two forms within the VS project( MainForm and InitialPrompt). I've never used Forms before and Google hasn't been of much help. Intended action: InitialPrompt Load Click Button on InitialPrompt Load MainForm However, since MainForm was created first ther...

How bad are usernames and passwords stored in hidden form fields?

Suppose you've got a webapp that's passing usernames and passwords around in hidden form fields. I know it's a very bad idea, but I'm interested in enumerating why... any thoughts? update - This is a hypothetical question. I couldn't find a resource that just enumerated the reasons - I know of plenty of reasons why it's a bad idea, I'...

Lightbox/Forms Question...

I am trying to allow for the filling out of a form from a lightbox pop up window. One like the one that Get satisfaction uses (though I only need to be able to collect info, not display from a query as well). You can see a Get Satisfaction example at http://tweet.fabeetle.com and clicking the feedback tab. What is the best way to do th...

SimpleModal jquery with 2 html forms

Hello, I've been working with Eric Martin's SimpleModal with success, but now I had to add a new html form to my page and it stopped working, the content of the modal is not appearing. Do you have a solution for this? Note: I'm working in ASP.NET, so the 'appendTo' property is set to 'form'. Thanks in advance, Rui ...

C# / .NET : Caching forms or speeding up form generation

I have a zoomable form-interface like MS Word. The form contains +70 controls (Richtextbox, checkbox, etc) that are positioned all over the form. The problem is that generating the form takes 2.5 seconds. Adding the 70 controls with panel.Controls.Add( ctrl) alone takes 1 second. (16 ms per call). Is there a way to cache the whole blan...

C# anonymous type foreach looping

I need to loop through the properties of a custom object type that I'm getting back from the database and only show the columns that contain data. This means I cannot simply bind the list of objects to the datagrid. I don't want to loop through each object and see if the column is empty/null and determine in the UI to display it. What I'...

Transmit generated XML file without saving to disk

I have a large web form application that I want to allow the user to export their data in case they don't want to complete the entire form at once. Then when they return they can import the data and continue where they left off. The reason for this is part of the requirement for the client is that no database is to be used. I've gotten...

php form script

I'm very new to PHP and am having some trouble. I have a form using HTML which is action=.php method=post The form is using text boxes and select options, I'm not sure if it makes a difference in sqldatabase. I've tried about 30 different combinations of this script and can only get a connect successfully message but nothing is posted....

UITableView form

Hi Guys, I am having very annoying issue. I have one form page with 5 custom cells. Each of them has one text field. On the bottom I have one button. In an onclick button function I am gathering values from each of the 5 described text fields. My problem is that if my keyboard is up, I will get the values of not all but just visible tex...

Login.aspx and Catching the AD Error Authentication response value

Hello everyone. Please help! I am new to the .NET web application development. I have used the code from the link below to create a basic login page in front of the Microsoft Live Single Sing On. http://support.microsoft.com/default.aspx/kb/326340 I managed to combine the two together (LiveSSO w/ Forms Authentication) turning off the...

Updating Bean from JSF dataTable

I've got this h:dataTable and form: <h:form> <h:dataTable value='#{bean.allData.dataItems}' var='item'> <h:column> <h:outputText value='#{item.id}' /> </h:column> <h:column> <h:inputText value='#{item.name}' /> </h:column> </h:dataTable> <h:commandButton value="Save" action="#{bean.saveEntries}"/> </h:form> So ...

How do you prevent ONE radio button in a group from being selected, but allow others to deselect it?

Hi there, We have a form with a radio button group, where any one of the buttons may already be selected. We want to prevent a user from selecting one of the radio buttons, BUT we want to be able to 'deselect' that radio button by clicking on any other radio. Like so: Step 1: (initial page load) R1: enabled and clickable R2: disabled...

Securing PHP forms for beginners? Resources?

I successfully built my first html/PHP form that passes variables between multiple pages using the _POST global variable and then emails me the results using the mail() function. I'm sure this form is incredibly insecure as it is now and vulnerable to all matter of exploits and I want to know how to patch up the holes, however I'm prett...

PHP - Checkbox group

Hi, I have a checkbox group in one form that I need to be posted. <input type="checkbox" value="true" checked name="chk0[]"> <input type="checkbox" value="false" name="chk0[]"> <input type="checkbox" value="false" name="chk0[]"> <input type="checkbox" value="true" checked name="chk0[]"> <input type="checkbox" value="true" checked name...

How do I add different content for a checkbox in Django?

How do I add different XHTML in a template for a checkbox field? I would like the following to work. I've tried to use "is_checkbox" in the example below but it doesn't work because this isn't an admin form. {% for field in payment_form %} <p class="{% if field.is_checkbox %}checkboxes {% endif %} "> {% if field.is_checkbox %} ...

Creating an MS Access query based on system, status, and date

I am just learning Access and have been tasked with creating a database for system access. We need a report that shows what systems have been in a pending status for 0-30 days, 31-60 days, 61-90 days, and 91+ days. I am soooo close to getting this but I’m at a dead end. For the examples below I will just use NFC and eOPF as the system...

CUDA & Visual C++ & Windows Forms Applications

I'm using Microsoft Visual C++ 2008 Express Edition and I have to work with CUDA technology. I've understood how to work with it creating console applications. But I have no idea how to make it working in win32 applications with forms (dialogs, buttons, labels, etc.) Any idea? ...

HTML: table of forms?

I frequently find myself wanting to make a table of forms -- a bunch of rows, each row being a separate form with its own fields and submit button. For instance, here's an example pet shop application -- imagine this is a checkout screen which gives you the option to update the quantities and attributes of the pets you've selected and sa...

How to set values displayed after submit using PEAR QuickForm?

Let's say I've got form like this: $form = new HTML_QuickForm('Novinky'); $defaults = array('text' => ''); $form->setDefaults($defaults); $elements['text'] = $form->addElement('textarea', 'text', 'Text', array('cols'=>55, 'rows'=>10, 'id'=>'text')); $form->addElement('submit','save','Save'); if (isset($_POST[save])) { if ($form->v...