forms

HTML Forms Problem - Adds a line after it ends

<td> <form name="search_form" action="" method="POST"> <input type="text" name="search_text"> <input type="submit" name="search_bt" value="Go"> </form> </td> now when ever we use this code it adds an extra line after it ends.... see the image below see the red boxed area... there is nothing there... nothing b...

Are there any .NET tools that can generate forms based on some kind of metadata?

What i want is to describe a form (fields with types, names, validation rules) via some xml or dsl. Then, in the runtime my code feeds this tool with metadata, it generates form (web, win forms, whatever), it's shown to a user, user inputs data, pushes OK, tool calls my code via some delegate with values as key-value dictionary. Of cours...

Creating and populating a select dynamically

I have 2 tables, Provinces and Districts. I would like to populate a select field with options as District names based on which Province is chosen in another select. The Districts table has a ProvinceID field to reference which Province it belongs to. I know this is doable, I just can't figure it out. I also want to create and update...

Zend Framework problem with Zend_Form_Element_File in a .ini form

The Zend_Form_File is generating an error: Warning: Exception caught by form: Method getImageValue does not exist Stack Trace: #0 /var/www/vhosts/mp3.al/library/Zend/Form/Decorator/Image.php(137): Zend_Form_Element->__call('getImageValue', Array) #1 /var/www/vhosts/mydomain.al/library/Zend/Form/Decorator/Image.php(137): Zend_Form_Elemen...

Can't set disabled=false (javascript)

I have this function: function disableDiv(divId, action){ var divId = byId(divId); if(action==true){ divId.style.display='none'; } else if(action==false){ divId.style.display='block'; } var inputs = divId.getElementsByTagName("input"); var selects = divId.getElementsByTagName("select"); var i; ...

How do I make form submission wait for an AJAX callback in jQuery?

I want to include an AJAX call within a .submit() handler so that I can process form data and send email confirmations before the form is fully submitted. Therefore I'd like to make the submission wait until the AJAX call is complete, so that I can cancel the submission or do other things based on the response. How would I go about doin...

Short question: Any good way to view a forms querystring?

I have a form which uses the "GET" method. This might be a stupid question... I would need to view the full querystring somehow, of the form when submitting it? I have Firebug if that would help somehow... Thanks ...

How do I dynamically change Form Post URL?

I want to make the results of an ASP.NET form POST "bookmarkable", and I'm thinking of using query parameters to accomplish this. The idea is that a user will visit http://domath.com and they will type in a math problem, and view the results. The query and results are visible at http://domath.com?ProblemID={some guid here} The only ...

is it possible to make a combobox not visible on a certain row in a gridview?

I was wondering if its possible to make a single comboBox not visible or disabled for only that certain row? right now I have something like private void gvAirSegment_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex+1 == gvAirSegment.Columns["RemarkLine"].Index) { if (!g...

Endless loop error in php and jQuery contact form

Arrg. I can't spot the endless loop in this contact form. The "thanks" div endlessly prints after the form submission. What am I missing? Is the error php or also jQuery? (In the working file, the JS is included via <script type="text/javascript" src="contact.js"></script>) Thanks <?php if(isset($_POST['submitted'])) { if(trim($_POST...

Modifying jQuery plugin SimpleAutoComplete

Hey everyone, I was hoping someone could nudge me in the right direction. I'm using the jQuery plugin simpleAutoComplete to enhance my search form with an autocomplete functionality. Basically the search functionality allows users to search for capital cities in the world. I have it designed so that my handler file returns the City N...

What are your best practices when developing symfony 1.4 forms/widgets/validators?

I am currently working on some symfony form customisation which includes writing widgets or better still extending existing ones. However this proves to be much more complicated as I thought it would as the functionality for validating, form elements, object saving, dynamic javascripts and so forth seem to be scattered all over the plac...

PHP: How to mass replace $_POST[...] with strip_tags($_POST[...])

I'm currently recovering from a nasty XSS attack, and realized I never sanitized inputs on several of the forms on my site. I used Notepad++'s Find In Files feature to search for $_POST in all my PHP files, and got almost 5,000 results. Now, I really don't want to go and manually add strip_tags to every one of those results, but a repl...

How do I know if a Form is hovering over a component?

I need to know if a (moving) form is hovering over a component (maybe something like MouseEnter and MouseLeave without the mouse). I have this idea of getting the Left, Top, Height, Width of the component and calculating if the (moving) form's position is within the position of the form. (I'm not exactly sure how I can do this) Any sug...

resizing the background color of a form

Hi I have a question: if you try my code below you can see that the background color is light blue and it occupies the whole page of a site, I want to resize it how can you do that? I mean that the color will fit to the same size where the fill up boxes are, do i need to add this code: width="60%" can you please tell me where can I add...

Javascript dropdown option removal

Hi I have a question form and in that form i have 10 sections and in those sections i have 8 dropdown entries so for section one i have q1a, q1b, q1c etc I want the user to select from the drop down of each section 1-5 once they select a value that value is removed from all other dropdowns within that particular section(in this case sec...

How do you manage concurrent access to forms?

We've got a set of forms in our web application that is managed by multiple staff members. The forms are common for all staff members. Right now, we've implemented a locking mechanism. But the issue is that there's no reliable way of knowing when a user has logged out of the system, so the form needs to be unlocked. I was wondering if th...

post multiple forms on a single button press

My page conisits of x amount of forms. One for each database entry. The user can change the data and save the individual item back to the database. But where I am stuck is with a SAVE ALL button. Can you post multiple forms?? I am pretty certain you cannot with php, so I'm looking at javascript to solve my problems. Specifically: docum...

Multi column tableless CSS/HTML form builder needed

Looking for a good multi column tableless CSS/HTML form builder. Meaning I want more than one pair of label+textbox pairs on the same line. There are lots of css baed forms out there which I am aware of. The keyword here is multi column, ie; two or more columns where each column has a label+textbox. All the label needs to be aligned vert...

dynamic paper form generation

currently, i've got an application that needs to fill out a printable form with data. clients send me a form and i create a digital version of it. there are tons of these forms and i often need to customize them and add additional fields, etc for my clients, so they should be really simple to create and modify. i've got a system in p...