forms

Error with IE and form data when clicking back

Say if I am on page 1 , I enter my form data and go to page 2 , But wait I forgot something and I need to go back. FireFox and Safari ask me if I want to resend my form data. But IE being IE it just goes back and does not show the page. Is there away around this when I click back it keeps the data and the page appears. Sorry I cannot...

Populate ModelChoiceField by comparing two or more tables

I have a sort of unique situation....I want to populate a ModelChoiceField based of several tables, reason being I want to have the search containing only active records. An example of one of the models is as follows: class ExteriorColour(models.Model): exterior_color = models.CharField(max_length=7, blank=False) def __unicode__(...

New MDI child resizes other maximized Forms

I have a project with a main MDI form. There is a child MDI form inside that is always present and cannot be closed (Is it possible to hide the close button while keeping the min and max buttons?). Because the child form is such an important part of the program, users like to have it maximized. When another MDI child pops up, the maxi...

C#: Getting a button to display a preset form

I am quite new to C#, so forgive my ignorance... I have (currently) 2 forms, one that needs to call the other. In other words, by clicking a certain button in Form1, Form2 needs to "pop up", like a dialog box. I know I have to get a reference in both forms, but I'm not entirely sure how to do this. What is a decent tutorial/beginner site...

Winforms Disabling Control Box from showing up

Hello, I am creating a Winforms application without any Toolbars. The main window has FormBorderStyle set to Sizable and ControlBox is set to true. Every time I hit Alt and then use up or down arrow (not Alt+Up or Alt+Down) the control box shows up on the top left hand side of my application. This is annoying because there are shortc...

jQuery is not responding to a simple .click() command -- what's wrong?

I'm using jQuery to dynamically add form elements to a web form. Users can "add a time slot" to their request form by clicking a button/link. When clicked, I'm using .after() to add another two rows to the form table, as well as the labels and fields. The last column in the appended code is a link that says "Remove". $(document).ready...

How do I keep my C# Windows Form Responsive while it churns loops?

I have this massive nested loop scenario that is calling the DB and making HTTP requests to Basecamp API. At first it was a web app but it took much time to run the app so the user (billing department) would often quit out early or complain because it would take so long with no feedback and no way to cancel it. I wanted to make it more r...

Django form submit button's onclick does not call JavaScript function

I have a Django form that needs to do some client-side validation before submitting the form. This is the code in the template: <form action="/{{ blog_entry.id }}/addComment/" method="post"> {{ commentForm.name.label_tag }} {{ commentForm.name }} <span id="spanNameReq" style="color:Red; display:none;">Required</span> <br /> {{ com...

resetting form with javascript won't work...

Here is my main page code: <form><iframe name="iframe_pic" src="iframe.html"></iframe></form> Here is my iframe.html: <script type="text/javascript"> function reset_imageform(){ f = document.getElementById("pic_form"); f.src=f.src; } </script> </head> <body><form name="pic_form" id="pic_form" enctype="multipart/fo...

Stop form page load upon submit with jQuery

$(document).ready(function() { $("form.ajax").submit(function(e) { destString = $(this).attr('action'); dataString = $(this).serialize(); $.ajax({ type: "POST", url: destString, data: dataString, datatype: json, success: function(data) { if (!data.success) { $.amwnd(...

Django form for model

Hi, with Django forms you can specify widget: class LoginForm(forms.Form): email = forms.CharField( max_length = 30, widget = forms.TextInput( attrs = {'class':'text required email', 'id':'email'})) password = forms.CharField( max_length = 20, widget = forms.PasswordInput( attrs = {'class':'text ...

Django multi-select widget?

The Django admin site makes use of a really cool widget: How can I make use of this widget in my own applications? I don't see anything like that listed here. ...

Form redesigning itself in Delphi 2006

I have a form with a lot of components overlapping each other in a Delphi 2006 application. Sometimes when viewing the form designer the form gets redesigned with components moving around. What may cause this and how do I stop it? It seems to happen when part of the form is covered with some part of Delphi itself, like the message view....

Unobtrusive dynamic form fields in Rails with jQuery

I'm attempting to get over the hurdle of dynamic form fields in Rails -- this appears to be something the framework doesn't handle very gracefully. I'm also using jQuery in my project. I have jRails installed, but I'd much rather write the AJAX code unobtrusively where possible. My forms are fairly complex, two or three levels of nestin...

Display other form elements based on radio selection

Hello, I'm trying to display a specific block of html with some form elements based on whatever is selected in a radio button. Below is the framework of what I have, I didn't include any of the JQUERY that I tried because I couldn't get anything to work. Any chance someone could help me fill in the blanks? TIA! <script type="text/jav...

Python Form Processing alternatives

django.forms is very nice, and does almost exactly what I want to do on my current project, but unfortunately, Google App Engine makes most of the rest of Django unusable, and so packing it along with the app seems kind of silly. I've also discovered FormAlchemy, which is an SQLAlchemy analog to Django forms, and I intend to explore t...

Uploading multiple files in Django through one form field

Is there any custom widget (or a special magic way) to upload multiple files (or a whole folder!) through one form field? I have tried this multifile widget but it uses many simple FileFileds. ...

Access VBA. How to execute many buttons using a single button?

I have a form with a few buttons. I want create a button which will execute all the buttons one after the other, after each function of the buttons has completed. Also, I would like to change the colour of the buttons to show which button is being executed. How do I do this? ...

jQuery serialize function with multple forms

I'm using the jQuery .serialize function and can't get it to serialize the proper form on submit. my js code: function getquerystring(form) { return $("form").serialize(); } my forms: <div class="leave_message_box"> <form name="leave_message_form"> <input type="t...

How to check the "Z-position" of form in a MDI application?

Hello. I have created MDI application in Delphi. Lets assume that I have a bunch of MDIChild forms in my application which are visible on the screen. I would like to perform a loop on those forms and check in what order each of the forms is displayed on the screen. For example if I have 3 MDICHild forms: FormA, FormB, FormC and For...