I'm using this jQuery AutoSuggest Plugin.
It's pretty well documented, but there is a built-in option called preFill that doesn't seem to be working. A few people including myself have had this issue on their support forum.
We may just not be entering the option in correctly. There's not a good example in the documentation for how to e...
I have a derived DataGridView bound to a BindingList, and the object implements iNotifyPropertyChanged.
I'd like to do the following: When my a property attached to my DataGridView is changed, I want to call a function that will update the header of one of my columns.
Basically, I want to add my OWN response to the PropertyChanged e...
Let's say we have this form:
<form>
<input type="text" name="some_name" value="val" id="some_name">
<input type="image" value="action" alt="Add To Cart" name="add" src="/images/submit.gif">
<input type="image" value="action" alt="Shop some more" name="return" src="/continue_shopping.gif">
</form>
How do I find the input that sub...
What is the code for a PHP form that matches a user input to a correct response and if it is not equal, it returns an error and if it is it shows a successful message.
Example:
If the proper string to insert is 1234 and the user enters 3948, it should return an error, but if the user enters 1234 it should go to a new page.
...
I have a javascript array of dates, in the form
{year:'2010',month:'6',day:'23'}
I need to have three <select>s in a row, the first populated with the years in the list, the second populated with the months in the year selected by the first, and the third populated with the days corresponding to the selected year and month.
I do not ...
I am trying to validate my form using two separate JavaScript functions:
<form onsubmit="return formCheck(this); return validate_dropdown();"
action="somepage.php"
method="post"
name="something">
When I add just one on submit value, each function works fine individually, when I add two only the first function's v...
Dear reader,
I would like to loop through a checked list box and see which values are returned. That's no problem, I know I can do it with:
if(myCheckedListBox.CheckedItems.Count != 0)
{
string s = "";
for(int i = 0; i <= myCheckedListBox.CheckedItems.Count - 1 ; i++)
{
s = s + "Checked Item " + (i+1).ToString() + " = " ...
I have a list of checkboxes and with every checkbox, there is an input field. If I check the checkbox, the inputfield has to be disabled.
Example:
Checkbox 1 - Input 1
Checkbox 2 - Input 2
Checkbox 3 - Input 3
The real code:
<table id="food" width="580px">
<tr>
<th colspan="5">Eten</th>
...
I need to create a group of 2 radio buttons (options: male / female) that display images instead of the actual buttons. The images should change upon selection. So there should be 4 images: male (on), male (off), female (on), female (off).
I'm using jQuery throughout the site, and I would like to use jQuery for this, too, if possible.
...
I am creating a database application using Access 2003 that will be run as a stand-alone application (i.e. using the Access runtime). I have a main form that opens to a pre-defined location and size and I would like to control where any other forms open.
I would like to open additional forms at the same location and size as the main for...
Im trying to set up a form where a user has to pick an option from a select or enter a value in an input. One must be required but not both. I was attempting to write an if else statement
if the state is selected then remove the class on province, if province is filled then remove class on state
$("#state").bind('change' , function() {...
Hi guys,
I'm doing this tutorial:
http://www.phpeveryday.com/articles/Zend-Framework-Database-Creating-Input-Form-P494.html
We are building a simple input form using POST and submitting it to a mySQL database. All is working fine. I'm just trying to get my head around the getRequest() function.
In the controller, we have this:
pub...
Dear reader,
I have a Windows form that's generated using code (including buttons and what not). On it, amongst other things, there is a text box and a button. Clicking the button opens a new Windows form which resembles an Outlook contact list. It's basically a data grid view with a few options for filtering. The idea is that the user ...
I'm not sure how to fix this issue, but when I utilize combo boxes on my form which selects data from multiple tables I'm not able to save any of the data selected.
I tried to use the Bound form utility but it only asked me to "Enter Parameter Value". I took out the "Bound" portion of the code and the combo box works fine.
I have ...
I've got a form that allows the user to put together a hash.
The hashes desired end format would be something like this:
{1 => "a", 2 => "x", 3 => "m"}
I can build up something similar by having lots of inputs that have internal brackets in their names:
<%= hidden_field_tag "article[1]", :value => a %>
However, the end result is t...
I understand that double posts has been a problem with forms forever.
I am using the token server-side method to handle this issue, but I find that it doesn't seem to work flawlessly. I have the system set to create a unique token for every form, and then record that token in a SESSION after it has been posted.
The SESSION is actu...
I've got a model that has a serialized hash as a field. I'm trying to create a form that enables users to fill this out. Is there a way to use Rails form_for helper to concisely build the hash?
The model is an Article, and an Article can have many authors which are stored in a serialized hash.
class Article
serialize :authors, Hash
e...
I have a complex form that has a static section and one that can have from 0 to many divs that containing radio buttons, textfields and textareas.
I'm wondering what's the best way to add elements to the section that has a variable amount of form inputs. I have a working solution, but it's probably not the best:
I use javascript to add...
I'm working with an <input> field and I'd like to style part of the field as the user's typing in a different color. For example, let's say the <input> has a style declaration of color: red; and I want to change part of it to color: blue;. Is there any way this is possible?
If there isn't (as I suspect), any creative ideas on how I can ...
Hello all,
I'm completely new to Javascript and Greasemonkey, so feel free to correct me if I'm doing this inefficiently or incorrectly.
In this forum that I post in, clicking the "reply" button brings up a new window with just text form to post in. I want to create a greasemonkey script that adds the script for the reply form onto th...