form

How to stop a new form from using namespace System::Collections

If I create a new form called myForm, the top of myForm.h looks like this: #pragma once using namespace System; using namespace System::ComponentModel; using namespace System::Collections; //<<<< THIS ONE using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; None of these are even ...

asp form - access database - cyrillic russian results page problem

Inherited problem... the site works fine in 6 other languages, in fact the Russian area is now working fine and the request quote form work (functionally), with one problem, the email results we get is loaded with very weird letters: (here they are copied) ôâàïôâàïôâàï ïôâàïôâàïôâàï ôâàïôâûàïôêàï ôêûâï ïôâàïûâàï I have tried to encode...

Get updated value from a textarea and insert it into a div with jQuery?

Hey there... here's an easy one (that I'm struggling with)! I have a textarea, a button, and an empty div. All I want to do is insert the updated contents of the textarea into the div onClick of the button. Here's what I've got so far: <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascr...

Incuding "successful" buttons when calling form.submit()

I'm working on the Web GUI of an appliance-like product. I have an HTML form that works fine: it shows a list of things with checkboxes, the user checks some of them and clicks the "remove" button which submits the form. The server gets the POST, removes the items, and refreshes the page. All fine. There's a requirement to add an "ar...

Thank you alert upon form submission

I have a very basic form at http://www.happyholidaylites.com/contact.html and it is working great. When you submit the form, the user is brought to the index.html with no message that the form has been sent. I am looking to initiate an alert that says, "your form has been submitted" with an x button. My code looks like this: <fo...

Form Data caching in browser -- client-side solution

Basically, I have a form that has some pretty date-sensitive info in it. The risk with the form being cached is that: 1) The user may not notice that the date is wrong and simply think that the server has loaded their saved data (which it should, if the date was correct). They then submit the data and it gets saved to the wrong date. Th...

Semantic markup to achieve last row editable effect?

I'm looking to have a table that can be added to by just typing into the last row and clicking on the "Add" button at the end of the row. All other rows in the table can be deleted by clicking on a button in their rightmost column. My problem is that forms can't wrap only one row and validate as XHTML. If I make the form wrap the entire...

JQGrid edit form dropdown populated from database

My edit form requires a dropdown to be populated by a database call. I realize I must set the dataurl parm in the colModel. Does anyone have an example using a linq to sql call which returns the data in the format the jqgrid is looking for. Thanks. ...

C# "Lock" an overlay form to the position of another window.

Hello, I am making an add on for a game, but I want it to reside as an overlay to the game's client area of the window. Basically when I start the add on, i want it to show on top of the game. The catch is if you minimize or move the window, I want the the form to stick with it. Anyone know of anything that can do the trick without ...

How to automatically upload a file once it has been "Browsed" without submitting the form

I have a website were users can create a profile and upload an image for their avatar. The way I have it set up now is a simple HTML form one with an upload box where you Browse to pick a file, and then press "upload" to submit the form. What technology/language would be the best to have the image automatically upload and display on th...

Jaas web form authentification in JBOSS 5

Hello all. First of all sorry for my poor english but, i'm french... I try for some time to create my custom jaas module for authentification im my web application. I work under JBoss5. So I have create my own JAAS module (Principal, Group, LoginModule). I have declare it in my ear conf: -myEAR:      |-----my-login-config.xml      |-----...

Saving form elements properties to XML (Save control state)

Hello, I have been using in some projects a xml library for my settings saving, how it worked was like this : saveSettings(Control control, XmlConfig config, string controlName) It would then search all the controls inside that one (recursively), calling itself each time it found a new control, etc, and saving all their info to a xml ...

html, file uploading trouble

Hello, I have a trouble with file-uploding. Here is my part of the form: <input type="file" name="image_file" /> <input type="submit" name="add_new" value="Upload" /> And in script i have a code: print_r($_FILES); After image choosing and sending form, I have an empty array $_FILES. Why? ...

How do I append a url typed into a input text field to an anchor then follow it when anchor is clicked?

I want to have a text field where people can type in a value. Then I want to have a href open a url with the text field appended to the end. So if the text field says "elephant" then when they click the link, a page will open with at example.com/elephant. I think javascript would be the easiest way to accomplish this but I just don't k...

=button_to does not generates form if already in an other form

Using the same form partial in both create and edit in my case new and preview. partial looks somewhat like this (I use HAML) =form_tag ({:action => params[:action]}, :multipart => true) =text_field :newsletter, :title =text_area :newsletter, :body =file_field :newsletter,:attachment -if params[:action] == "preview" =butto...

How to check form entry for special characters in python?

Let's say I have a form field for "Name". I want to display an error message if it contains special characters such as $,#,etc. The only acceptable characters should be any alphanumeric, the hyphen "-", and the apostrophe "'". I am not sure how i should search the name for these non-acceptable characters, especially the apostrophe. So...

Inserting a form into a block in Drupal?

Is there any command or method that I can use to insert the contents of a form (e.g. the user registration form) into a block? ...

Checkbox values and useBean tag

Hi all, I'm a jstl newbie so probably this question will sound to you funny. Anyway, I have a model with a List as property and I'd like to fill this with a list of values (chosen from a list of checkboxes). I'm using the useBean tag in the form-processing jstl page, but doing this: <jsp:useBean id='subscription' class='Subscription'>...

Windows Forms: Set form Visibility Based on Focus enabled of external window

I would like to create a Windows Forms application that when run is only visible once another external window (notepad.exe) is enabled/focused. Any hints, I don't know where to begin. If my form is running I would like it to popup when Notepad is enabled and disappear when Notepad loses focus. ...

Mouse enter/leave Form and Button child events problem.

have a program that fades out on mouse leave event. but the problem is when the mouse goes in to a child of the form like a Button, it triggers the mouse leave event. so i set up this code. private void Form1_MouseLeave(object sender, EventArgs e) { if (this.ClientRectangle.Contains(this.PointToClient(Cursor.Position))) { ...