forms

What's a clean/simple way to ensure the security of a page?

Supposing you have a form that collects and submits sensitive information and you want to ensure it is never accessed via insecure (non-HTTPS) means, how might you best go about enforcing that policy? ...

Trigger update on DataTable bound to DataGridView

In my .NET/Forms app I have a DataGridView which is bound to a DataTable. The user selects a row of the DataGridView by double-clicking and does some interaction with the app. After that the content of the row is updated programmatically. When the user selects a new row the changes on the previous one are automagically propagated to the...

Form library

Zend_Form has a few problems for my use cases. HTML_QuickForm2 looks dead (frozen in alpha for almost a year). What is a good standalone alternative to these? ...

What can prevent an MS Access 2000 form from closing?

My Access 2000 DB causes me problems - sometimes (haven't pinpointed the cause) the "book" form won't close. Clicking its close button does nothing, File -> Close does nothing, even closing Access results in no action. I don't have an OnClose handler for this form. The only workaround I can find involves opening the Vba editor, making...

Infopath 2007 - Emailed forms not rendering correctly

So I have a form that uses infopath services via sharepoint, and after multiple attempts at attempting to fix a rendering problem (tables appear WAY too wide to be readable), I think I have found the problem : date controls. It seems date controls within Infopath 2007 screw with rendering somehow. To test, I made 2 variations of a VER...

Getting multiple UI threads in Windows Forms

I'm trying to figure out a way to make user controls run in their own UI threads. Is this possible? I'm trying to prevent a module-based application from crashing due to a single module. Any thoughts? ...

Accessing URL parameters in Oracle Forms / OC4J

How do I access parameters passed into an Oracle Form via a URL. Eg given the url: http://example.com/forms90/f90servlet?config=cust&form='a_form'&p1=something&p2=else This will launch the 'a_form' form, using the 'cust' configuration, but I can't work how (or even if it's possible) to access p1 (with value of 'somethi...

Is there a .NET equivalent of Perl's LWP / WWW::Mechanize?

After working with .NET's HttpWebRequest/Response objects, I'd rather shoot myself than use this to crawl through web sites. I'm looking for an existing .NET library that can fetch URLs, and give you the ability to follow links, extract/fill in/submit forms on the page, etc. Perl's LWP and WWW::Mechanize modules do this very well, but ...

Easy to use/build workflow forms app?

Do you guys know of a service, similar to GoogleDocs or something (see http://blog.stackoverflow.com/2008/08/bad-news-good-news/) that I can use to set up simple forms that have some sort of workflow built in? We have a lot of cases like requests for new account numbers etc that could use a good workflow, but no one has the time or resou...

Forms in SharePoint

If I want to put a form up on SharePoint, is it easier to use InfoPath or build a custom web part in C#? Are there other options that I should consider? What are the requirements and hurdles for each option? ...

what's the best implemention of client creatable and modifiable web forms in a relational database?

In several web application projects I've been a part of, the client asks to be able to create their own forms. The question arises on how to store their form definitions, and then how to store user inputted values into those custom forms. I've seen it done two ways: Assuming that the client only defines how many fields, and what label...

JQuery Flickr file upload not working

I am trying to upload a file using to Flickr using JQuery. I have a form (which works if I dont use JQuery) which I am submitting using the Form Plugin. My code is as follows: <html> <head> <title>Test Upload</title> <script type="text/javascript" src="jquery-1.2.6.js"></script> <script type="text/javascript" src="jquery.form.js"></scr...

Check if option is selected with jQuery, if not select a default

Using jQuery, how do you check if there is an option selected in a select menu, and if not, assign one of the options as selected. (The select is generated with a maze of PHP functions in an app I just inherited, so this is a quick fix while I get my head around those :) ...

Using "Remember Me" functionality for authentication in .NET 2.0

My client wants me to enable a "Remember Me" checkbox when the user logs in. I am encrypting and storing both the username and password in a cookie. However, you cannot write to a textbox when it's in password mode. I've seen this done numerous times, so how are they doing it? thanks in advance! ...

How to get a reference to the currently focused form field in JavaScript?

I'm looking for a cross-browser method - I know IE has something (I've already forgotten what), and the way to do it in Mozilla may have to do with a focusNode thing I found, that seems related to getting text selections. Methods involving jQuery or another common JS library are fine by me. Thanks! ...

How do I make foreign-key combo boxes user-friendly on an Access form?

I've got two tables: Employees: uid (number) | first_name (string) | last_name (string) | ... Projects: uid | project_title (string) | point_of_contact_id (FK: Employees.uid) | ... I'd like to create a form for Projects with a "Point of Contact" combo box (dropdown) field. The display values should be "first_name last_name" but the ...

.Net CF Prevent Overzealous, Impatient Clicking (while screen is redrawing)

.Net Compact Framework Scenario: User is on a screen. Device can't finds a printer and asks the user if they want to try again. If they click "No", the current screen is closed and they are returned to the parent menu screen. If they click the "No" button multiple times, the first click will be used by the No button and the next click w...

How to update an Access DB from the web?

I'm looking for a way to create an online form that will update an Access database that has just a few tables. Does anyone know of a simple solution for this? ...

Nested dropdown

Hi all, I'm building a form with php/mysql. I've got a table with a list of locations and sublocations. Each sublocation has a parent location. A column "parentid" references another locationid in the same table. I now want to load these values into a dropdown in the following manner: --Location 1 ----Sublocation 1 ----Sublocation 2 --...

Usability: Should the ENTER key close a wizard form as OK even if the focus is not set on the OK/DONE button?

Hello everybody! I have the in my opinion odd request to close a wizard form as Done or OK if Enter was pressed on the keyboard even if the OK/DONE button is not focused. In my opinion that would be a usability mistake. For example: In the wizard you may have multiple controls, buttons, check boxes, multiple line controls and they all ...