form

C# ASP.Net : Get Custom Attribute of Hidden from Request.Form

Hey All, I have some code which is rendering some custom attributes of Hidden Control (without runat=server). Something like, And I have a lot of these hidden elements on my form. When I submit the form, I am looping through a set of ids, say 1200 to 1250, so I will read controls based on that, and also hidden with Request.Form["hd...

html, insert form dynamically through document.write

I'm trying to insert a form dynamically using document.write but for some reasons the form is not working anymore. Here is the code which calls the javascript http://pastebin.com/iMQ3FxHM and here is the javascript which writes the form http://pastebin.com/vMn9BrKQ . I'm using pastebin because stackoverflow doesn't escape the html tags ...

Extjs values not submitted

When submitting a form with Extjs I can see the form items have values with this code just before the submit: var itemsForm = ''; function mostraItems(item, index, length) { itemsForm += item.id + ':' + item.name + ':' + item.value + ':' + index + '\n'; } myForm.form.items.each(mostraItems); alert (itemsForm); myForm...

upload large files

Running Unix and php5. I have an upload form that allows people to upload any file format at any size. As of now when you try to upload it fails most of the time when I try to upload a couple mb file. However if I upload a small text file it is fine. Also I have read about issues of timing out with large files. Is there something I can ...

moving select options up and down via jquery

so I got this code working for Firefox and Chrome...what it does is it allows you to reorder the options within an HTML select form...but then when I tested the code via IE8, it's kind of patchy...it only works for the first few clicks and after that you have to click many times on the button for it to work.. Does anybody know any other...

How to run code inside .live() on document ready?

$('#foo').live('keyup', function (e) { var input = $(this).val(); // code to process input }); This is used in a post form and I need to run the code inside the live() when the document is ready. Is there a way, other than to wait for a key press, to invoke it? ...

How to show a hidden class for an element with javascript?

Hi there, I'm having trouble trying to show a hidden class that has already been applied to an element. I'm trying to use the show() method with the class and selected element, to no avail. Any help would be appreciated! HTML <label for="name" class="overlay required"><span>Name...</span></label> <input class="input-text" type="text" i...

Detecting autocomplete on form input with jQuery

I have a form that detects if all the text-fields are valid on each keyup() and focus(); if they're all valid, it will enable the submit button for the user to press. However, if the user fills in one of the text inputs with a browsers autocomplete feature, it prevents the submit button from being enabled. Is there a way to detect if an...

jQuery clone and appendTo duplicating wrong content

I am trying to have a form of text inputs. All inputs will in an ordered list OL/LI structure. There will be a + symbol next to the input that when you click on it, it should create a sub-OL and make a secondary list with another input. If you click it again, it adds another input. The new inputs have + symbols as well and you can do the...

Extjs form.submit() call changing field value

I can see what are the values of the fields just before the submit: var itemsForm = ''; function mostraItems(item, index, length) { itemsForm += item.id + ':' + item.name + ':' + item.value + ':' + index + '\n'; } myForm.form.items.each(mostraItems); alert (itemsForm); myForm.form.submit({... The problem I have is that the submitted v...

Loading pdf\doc\odt files with a form in a secure way

Hello everyone, I've been searching online for a secure way to load files in php but I couldn't find any convincing solution. What I'm trying to do is loading a curriculum vitae by form uploading. This file should be viewed only by the website admin (the form will mail him the link) and obviously the form should be secure (even thought t...

Is it possible to submit JavaScript array along with form submission?

I would like to create a list-like form for a web application. Elements are added to, modified and removed from the list, and the user clicks "Submit" to send the list to the web application for further processing. I would like to have two INPUT fields that I can add data into, click an "Add" button, and the data is added to both the DO...

using jquery to create a new form

I have a stepped form that has validations on each step. So to submit the full form I created 2 methods to search through each step form grabbing all the elements to fill a hidden form on the page and submit that. What I have works well for everything but check boxes. It grabs the checkbox, adding it to the final form, regardless of w...

Django: Edit multiple rows

Hi, I want a list of forms with permissions, and one save button.. Like this: http://www.freeimagehosting.net/image.php?c701b302fd.png But I can't get it working.. Some ideas? I try to do somethis like this: forms.py class ProjectPermission(ModelForm): class Meta: model = ObjectPermission exclude = ('content_type', 'obje...

New Function: How to iterate through all form elements before returning true or false

Hi there, I have a new function that I will be calling when the submit button is pressed for the form. I'm trying to use this validation, not a plug-in, for experience. How would I iterate through all the forms, determine if they're all valid, before exiting out of the function. Though if they're all valid, return true and continue, othe...

douplacate drop down menu onchange

I use drop down menu - that contain all tags- for select tags for a topic. so, I need after users select a first tag, new drop down menu appere , and so on. ...

Quickly checking for telephone number format in input text using PHP?

What's the most efficient way to quickly check for telephone number format from a form input text? ...

jQuery post a serialized form then inserting into mysql via php?

Hello, I'm trying to post a serialized form to a sumbit.php file, in turn, will then insert into a MySQL database; however, the last input which is hidden, is not getting inserted into the database, though the rest are. Here's some snippet examples of what I've got thus far which is not working: HTML <form method="post" ...

Rails: Multi-submit buttons in one Form

Say I have an Article model, and in the article 'new' view I have two buttons, "Publish" and "Save Draft". My question is how can I know which button is clicked in the controller. I already have a solution but I think there must be a better way. What I currently used in the view is: <div class="actions"> <%= f.submit "Publish" %> ...

select form options and submit in iframe (need help)

hi every one - sorry my english is low please create script in php i need this form style # 1.select from dropmenu # 2.input text # 3.select from dropmenu # 4.submit in iframe mean this option from 1 and put custome text from 2 and select option from another dropmenu from 3 and submit created text submit in iframe load web address. ...