forms

Getting inputs to auto-complete/suggest when preventing default form behavior

Hi Guys, Interesting bug here that seems to be limited to IE and Webkit. I have a basic form setup: <div id="output">Form output is displayed here</div> <form id="myForm" action="#" method="post"> <input type="text" name="username" id="usernameInput" /> <input type="submit" value="Submit" /> </form> Now if I just submit the form thro...

How do I NOT update a password field when it's left blank in $_POST?

UPDATE: I solved the problem myself and the answer is below. Carry on... I have a form for updating your account using PHP and mySQL. On submit, it assigns all of the $_POST variables to the new user() object, and then does an update() method on the user object which runs an UPDATE query in SQL. The form obviously defaults to all of th...

How to escape apostrophe or quotes on a JSP ( used by javascript )

Hi, I have a user form. If the user types in a string with ' or " as part of it I have no problem. The form is submitted and saved correctly to the DB. My problem is when I reload the page (all entries can be modified and are loaded into a list in the jsp before being displayed). On loading the page I get an error saying: missing )...

Forms Authentication Timeout vs Session Timeout

Hi, In my asp.net website i am using asp.net form authentication with following configuration <authentication mode="Forms"> <forms loginUrl="~/Pages/Common/Login.aspx" defaultUrl="~/Pages/index.aspx" protection="All" timeout="30" name="MyAuthCookie" path="/" requireSSL="false" cookieless="UseDeviceProfile" enableCrossAppRedirects=...

update data grid view automatically

i have to windows forms . first form shows list of records from sql . when you click some cell of a record in datagridview it shows second form . in second form you can edit and update the record . i want datagridview to be updated automatically when user close second form . what should i do ? ...

Submit Link - No Javascript: Downsides?

Hello all, I came upon a revelation the other day. When attempting to create a submit button by using an image, I ran into a problem where the image was not displayed but the value text was. At the time, this is not what I wanted, but now, as I look back, I see some potential use for this. If you need to send data to another page, but ...

onSubmit not triggered on form loaded with AJAX

Hi, I use AJAX to load an external HTML file, containing a form, into another HTML file. The form HTML looks something like this: <form id="..." name="..." onsubmit="postUsingAJAX(x,y,x); return false;"> Loading works fine. However, the onSubmit code is not executed when the form is submitted, same thing with onClick handlers on the s...

combine multiple GET values with same variable name into one string

I have a form which sends lots of GET['var'] in a form. Ive worked out how to set it to send var[1]=data&var[2]=some&var[3]=thing etc etc but how do I catch each variable and combine it into one string, seperated with a ", "? so $var = data, some, thing UPDATE: Sorry I should of mentioned I already have the function that implodes t...

remote_form_for in rails with the :with option

Is it possible to use the :with option with remote_form_for? It works with link_to_remote, and the api docs seems to indicate :with should work with any of the remote_ methods. Here is the code I'm using, and output it's producing: Link_to_remote (works): = link_to_remote 'ARGH', {:url => {:action => 'load_item', :id => @policy.i...

JQuery validate plug in: Why will this select menu not validate() ?

I Have a large form with hidden divs, an initial select menu reveals the appropriate div (reduced to just one option here for brevity)... when that containing div is made visible I want to use the validate plugin to validate the next select menu. I use this rule, which works for the initial select menu salesProduct: { required: "...

C# Passing values to another form

Hi all, I'm passing a bool from one form to another, I have tried declaring 'Private bool useDBServer;' at the top of my class but this create a new variable. What am I doing wrong? Thanks Form1 below: Form2 frm = new Form2(dataGridView1, _useDBServer, _useOther); Form2 below: public Form2(DataGridView dgv, bool useDBServer, ...

Form not submitting and no error is being produced with MVC

I have a form in my MVC application that in theory should submit data back to my database using a Repository class. However, when I submit the form (http://localhost:1028/Admin/NewUser/), the URL changes to where the form should be submitting to, which is fine (http://localhost:1028/Admin/NewUser/Submit), but once it has been submitted,...

ms access Add, Edit, Delete Items through an Access form

I'm not real familiar with inputting data through forms. Up until now I've just been handling the data from the table. However, now I have a table with two pieces of information: Group ID Each ID is in a group, not all IDs are represented in the table (ie there is another table with a complete list of IDs...many to one), and multiple...

Offline GuestBook with Pen-Input and PC-Camera Input

I have a requirement to create a Offline GuestBook on Windows Vista platform. The visitors will use the Lenovo Tablet PC to write their Feedback using it's Pen Input. It is also desirable for the Visitor to show his Business Card at the Tablet PC's built-in Cam to record an image too. I am thinking about using Microsoft Access for this p...

How to make a simple jQuery button in XHTML strict with no form postback?

I am making a site with DOCTYPE XHTML Strict and it complains if I have an input button or button element outside a form. So I put it in a form and it complains that I don't have an action attribute. So I put in an action attribute but then the buttons postback to the page, which I don't want. How can I just have a normal jQuery butto...

django - Showing multiple child forms inside parent

I have been studying the modalforms & inline formsets but am not able to wrap my head around my composite objects, and want to see how things are done in django world - I have this hierarchical model "Author" has many "Books" Each "Book" has 4 Sections -> Section-01, Section-02, Section-03 & Section-04 Each "Section" has number of...

newbie to OO question

My question pertains to windows forms Let's say I have a combobox for customer and orders, and depending on the selection made on those comboboxes I populate a datagrid for all the Order details. I am interested in a double click event within the datagrid row. Upon the event 2 things can happen: the record was deleted. one or both ...

Transmit value between servlets

Hi, I've written a html form to retrieve password and user name from users: <form action="prueba-registro" method=get enctype=multipart/form-data> <h3> User information </h3> User name: <INPUT TYPE=TEXT NAME="realname"><BR> Password: <INPUT TYPE=PASSWORD NAME="mypassword"> <P><INPUT TYPE=SUBMIT VALUE="Register"> </form> This informati...

Losing form data when clicking the back button on browser

Hi , When I click back on any browser I lose all the data which was inputted in the form on both drops downs and text input types. Is this a server , Browser or a coding issue ? Thanks ...

Authentication and Session Management

Hi, I am using ASP.NET 3.5 with Visual Studio 2008. I am a new bee in ASP.NET and working on a website where it can have 3 types of member visiting to it like admin, registered users and annonymous users. I want to provide authentication and session management for these users. I am not using Login Control provided MS/.NET rather create...