Here's the problem:
I've been working on a little game where monsters bounce off the walls (edges) of the main form, and it's going swimmingly, but it only paints one of each type of monster when it should be iterating through a list of each of them and calling their OnPaint and Move methods:
private void Pacmen_Paint(object sender, Pa...
I have a form with a nested object (customer < order), and it works except that it keeps creating a new customer record.
I'd like to have it check to see if an existing customer is already present in the database (using the customer's email address to search), and if so, just attach the order to the existing record, but if not, contin...
Currently I've got a PHP page query.php with a form that presents a list of countries with a submit button:
Countries
[] nation1
[] nation2
[] nation3
[] nation4
SUBMIT
they're checkboxes to the same array, and the form references the page <form method="post" action="query.php">
When the submit button is pressed, a query is run on th...
i have a search form on every page, hence i put it on the master page. after adding runat=server to that form i am now unable to use other forms that runat server ;)
how do people usually get around this?
one idea is to surround the whole page with one form runat=server but then i have to have the code in the master page even for those...
Hi
I'm building an app in CodeIgniter. I have an invoice form which uses jQuery to create new line items. The line items are formated as follows:
<input type="text" name="invoice[new_item_attributes][][description]" class="ui-corner-all text invDesc" title="Description" />
<input type="text" name="invoice[new_item_attributes][][qty]" c...
Hi,
The invoice input values which hold the totals of invoice line items that get updated via JS return a NULL value when they are submitted.
<span class="sublabel">Subtotal</span><input type="text" class="total-box" id="product-subtotal" readonly="true" />
<span class="sublabel">Tax</span><input type="text" class="total-box" id="produ...
Hi,
Some time ago I have payed to a programmer for doing multithread server. In the meantime I have learned C# a bit and now I think I can see the slowndown problem - I was told by that guy that nothing is processed on the main thread (Form) so it cannot be frozen..but it is.
But I think that altough BeginAcceptSocket is async operation,...
Currently I have a race condition existing in my JavaScript code. What I am trying to do with this code is convert all check boxes which are a part of the 'checkbox' class and are not checked into text boxes with a value of zero. Currently when you post a check box that is not checked it does not appear in the $_POST data. However I need...
I am just starting out with Drupal but I am pretty clueless how to custom 'place' all of the form elements. I usually have a lot of stuff, like this other dude's thing, so placement and aesthetics are a MUST:
Drupal's default way of rendering forums like a questionnaire (one long horizontal column with lots of spaces) are unacceptable...
I've got a multiple step webform written in c#/asp.net. I'm trying to change the url that posts back to for google analytics reasons. I've written the code below to change the url on the client side, but it doesn't seem to post to the url with the parameters on the end. Almost like it's being changed back on the client side onsubmit. ...
Is it possible to us jQuery to select a collection of form elements based on their value and/or state?
For instance, I have some code that looks like
jQuery("input[type='checkbox']").each(function(element){
if(this.checked)
{
//do something with the checked checkeboxes
}
});
I'd like to remove the interior condit...
I feel like such a n00b asking this question but it's late and I'm tired. ;)
I am accepting data via request.POST like this:
if request.method == 'POST':
l = Location()
data = l.getGeoPoints(request.POST)
appid = settings.GOOGLE_API_KEY
return render_to_response('map.html',
...
what is the code in C# for printing a form in the application?
...
Is it possible to make an HTML form that responds to the number of things the user wants to send over?
That is, what I have now is:
<form ...>
<select ...>
<option>1</option>
<option>2</option>
...
</select>
***
</form>
When the user selects one of the options, *** should have
<input type="text" ...>
app...
I'm a jQuery newbie, so be gentle! I have a loop that outputs extra fields in a form (based on value). All good so far. However, in my extra fields is a date of birth set, which I normally create days/years options using a loop. My question is, how do I create this inner loop inside my outer loop? Here's the basic outline so far:
...
By default when I run my project, it loads form1, but I want to change it such that when it loads the Project it opens form2 instead. How could I accomplish this?
...
I have a simple form that I don't want accidentally submitted multiple times.
I can easily block the user from multiple clicks when they first see the page, but I have no control over them hitting the back button.
So, having worked with Struts, I decided that a form submit token was the way to go.
Is there an easier way? Is this func...
I have a big form with many parts. For each part, I want to add a small button "Popup as Dialog" which will convert that part to a dialog on-demand, and then (when closing the dialog) to return back to the form with the new inputs.
I am using jQuery UI's dialog() function. The pop-up parts works fine - the sub-form converts into a dial...
How do you capture submitted values from a form and displayed them back on the page in the form fields using PHP? I have already created the form which is as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Order Form</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-...
This should be a simple one for someone. I just can't figure out how to do it.
Upon exiting of my program, I want to hide the main form and make a final "Thank You" form appear on its own, like this:
procedure TMainForm.ExitExecute(Sender: TObject);
begin
MainForm.Visible := false;
ThankYouForm.Show;
MainForm.Close;
end;
But wh...