form

Use jQuery to override the default action of the TAB key inside an element?

Hi, I have two text field boxes; username and password. There is also a checkbox below the username field. Currently pressing the tab button on they keyboard results in the checkbox gaining focus, I would like to override this so that tab key would bring the password field into focus. Does anyone know how to do this using jQuery or ho...

Validating a radio button is checked with jQuery

On my form I havea set of radio buttons. Here's the mark up: <div class="optionHolder"> <p class="optionName">Format</p> <div class="option checked"> <input type="radio" name="fileType" value="avi" /> <img src="images/avi.png" alt="" /> <label>AVI</label> </div> <div class="option"> <input...

Where should I put code to execute once after my Delphi app has finished initialising?

I have functions I want to perform after my app has finished initialising and the main form has been created. I did have the code (call it ProcedureX) in the forms OnShow event, but I have just noticed that it is being called twice, because OnShow is firing twice. It fires when the main program DPR calls: Application.CreateForm(TMainF...

Submit button does not trigger a jQuery bind'ed submit event on IE

I have a problem with IE (8, have not tested on 7). I have a very simple situation: I create a form element var formNode = $('<form>'); I attach a bunch of other elements to the form (fieldsets with input elements inside of tables). I then attach the form to the DOM, and then bind a submit handler: formNode.bind('submit', function (e...

Where is the problem in this prototype [ajax.Request] code ?

function sendM() { new Ajax.Request("sendm.html", { method: 'post', postBody: 'text='+ $F('text') +'&sub='+ $F('subject') +'&sname='+ $F('name') +'&sfmail='+ $F('email') +'to='+ $F('to'), onLoading:showLoad, onComplete: showResponse }); } function showLoad(){ $('dresult').innerHTML= "מבצע את הפעולה &nbsp;&nbsp;<br /><br />";...

Django: Login form in template tag

I've made a template tag to display a login form on various pages of my site. The idea behind that is also, that after logging in you see the same page/content as before and you don't get redirected to another page. I could do form validation & logging-in without any problems in the template-tag's render method, but the problem is, that...

How to make a greyed-out HTML form?

I'd like to have a group of HTML text <input>'s that can be all greyed-out (disabled) at the same time. I also want the entire area they are in to somehow be greyed-out or at least visibly disabled. I've seen things like this done in desktop applications. Any ideas on an easy/elegant way to do it? I'm trying to avoid manually setting ea...

How do I set the width of dijit.form.Select?

I have a programmatically generated dijit.form.Select. Unlike most other widgets, the Selects do not offer a resize method like dijit.resize({w: width, h: height}); I have not found a standardized way of setting the width of a select. This is quite bad because the autosizing makes Dialogs "explode" on long select values. Is there a s...

Storing Form Data as a Session Variable

Hey there- So I was wondering if it would be possible to store data coming in from a form as a session variable. Heres what I have so far, but I don't know what to put for the Form Action. Thanks for looking! <strong>Test Form</strong> <form action="" method"post"> <input type="text" name="picturenum"/> <input type="submit" name="Su...

how to send data with form label element ?

I should send data with form when submit button pressed.This value should be invisible and I used <label name=r_id id=r_id style="visible:hidden"> 1 </div> This is my form <form id="send_message" action="lib/send_message.php" method="post"> <textarea name="message" cols="45" rows="3" id="message"></textarea> <label name="...

jQuery Form plugin - how to make ajaxForm() "live"?

So I'm turning an "edit" form into an ajaxForm with the following: $('#reviewForm').ajaxForm({ success: function (response) { $('#bookReview').html(response); } }); This returns the same form, that can be edited again, if necessary. The second form submission, however, no longer has the ajaxForm() attached to it, whic...

jQuery Validation Plugin: How can I force validation on previously valid fields?

Hi All I'm using jQuery Validation plugin to validate a form. Do you know how to force revalidation on previously successful fields? I have tried the .form function using the following check (this is performed after the user clicks 'submit'): if ($('#form1').validate().form()==false) { formValid = false; } However, it appears th...

Targeting form processing files on a different website

Let's say i have a form <form action="delete_post.php" method="post">...</form> on my website: http://mysite.com and the file action/delete_post.php deletes the post with matches the id given in the form. Can somebody try to delete random posts from my website by building a site with a form: <form action="http://mysite.com/action/delet...

html form to XML response and reply

I have a form that looks like this. Now a client has asked to convert this to a format that queries and sends response in XML. Can someone pint me to appropriate tutorial or example in PHP. There seems to be many ways of doing this <form action="" method='post'> <table> <tr><td>User Number </td><td><input type='text' name='task_user_no...

How I can repeat an action X times with XSLT

I've to populate a total of 20 elements with XSLT. In my XML code I have a <select> with the values, there is anyway to not to write 20 forms? My XML: <output> <select> <id>1</id> <name>One</name> </select> <select> <id>2</id> <name>Two</name> </select> <select> <id>3</id> ...

Allow a user to download a file after submitting their email address

I want to allow users to download a file, but in order to do so they have to supply an email address. When they enter their address, a link/code is emailed to them, then they have to click that link, and the file downloads. My question is- how can I restrict access to the file so that only people with a valid code can download it? I und...

Append login and note/comment in one page, single click action?

Hi,I have saved two pages evernote.com/mobile/Login.action and http://www.evernote.com/mobile/CreateNote.action?paginatedQuery.page=0&amp;paginatedQuery.queryDefinition=RECENT%3A locally and want to create a single page for logging-in and creating note. Login page has this code- <div id="pageContent"> <div id="login_box"> <div id="l...

c# Maximize, Minimize and Close buttons on form

Hi Is there any way to find out if the close button (x button on form) was clicked. However without involving FormClosing and FormClosed events ? ...

How can I reproduce exception ...access control list is not in canonical for...

Hi, I'm trying to understand why it apeared in desktop application (C# .Net 3.5) and how to reproduce it to debug: System.InvalidOperationException: This access control list is not in canonical form and therefore cannot be modified. at System.Security.AccessControl.CommonAcl.ThrowIfNotCanonical() at System.Security.AccessControl....

How to adapt the formmail script to 2 thankyou pages, depending on validation.

right now I use a simple formmail script with some JavaScript form validation. I think what I need to do is add to the JavaScript an if statement which says if all of these fields validate go to this page, if only 10 fields validate go to this page, if those 10 fields don't validate, produce the standard error messages. the problem i...