I'm trying to create form, for adding new friend/updating existing one. My first solution uses ModelForm, but data from updated form are not saved. Also problem is that my model has CharFields ('code', 'pid'), that I need to validate with regex through my form. If I exclude those fields in Meta, and add them to the FriendForm, when the f...
Hi
I have 3 questions:
wheter I am doing my task in a good way
why when I scroll dataGridView, painted rectangles dissapear..
why painting is so slow...
Here is the code in which I want to draw a colorful rectangle with text on groups of cells in each column, that have the same values, empty values shouldn't have rectangles
void Da...
I'm making a simplistic message board with tags. The message#index view displays a list of all messages. The tag#show view shows messages of a specified tag. On the message#index view, there is a form (partial) that requires the user to write a message and to tag it. On the tag#show view, I'd like to use the same form partial but to have...
Hi all,
I followed a few rails tutorials online, and it seems that to capture a date, I'd use date_select helper. But for some reason or another all the other data is captured in the database (SQLite3) except for the birthday. Any idea what I'm doing wrong?
Here's the code for the form in my view:
<% form_for :user, :url => {:contr...
Hi,
I am quite aware that the extract task accepts application as a parameter, and thus one can't expect it too look into the forms folder.
However, I referred the link (below) and tried a couple of ways:
1. defining my proxy __() method
2. including the I18n helper in App Configuration
However, both aren't working.
Can anyone tell me h...
Hi.
I'm trying to write a order form that shows the value of the selected items automatically. The backend is already complete, and on the front end each field, all radio / checkbox, look like this:
<input type="radio" name="shirt-size" value="shirt_size_m[18]" />
'18' being the price, everything else being irrelevant to the front en...
Hi all,
I'm trying to create an installer, using a combination of fwrite and forms. Here's my code:
<?php
$myFile = "db_config.php";
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, "$host = " . $_POST['host'] . ";\n $username = " . $_POST['username'] . ";\n $password = " . $_POST['password'] . ";\n $name = " . $_POS...
I am using the Ajax.Upload plugin (http://valums.com/ajax-upload/).
I am trying to use the File Upload with text fields to submit it all to just one backend PHP file. The site mentions 'If you want to pass additional data from textfields use setData method in a onSubmit callback.'
How can I set the parameters? Thanks.
Also, if there a...
I just created a custom schema formatter by extending sfWidgetFormSchemaFormatter for my forms. However, what is sad to know is that to use it, I need to specify that in the configure() method of every form I use, which is kinda painful.
Writing this in the BaseForm is a good idea, but the problem is that ModelForm & BaseModelForm don't...
We have .NET WinForms based application and it is expected to work on at least 9 languages including
English
Spanish
Russian
Simplified Chinese
Traditional Chinese
Korean
Japanese
Our application shall work on Windows XP (SP3), Vista, Windows 7 and Windows 2003 & 2008 operation systems.
We have never used Arial Unicode MS for local...
I have a standard html form that uses a background image. I would like to replace the entire form with a confirmation image after the user clicks on the submit button, but I am not savvy enough with jQuery or Ajax to pull this off.
You can see the form in the upper left here.
Here is the html:
<div id="freeQuote">
<form ac...
Ok so I hope the title of the question matches what I about to ask, but here is what I am trying to get at:
So I have an access database that uses a number of unbound forms, and the purpose of the forms are to collect data and save to various tables with VBA click events using SQL statements (INSERT or UPDATE based on whether the ID of ...
I am using jQuery to swap out the image here after the submit button on an email from is submitted. This part works very well, however, I also need to generate the email from the form contents.
Here is the form:
<form action="estimate.php" action="post">
<fieldset>
<input type="text" name="na...
I am trying to send an email message with data collected from an html form.
Here is the form:
<form action="estimate.php" action="post">
<fieldset>
<input type="text" name="name" value="FULL NAME" onfocus="if (this.value=='FULL NAME') this.value='';"/>
<input type="text" name="phone" value="PHONE NUMBER" onfocus="if...
Hi, I use this class (taken from a blog tutorial) to generate unique keys to validate a form:
class formKey {
//Here we store the generated form key
private $formKey;
//Here we store the old form key
private $old_formKey;
//The constructor stores the form key (if one excists) in our class variable
function __co...
Hi, I'm trying to validate a very simple form with the jquery validate plug-in. It does seem to work fine with Firefox but the form is intended for the iPhone and there it behaves odd. So I assume I'm doing something wrong (I'm using the UiUIKit as a basis). What I try to achieve is to only put class="error" to the input's parent li and ...
Suppose I have a radio button collection.
While I am selecting/deselecting certain options, Tick mark seems to be moving as well.
However if I see the HTML code, none of the options really show a "checked=true" in html.
1)So where is this information stored about my choices really ? DOM objects ?
Also using JS I change the checked attr...
Dear Stackoverflow,
I am seeking to perform a basic form post, but the following submits to the server twice in Chrome and Safari (but behaves as expected in Firefox):
<form id="create-deck-form" action="/decks/create" method="post">
<fieldset>
<legend>Create new deck</legend>
<label for="deck-name-field">Name</label>
<in...
I use HTML Purifier to clean input in my CMS. Many of my clients like to have PayPal donation buttons in their site, but HTML Purifier strips the forms out. I noticed that HTML Purifier has a HTMLPurifier_HTMLModule_Forms class, but I don't know if that does what I want. If it does, how do I enable it?
Thanks!
Looks like I might h...
I keep running into this strange problem. It almost seems to be random but I run my application and open a form, do some work with it and close it. The next time I go to open another isntance of that form I get an error message about the form already existing. This is very odd and I haven't been able to constantly reproduce the error....