Hi
Does anyone know how to create the rules for the jquery form validate plugin when you have a name attribute that is an array?
eg.
<form id="myForm">
<input type="checkbox" name="data[]" id="firstId" value="1" />One <br />
<input type="checkbox" name="data[]" id="secondId" value="2" />One <br />
...
I'm trying to attach a rule to ...
I'm running Firefox 2.0.0.14.
I have a form on a webpage which is working fine with the GET method.
I'm using a plugin to view my browser's HTTP request when submitting the form, and here it is :
GET /postComment.php?review=2&comment=Testing HTTP/1.1
...
However, if I make the simple change from method=GET to method=POST on the form...
Here's an example:
from django import forms
class ArticleForm(forms.Form):
title = forms.CharField()
pub_date = forms.DateField()
from django.forms.formsets import formset_factory
ArticleFormSet = formset_factory(ArticleForm)
formset = ArticleFormSet(initial=my_data)
So 'my_data' in the example is the data I want to form t...
Hi Everyone,
I am working on using prototype to submit a simple login form:
http://huddlee.homeip.net/danny/
For some reason, whenever I try using the serialize function of the form it says it cannot find the function even though the prototype library is clearly being loaded.
So this function:
<script type="text/javascript">
alert($...
In C# and .NET, I wrote an application that runs in a Form (using Windows.System.Forms). I use InnoSetup to install and I am able to start the application via Windows' Start button.
My problem: a DOS command-prompt window appears along with the Form. How can I prevent the DOS window from appearing?
...
I have a client that is using WP for a CMS. He wants un-registered users to be able to submit content. It's a form that has the following fields:
Your name
Your email
Friend's name
Friend's email
Message
Submit
Then the message would be posted on the site (as a comment) and that message/comment would then be emailed to the Friend's ema...
I'm trying to create a form with a write-in "other" option as the last radio button. I've tried variants of the following with no success:
<label><input type="radio" name="candidate" value="option1">First Option</label>
<label><input type="radio" name="candidate" value="option2">Second Option</label>
<label><input type="radio" name="ca...
No documentation on this one, should be simple, but not functioning for me.
Here's the raw code: http://code.djangoproject.com/browser/django/trunk/django/forms/extras/widgets.py
Trying to pass a value of required=False to the Widget to get blank values (line 23 in the raw code: none_value = (0, '---')) but get an unexpected argume...
I'm currently working on an application that uses ASP, and I am currently having difficulty repopulating the fields of a form after redirecting back to that form.
Basically, I have a form where a user can input data into it (Say, an admin creating a new user within the system). Upon clicking the "Submit" button on the form, it goes to ...
I have a search box on a page (actually in a partial view though not sure that is relevant) with an Html.TextBox control.
<%= Html.TextBox("query", ViewData["query"], new { style = "width: 90%;" })%>
The action method takes "query" as a parameter, and I edit this value to clean up the string that is passed in:
public ActionResult S...
I need to create a grid of data many rows by 8 columns. When the user clicks on a row I need to submit the data from only that row to a php program. I'm not sure how to proceed.
Do I make each row a separate form?
Do I create a hidden form and copy the row data into it, and submit that? I'm not sure how to determine which row the user ...
My application has a requirement such that I have to display a huge number of HTML input textfields (maybe 2,000 text fields). The fields can be logically grouped into sections and the sections are repetitive. What is the best way to display it to the user so that they can enter data with minimum clicks?
...
With my PHP form, I want to pass one value to the URL, but remove submit.x and submit.y. Here's my form:
<form action="booking.php" method="get">
<input type="image" value="access" class="rollbtn" src="../images/book-btn.gif" alt="Book" name="submit" />
</form>
I want the URL to display booking.php?submit=access - but omit the x a...
Hi guys,
I've got this function to check my form:
function checkFrm() {
$.each($('select'), function() {
var $this = $(this);
if( $this.val() === 'null') {
// do nothing
} else {
if($this.next('input').val().length < 1) {
return false;
}
}
});
}
When the user submits this, it runs...
Hi,
I'm building a website using Wordpress. The WP-Events plugin is being used to display a list of upcoming events. What I need is for people to be able to confirm their attendance at any particular event.
WP-Events is a bit awkward in that it's customised using a template that is only able to be edited with the Wordpress admin. I...
I have this macro that is password protected and shows a form. Recently I added code to import data from excel and every time I close it asks me for a password - I can cancel through it but I'd like to make it go away, I see no plausible reason why it would come.
I've separated out the few lines that causes this problem
Sub a()
U...
I would like to get the name of the form used to post parameters from a Java HTTPServletRequest object. Is this possible. I don't see any method that looks like it will return it to me.
...
I am trying to post a multi-part form using httplib, url is hosted on google app engine, on post it says Method not allowed, though the post using urllib2 works. Full working example is attached.
My question is what is the difference between two, why one works but not the other
is there a problem in my mulipart form post code?
or the ...
What does the [@post, Comment.new] construction literally mean? I'm using it (saw in a podcast, or somewhere else) but I still don't quite understand what does it mean? What literally happens if we hit Submit button (sure, the comment is added, but I'm interesting about the inner mechanics and how is it connected with mentioned construct...
Hello, I have a client that wants a WYSIWYG form that behaves like MS word. It will have some section labels in it, with users expected to enter notes for each section, and it needs a place holder for a chart. The trick is that the user needs to know where page breaks are going to fall when printed. The customer agrees to fixed size ...