forms

Reset submit button not working, using MVC 2

I have two buttons inside a form call: <% using (Html.BeginForm()) {%> <input type="submit" value="Filter" /> <input type="reset" value="Clear Filter" /> The fields in question: <td> <%:Html.TextBox("filterId", Model.IdFilter, new {style="width:100px"}) %> </td> <td> <%:Html.Te...

How do I determine which forms are using a particular VB6 user control?

I have a VB6.0 application in which I have forms and user controls. I need to know in which form a particular user control is being used. Can anyone tell me how to do this? ...

ASP.net c# post form on users behalf

I have an ASP button, when it is clicked it calls a function which adds order information into my database. The next step of the order process is to transfer the user over to the payment gateway with this form: <form action="https://select-test.wp3.rbsworldpay.com/wcc/purchase" name="BuyForm" method="POST"> <input type="hidden" name="in...

Get all form elements value to be attached for ajax call

I have an object that is inside of a form. His value is assigned to an ajax call like this var $$ = $(this); if (typeof settings.data == 'string') { data = settings.data + '&' + this.name + '=' + $$.val(); } else if (typeof settings.data == 'object') { data = settings.data; data[this.name] = $$.val(); } I want to get the par...

jQuery function clear form and set back to onLoad status

For my jq driven form I am looking for a function that clears my form and set it back to the original stage as it was on page load but without refreshing the entire page. I use placeholder text and I have created a standard reset button. In webkit browsers it works fine. If the reset button is hit, the form returns to the original state,...

How to create complex Zend_Form to emulate iTunes Smart Playlist

Hi all, I'm developing an app which runs complex, configurable searches over multiple database tables, and displays the results. I have identified a number of different types of search I'd like to run, and have hard-coded the SQL queries to get the correct results. Each part of the queries have been abstracted, so building a query is as...

Can I stop Drupal re-creating a form when it's submitted?

I have a booking form that's built using options that are retrieved via a third party API and because of the need to have up to date information the results from the API can't be cached (at least not for very long). The problem I'm having is I've noticed when the form is submitted Drupal is re-calling my _form function which is triggeri...

Django ModelForms - 'instance' not working as expected

I have a modelform that will either create a new model or edit an existing one - this is simple and should work, but for some reason I'm getting a new instance every time. The scenario is this is the first step in an ecommerce order. The user must fill out some info describing the order (which is stored in the model). I create the model...

Why isn't "renderAllHiddenFieldsAtTopOfForm" not working?

In a .NET 4 web application I've set the property "renderAllHiddenFieldsAtTopOfForm" to "false" in the web.config. Unfortunately the hidden fields are still at the top. Why is this? Does some other setting override it? "pages" property in web.config: Screenshot of top of the form: ide it? ...

Django Page not reloading with updated data after data update

I have a form which submits and saves some data to the database. After the submit process, I have the view for the form re-display a summary page which lists items in the database using the following: return HttpResponseRedirect(reverse("my_shows")) reverse("my_shows") leads to a view which gets the relevant objects from the database...

PHP: Retaining drop down fields in new page

Hi, I have 1 page that displays a form with various dropdowns that are being populated dynamically. Snippit <td valign="top"> <select name="status"> <option></option> <?php foreach($statuslst as $status){ ...

Ruby on Rails 2 - Complex forms for Lesson, Questions & Answers

Hi All, I have 4 models - Users, Lessons, Questions & Answers. Each user can create a lesson with some questions and then ask other users to answer those questions and submit the form. I ran into a problem creating a view to display a lesson with a list of questions and a blank answer field underneath each question. I have a working ...

iPad form creation?

I would like to create a form in my iPad application which is very similar to the form used when setting up the Cellular Data Account on the iPad. That is, it collects User Information, Payment information, and other information from the user in a modal view across multiple steps. Is there a good tutorial out there for creating this ty...

Jquery selected options in conditional statements

I'm trying to display some text in a div named "msg_box" for each selected option. It works but not live. I have to refresh to see the result. The js is.. $(function() { switch ($('#my_options :selected').val()) { case '1': $('.msg_box').html('You selected option one'); break; case '2': $('.msg_box').html('You selected option t...

Sending ajax form reloads page instead of sending request

I'm struggling to create a shoutbox for django. Everything works fine now concerning reading data from the database, but when I want to add a new shout the whole page is being reloaded, and from what I was able to check - form's action remains the same, and there is no request sent to function under specified url. What am I doing wrong h...

Subscribe to newsletter form rails 3

Hi, I'm new to rails and I would like to know how to make a form that submits to a database. I have tried devise but it seems that it deals with logins/users and it's not working for my purpose. I don't want anyone to do it for me, I have to learn :). ...

How to use form information to auto populate a form on another webpage

I am trying to figure out a way that I can populate form fields on webpage for my users much like password managers do. The problem is that I am not the owner of the second webpage. I thought about using javascript with iframes but that doesn't work. I've tried using php to replace the form information adding values saved from my previou...

Link to activate form field

How can I make a form label activate (focus) the form field it coincides with? ...

How to share a form between 2 websites

I have a form which I'd like to share between 2 different websites. The form is submitted and the data is entered into the database. Right now each website has its own copy of the script and its own database, so when I want to make updates to the form, I have to make those changes twice. Is there a way to share the form between the 2 w...

jquery opener window adding form values from child window

Hello: I have a "main" window with a table containing a series of form text fields with ids that increment (e.g., field_1, field_2 ... field_n). I need to populate the value of these fields from selections a user makes from a child window that has a list of about 1400 choices. This is done via an "Add" button with an onclick that passe...