forms

Customizing a Django admin template

I would like to modify an admin template in Django. % cat /Library/Python/2.5/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html <fieldset class="module aligned {{ fieldset.classes }}"> {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %} {% if fieldset.description %}<div class="description">{{ fiel...

How to know when a Message Box has been shown for a form?

In my application, I have a task which is running on a background thread. I need a notification in the background thread when ever a MessageBox or any modal dialog is displayed in the UI thread. Though I can do it manually by calling some function before displaying the MessageBox, but it will be great if I dont have to. For e.g.: back...

Is there a way to call the BeforeUpdate event procedure of any control in VBA (MS Access 2002 or 2003) ?

Hi, In VBA, I'm changing the value of a few controls in an Access form. I like to run the BeforeUpdate events of these controls after doing so, as it checks the coherence between fields : Private Sub ExampleProc1() Dim intCancel as Integer intCancel = False Me.Controls("Date1").Value=Null Me.Controls("Textfield1").Value=Null ...

Automating paper forms and process flow in the office

I have been tasked with automating some of the paper forms in HR. This might turn into "automate all forms" eventually, so I want to approach this in a way which will be best for the long term and will be a good framework as this project grows. The first things that come to mind were: -InfoPath/SharePoint (We currently don't use Share...

Fast way to validate if all checkboxes are un-selected?

Is there a quick way or function that would tell me true/false if all check boxes are deselected? Without going through array? (with JS and HTML) All my check boxes have the same name... <form action="/cgi-bin/Lib.exe" method=POST name="checks" ID="Form2"> <input type=checkbox name="us" value="Joe" ID="Checkbox1"> <input type=c...

VB Form Popups and interaction

How can I get Visual Basic to open another form using code? I have attempted to google the solution several times and never found anything that works. Also, do VB forms share variables? Is there any way for one form to send data to another form? I know this should be really simple, but I just cannot figure it out. ...

MS MVC form AJAXifying techniques

I'm looking for most elegant way to ajaxify my forms (with jQuery). How do you do this? ...

How are forms prepopulated in ASP.Net MVC?

When you have an ASP.Net MVC form created by Html.BeginForm(), how do fields inside it get populated? In the case of <asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server"> <h2>Edit Dinner</h2> <%= Html.ValidationSummary("Please correct the errors and try again.") %> <% using (Html.BeginForm()) { %> <p> <labe...

Best approach to extensibility on node types and context actions in Forms treeview

I'm working on a Visual Studio Add-in for Visual Studio 2008 that display a treeview that provides a view on content in a server product. The server product contains different types of nodes, and each node has its own type of context menu (right click menu). For new types of nodes and the actions connected to a node I currently just add...

Can I pickle upload file from a django form? I mean a InMemoryUploadedFile

I have a django form where I have a FileField which accepts user's resume. I am gonna convert the resume to a html document LATER. So I thought of pickling the original document right away and store in it a db colum and later unpickle it and convert it. Is that possible? ...

Jquery + dynamic additional rows in a form

I'm creating a form which dynamically inserts data entered into the form fields into the database as and when anything has been entered. I'm now working on adding dynamic rows to the form (ie. duplicating an existing row if the user needs to add extra information). I've run into two problems. The code i'm using is based on the followin...

jQuery POST not changing IsPostback variable

Hi, When using jQuery to POST data back to the server, I'm getting some strange behavior. If I include __VIEWSTATE and __EVENTVALIDATION in my serialized form data, the IsPostback page variable is set to true, If I exclude these two, the IsPostback is set to false. Its easy enough for me to include these two variables but does anyone ...

Jquery dynamic addition of form fields problem

I'm using the following code to insert extra form fields. function addFormField() { $("#divTxt").append("<div id='education" + id + "'><input name='name' id='name' type='text' size='20'><a href='#' onClick='removeFormField(\"#education" + id + "\"); return false;'><img src='images/minus.gif' width='10px' border=0></img></a></div>"); } ...

Jquery -> php -> mysql and dynamic form fields

I have a multi page form which uses multiple tables in mysql for the entered values. One of the pages has a form which needs to have the option of enabling the user to click a + to add an extra line if they want to include extra information. There can be any number of lines added. When the user clicks the +, jquery and php inserts the c...

How might I change the width of a field on an Access form at runtime?

I'm working to devise a custom layout system for my MS-Access forms. So far so good - I've had the idea! But now comes the tricky bit: resizing individual fields such that their width matches in an attractive manner. Sad to say, I'm a bit stuck here - surely there must be some function, property or method call that will allow me to spe...

Custom list form using sharepoint object model VS 2008

Is there a way to handle the DropDownSelectedIndexChanged for list item new form. Let say I have a custom list named Temp having Title, Products (which is a DropDownList) and Color Shade (which is a TextBox). When I create a list item I want to select a product from DropDownList and on the selected index changed I want to write the busi...

BDS2006, C++: How to make own form template for creating dialogs?

When you create dialog in BDS IDE it's derived from TForm class and it's just an empty form. As our system has a GUI standard for how all forms should look like it would be nice to make a template and use it as a base for future dialogs instead of plain TForm. For example all our dialogs have our custom component with buttons aligned t...

Separating two forms in the same view in ASP.Net MVC

I've merged the create account view and the log in view in the same view. So it's a view with two forms, but they get mixed when I submit. If I try to log in and there's an error that is displayed with: Html.ValidationSummary() both forms get the error. And I started to rename fields to loginPassword, createPassword, because otherwise...

jQuery - Check Checkbox based on Select Value

Hi, I'm after a small jQuery script that will check the appropriate check box based on what value is selected in a Select element input. eg. If the value 'P.J. Gallagher's Drummoyne' is selected in select#CAT_Custom_70944 then input#drummoyne-list.checkbox is checked. The same goes for all the options in the select list: 'P.J. Galla...

Form 'jumpy' in IE7

I have 3 forms on a site I am developing - http://79.125.12.14/contact/ They work fine on firefox et al, but they have this strange 'jumpy' effect in ie7. I'm a bit stumped. The forms are embedded Javascript Wufoo forms. Any ideas out there? ...