forms

SharePoint Lists and Forms

For those using SharePoint or MOSS 2007 specifically. How do you handle forms? Like say you want a form that submits contact information. I don't have this in production yet but I'm currently creating a list for the form that I need and then modifying the list add item form as needed. I'm not sure how this will translate to a public anon...

System::Windows::Forms::Form::ShowDialog()

I have a 2 forms setup my first form will call another form with the ShowDialog() method when I receive data from the serial port ShowDialog() throws InvalidOperation with additionnal information "DragDrop registration did not succeed" any hints on how to solve this? ...

django : using admin datepicker

I'm trying to use the admin datepicker in my own django forms. Roughly following the discussion here : http://www.mail-archive.com/[email protected]/msg72138.html I've a) In my forms.py included the line from django.contrib.admin import widgets b) and used the widget like this : date = forms.DateTimeField(widget=widget...

Problem with disabling submit buttons on form submit

Greetings I am using the jquery disable on submit plug-in but I have a problem. If I disable the submit buttons they dont get passed back to the server so I cant tell which button was pressed. Is this normal? Is there anything I can do about it? I really dont want to retool my website so I have to set a variable on form submission to t...

jQuery tabs - need 'All' tab with whole form and individual tabs for each form section

I've tried to google my requirement but without luck. What I have is a form that is broken into several tabs, all which works perfectly. However, now I've been asked to provide an 'All' tab with the whole form, in addition to the individual tabs for each section. Seems like a fairly straightforward request, but I can't see how I can imp...

In Firefox, how do I force a cursor to stick to the last typed character?

I have an input field in which a serial number will be typed. The number of characters allowed is set. Problem is that because of the letter-spacing, on typing a char in firefox, the cursor will jump ahead to where you would type the next char (even with maxlength set), which has the chars break break out of the little boxes they are su...

Form submitted multiple times when using the "submit" callback and $.ajax to post it

Hi, I've been observing some strange behavior with the following code: $.fn.submit_to_remote = function() { // I use .each instead of the .submit directly so I can save // the 'submitEnabled' variable separately for each form jQuery.each($(this), function() { $(this).submit(function() { form = $(this); if (form.da...

Default form submit behavior after jQuery forms.js ajaxSubmit executes

I'm using the jQuery Form Plugin to bind the submit events for two forms on the same page so that they are submitted to separate PHP scripts that return markup to separate divs on the page. One form refreshes the next. I use "live" so each form has its events re-bound when it is refreshed: $(document).ready(function() { /* Form 1 *...

django: form.fields not iterating through instance fields

I am trying to iterate through form.fields in a template and for: {% for field in form.fields %} {{ field }}, {% endfor %} I am getting a list of the field names ("name, description...") instead of the html code that is rendered when using the following: {{ form.name }}, {{ form.description }} (the output in this case is: <in...

Ruby on Rails: New controller for photos?

I have a one-to-many relationship between my Profile class and Photos class. Profile holds the user's information and photos holds the user's pictures. Currently, the "Upload photo" link shows at the bottom of the profile view. I want to have the link show up on a separate view instead of cramming everything on the same form. Should I ju...

TabPages for newly opened Windows Forms c#

Hi, I wanna add new tab page for every newly opened forms. For example ; frmReport reportform = new frmReport(); report.Show(); /// when i open frmReport form it must be opened in a New TabPage. like as Windows Internet Explorer 7-8 tabpages. Sorry for my english. ...

How to assign one category to a post with radio buttons, in Rails?

Hello, newbie here, first post. I just spent like 4 hours trying to assign one category to a post (trying out a regular blog thing) via radio buttons, to no avail. The association is working fine, and ultimately I managed to get it working with a select menu, but for some reason it seems radio buttons are simply not meant for that. I ...

Using forms with the Zend Framework

I'm relatively new to MVC and the Zend Framework. That being said, I feel like I have a hard time figuring out where Forms belong in my directory structure. I have a modular directory structure, so I don't know if there should be a single forms directory, or one within each module directory. /application /modules/ /default ...

Progressbar in listbox?

I have a listbox that contains a bunch of file downloads, i want to add a progress bar to the current download to let the user know the progress of the download. I cannot figure out how to do this. ...

Odd problem with ListBox.DataSource

I'm writing a Windows application and using a Listbox control. I'm developing with Visual Studio C# 2008 Express Edition. I've got a data object that looks something like this public class RootObject { public List<SubObject> MySubObjects{ get; set;} } I've got a ListBox on my form, and also a property "MyRootObject" which, obvious...

How do you edit records from a VBA form that you want to interactively select?

I have a set of ComboBox's in an MS Access 2003 DB that are all bound to fields in a single table. However, the data that they allow you to select doesn't come from that table and instead comes from various other tables. This works fine for the record creation story but now I want to be able to edit the record retroactively. The probl...

Keep webpage from scrolling to top on form submit.

I am submitting a form via an anchor tag and javascript. <a onclick="submit_form();">Submit</a> As soon as the button is clicked, the page immediately scrolls to the top of the page and continues the normal form submission process. How can I keep the page from scrolling to the top and why does it do that? ...

Styling an Input Button using "Sliding Doors"

Hi guys, I have a webpage that is using third-party html that I cannot change. I can however edit the CSS style sheet. I have a "sliding-doors" style button that I want to swap for the default input button on the page, but I cannot figure how to do so using only CSS. Here is the html of the button <div> <input type="button" style="mar...

GET vs. POST Best Practices

For my web application (PHP/MYSQL), I show a list of items and a link on each row to delete the item. Right now, the link is <a href='item.php?id=3&action=delete'>Delete Item</a> If I wanted to use POST instead... how would I do it (this is a dynamically generated list)? Can I send POST data without the use of a form? Or, for every...

Blank out a form with jQuery

I have a form with a standard reset button coded thusly: <input type="reset" class="button standard" value="Clear" /> Trouble is, said form is of the multi-stage sort, so if a user fills out a stage & then returns later, the 'remembered' values for the various fields won't reset when the Clear button is clicked. I'm thinking that att...