forms

Google Maps : get route, Km, and ... price

Hello guys, I think I am in a project which is probably too much for me, but I thought you could put me in the right direction. We are trying to have a form where the user will write a starting point and an ending one, as seen in the Google Maps examples (http://code.google.com/apis/maps/documentation/examples/directions-advanced.html)...

reverting a css styled form element back to default browser style

I want to have a default Firefox selectbox, but unfortunately I have a css instruction (which i can not alter or remove) that gives all select elements a background and border. Which makes Firefox transform the nice default control to an ugly squared one. Is there a way to remove/revert those instructions? select { background-color:...

How to hook json response to html form via jquery?

I'm sure I'm just missing something, but it would be really helpful if someone knows of a way to do this without calling a jquery plugin. Let's suppose I have a simple html form like the following: <form id="mainform" action="form.php" method="post"> <fieldset> <legend>Main Form</legend> <label for="input1">First Input<...

Weird security error in SharePoint forms library

Environment Microsoft Office SharePoint Server 2007 SP2 running on Windows Server 2003 R2 SP2. The MOSS server is a standalone server on a domain used for outward facing boxes. It has a one-way trust with our production domain. InfoPath 2007 SP1 is being used to author the forms. Scenario 1) I have a web-enabled InfoPath form that I ...

Site wide Zend_Form

How can I add a form to my layout.phtml? I would like to be able to have a search form and a login form that persists through every form on my site. ...

Rails Complex Form Validations ?

I have a complex form for my Work model. It accepts nested attributes for Credits, Images and Videos. (it is a modified version of Eloy Duran's complex form example) I want to validate presence of at least one Credit I want to validate presence of at least one Image or one Video When I do (in work.rb): validates_presence_of :credits...

How does the the browser decide which form fields are username/password?

Modern browsers save passwords. Which criteria affect this decision? Background: I have a registration page with the following form: <form action="/BlaBla/Account/Register" method="post"> <div> <fieldset> <legend>Account Information</legend> <p> <label for="username"> ...

The best pratice to parse PDF forms fields with PHP5

I have PDFs with filled out form fields from a customer, which have to be parsed with PHP5 and written into a MySQL-DB. With Google I only find libraries, like Zend_Pdf, which are helpful for creating or manipulating PDFs but not for parsing for form fields. Do you know any libraries or classes for this task? ...

.NET - Proper way to get reference of a control on the form

I have a C# class library which uses a form (which is also in the library). Let's say I have an edit box on this form called editContents. In a regular form application, I'm used to being able to aquire the edit box like this: class MainForm { void Method() { this.editContents.Text = "Hi"; } } I guess some mag...

Why does the last MDI child form that was closed not get garbage collected?

We've had problems with memory leaks in our application. I've managed to replicate one of the problems with the following simple example: Replication setup 1) Create the following helper class which will be used to track object creation/destruction. public class TestObject { public static int Count { get; set; } public TestO...

go back to the first form in windows mobile application

Hi all, i am developing an application in which i have a logout option at all the forms. When i click that button I have to return to login form which is the first form to be displayed . So i am able to track back to the first from by making a new object of this from by the way this idea is bad to implement because the other froms are ...

POSTing to different action with Zend_Form (and validation)

I'm using Zend Framework, and am curious about how people handle form submission. Right now, I'm using something like this: public function editAction() { $form = my_form(); $this->view->form = $form; if ($this->getRequest()->isPost() { $params = $this->getRequest()->getPost(); if ($form->isValid($params) {...

ASP.NET Forms Authentication with Windows Safari

Does anyone know why ASP.NET Forms Authentication does not work on windows safari, or better yet, how to get it to work? It seems like a very weird issue. When I use a login control (System.Web.UI.WebControls.Login) everything works fine, but if I try to do a custom Forms Authentication login when I call FormsAuthentication.RedirectFromL...

this.form is null in my Rails form

I have a form that will not submit: <% form_for :venue, :html => { :id => "create_venue_form" } do |f| %> <%= render :partial => 'venues/venue_form_fields', :locals => { :f => f } %> <%= submit_to_remote 'add_venue_button', 'Save Venue', { :url => add_venue_path(@user.id), ...

What's the best-practice way to process a contact form?

It seems I'm coding contact forms for someone or another every week. I've developed a validate/mail client/mail thankyou/save to DB/thankspage process that's fairly robust but I was wondering what lessons others have for performing this most common of website tasks? ...

How do I get the value of a textfield without posting the form

Is there anyway I can get the value of a text field without posting a form. I would like to use the value somewhere else in the same page. ...

How do you generate forms with AJAX?

Okay, How do you generate your ajax-forms? Do you keep the <form>-code in the javascript-files and load the data with ajax (e.g. json), or do you load a generated html-file (with all the <form> and <input> that you just push to the browser)? Or is there another simpler way? If you use any framework, do you get your forms generated aut...

How can a sharepoint form library be set up to allow users to submit forms, but not see other people's forms

This use case seems like it would apply to just about every form, but I have yet to find a good out-of-the-box solution for it. Imagine an HR Complaint form based on InfoPath and SharePoint. All Employees should be able to fill them out and submit them, and possibly see the ones they've submitted, but only members of HR should be able ...

C# - DataSets and Data Binding in multiple Forms

Hi, I have the following scenario: A database A DataSet that is filled by the database Two Forms: The first Form contains a ComboBox that shows a certain set of categories. The ComboBox is binded to a DataTable "categories" in the DataSet. The second Form is supposed to be a category manager where you can add, edit and delete categor...

Why does Classic ASP Post a Multiple Select List with a space between values where ASP.Net doesn't?

I have an old Classic ASP code such as: <html> <head></head> <body> <form action="test.asp" method="post" name="fname"> <select name="clients" size="3" multiple="multiple"> <option value="5311" selected="selected">5311</option> <option value="9999" selected="selected">9999</option> </select> <input type="submit" value="tes...