forms

Is it possible to get the Windows logon name with site running asp.net forms authentication?

Hi I have a website with a large user base configured with asp.net 2.0 forms authentication. Before the user logs in via forms authentication is it possible to retrieve the windows login name/user account name on the machine they are using? Many thanks ...

Open a second form while automaticalle close the first form

I created a login form in c#. If a user signs in with the right password en username and clicks on 'Login' then the seconds form opens. How to close the login form after the last step? ...

gridview in updatepanel

Hi I have a registration form in which users have to enter certain information. Inside the form there is a listbox with school names. The user selects one or more schools in this list and then have to click a linkbutton to get events that those schools will organise which are rendered in a gridview that appears in an updatepanel. They t...

add a category field inside product form in rails

I have product and category models, what i want to do is to add a category field inside add new product form (i want it to update in ajax format) my form is something like this : <fieldset> <legend> <%= @form_title %> </legend> <%= error_messages_for 'theme' , :header_message => "موارد زیر دارای اشکال می باشند، لطفا...

c# hide form instead of close

how do i hide() a form? i would like when user clicks the X on the form to hide it instead of closing it. i have tried this.hide() in FormClosing but it still closes the form. please help. ...

Windows Forms Top Property Bug

I am trying to populate a container with any number of controls that have the same height and width. I allow this container to be shrunk or grown by the user and the container will organize the controls so that it fits the most controls on one row as possible. Here is the code to organize it: int row = 0; int column = 0;...

PHP - mcrypt 2 way encryption issue with base64 encoding and serialization

I am working on a form spam protection class which essentially replaces form field names with an encrypted value using mcrypt. The problem with this is that mcrypt encryption is not limited to only alphanumeric characters which would invalidate form fields. Given the code below, can you think of any reason why I'd be having problems de...

Live editing in Django

Imagine you have an address book card. Normally the fields are displayed as static text, in a specific layout (imagine having multiple phone numbers, emails etc.). When editing it, you want to use the same layout, but with form fields instead of static text. It seems that the normal way of doing this in Django is to use separate views an...

How to create a mailto link in windows forms application

Hi, I want to add a similar mailto link as on html pages on a windows form. On clicking it, the associated mail program should open with the given email address. Thanks, Gary ...

After Form Submit, Replace Content With Message Using PHP Only

I have a popup that contains a subscriber sign up form. After the user clicks subscribe I want the form be removed and display a thank you message. All this needs to run using php. Below is what I have so far, but the popup doesn't stay up and when clicking on the subscribe button again it shows the form validation errors because the '...

Does 'un-filled' form inputs slow down a website?

I have a page which has a drop list inside a form. The drop list contains 'Categories' of ads. Depending on the value chosen in the drop list, I use javascript to show/hide DIVS on the page, which all contain different form inputs for the user to fill in. All this still inside the form! Now, when the user has filled in all form inputs ...

What is the best way to use a radio button in an iPhone web app?

I'm creating a web application that is optimized for the iPhone (but also should work on all mobile devices). I have a form field that includes one standard text input and then need a radio button group with two options (Inbound/Outbound). The radio button makes the most sense logically since one option should be selected by default and ...

input text field resets even if cancelling submit

Hi! i have a form which onsubmit i return false to cancel the submit action (that works fine). but the problem is that even that the submit action was canceled the value on the text input gets erased from the input somehow... search_form.onsubmit = submit_listener; submit_listener = function(e){ console.log(e); return false; ...

Symfony Javascript Form Validation

Hey, So I have a form on my website that will submit a name and email address. I want to submit them with ajax which is simple to do, but I wanted to verify that both fields are filled in and that the email is in the correct email form. Basically I want to run some client side validation on the fields before submitting it via ajax. Do...

Strange class behaviour; Gets applied to drop list option when it shouldn't...

This is kindof hard to explain... I have this class: .nav_option_main { background-color: #FC9; } I have two drop-lists, let's call them Drp1 and Drp2. Drp2 is populated depending on Drp1:s value, using javascript. Some values in Drp2 has the above class applied to them, but only some. Now, here is the strange problem, lets say...

How do the popular PHP frameworks handle Form Input Errors?

I know for example the Zend Framework has some capability for creating form elements with validators. But now, lets say the user enters complete garbage data, which is invalid. What would happen next? Lets say the JS part goes wrong or JS is disabled, and the server receives the garbage data. How do the "big" PHP frameworks handle this...

Possible to Prevent Enter From Submitting a Form in Javascript From Certain Input Fields Only

I have a form for which onkeyup triggers the creation of a suggestions box for certain fields. I am able to capture the keystrokes for the up arrow, for the down arrow and for escape and use them accordingly to move around in the suggestions box or close it. I would like to use enter to move their selection into the input field that tr...

How to use java.util.Observable from Javascript?

I'm building a Drupal module that integrates the "FileCatalyst" Java FTP applet with a standard Drupal form. I'm implementing a hook to submit the form when a file transfer completes. Currently I'm polling the applet with a setTimeout() call, but this method can miss changes of state if they happen too fast. However, the FileCatalyst ob...

Is this a good design for doing form validation?

For my framework I've written down this concept to solve the form validation problem. I want it to be as straightforward as possible for the framework user. Every Form (=object) has one or many FormElements (=objects). Every FormElement can have 0-n FormValidators (=objects). Everything easily configured through the backend (simple drag...

How would I use jQuery to ajaxify a form?

I'm trying to AJAXIFY a form without using jQuery plugins. What is the process for making this happen. I have my form. What should I set the action to? What should the header script be? Keep in mind that I do not want to use any plugins. I just need a basic algorithm for ajaxifying forms using jquery. ...