forms

How to open javascript search engines in new window (using "function jump() {" )?

see this http://javascript.internet.com/forms/multiple-search-engine.html . i wonder how to open the search result in new window. help me! ...

jQuery matching pattern

I'm trying to validate my inputs with jQuery before a form is sent. This is what my input fields look like when there is no value inserted in the database: <input class="field" type="text" style="background-color: rgb(255, 255, 255);" value="" name="input_18748_388_1257894000_"/> This is what my input fiel...

How to get logged-in user info in Django's forms.py

I have created a Profile model including the Gender info. There is also models called Dorm and Registration (not used for user registration) like this: class Registration(models.Model): user = models.ForeignKey(User) pref1 = models.ForeignKey(Dorm, related_name="pref1",verbose_name=u"Preference 1",null=True) ... friend1 = models.CharFie...

c# .net - authentication expiring prematurely

I am setting up the authentication cookie in c# as persistent and with an end date of one year from now, but it expires not too long after being set. The code is below... DateTime endDate = new DateTime(); endDate = DateTime.Now.AddYears(1); FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, ...

How to requery a subform from another form?

I've struggling with this problem on my own, then with some help, then search about it; but I haven't had any luck. So I decided to ask. I have two forms in Access 2007 lets call them MainForm and EntryForm. MainForm has a subform and a button. The button opens the EntryForm in Add Mode. What I want to do is when the EntryForm saves the...

How to use thickbox (or modal window) to update a select input box

I have a form with a dynamic select box (pulled from a database). I want to give users the ability to add to that select box without leaving the form. I would prefer a thickbox (or modal window) to pop up when the user clicks a link next to the select box. The thickbox popup would have a form where the user can enter the new value to ...

jQuery: Create and submit a form with file upload !

Hey there, I have a simple field somewhere in my document. Now I want to CREATE a form with jQuery, add this input field to it and submit it via Javascript. Something like that: var newform = $( document.createElement('form') ); newform.attr("method","post") .attr("action",action) .attr("enctype","multipart/form-data")...

MVC pattern and $_POST variables

Hi,I am building a php/mysql based framework and cms , and I got stucked into passing variables using post method , from a form located in one controller, to another controller. More exactly , i built a form for changing languages. this form is located in localhost/index/index, and when I select a language, it goes to http://localhost/ap...

Dynamic Forms in Spring Web Flow

Hi, I am trying to make a dynamic form using Spring forms. Basically in my jsp page i have button to Add input text boxes, I can add as many as i want. Dynamically am adding these text boxes using javascript and spring:bind tag. And values also binding to bean object. And i can pass these values to next page also. As we know in spring we...

Preserve something I drew on a Form?

So yeah, Basically I drew something on a form using Graphics. Now if I move a window over the form the stuff I drew gets erased. Is there a way to preserve the drawing? (I'm using Windows.Forms) ...

Getting the label of "this" in jQuery

The following is my code for changing the color of the label of the input field in focus: $(document).ready(function() { var name = $(this).attr("name"); $(".comm-input").focus(function() { $("label[for=name]").css({"color" :"#669900"}); }); $(".comm-input").blur(function() { $("label[for=name]").css({"color" :"#999999"}); });...

What is a good tutorial or book to learn credit card processing using PHP?

I am looking for a good tutorial or book that explains how to process a customer's credit card from a form on your site. I read something about using curl, but it wasn't a complete tutorial. I am looking for a lesson that will take me from step 1 to actually charging a customer's credit card. What is a good tutorial or book to learn cre...

what exactly happens with the from action script in php.

<form action="somesite.com" name="somename"> <input type="text" name="data" value=""> </form> If I try to execute this code in my local system, the value with the name 'data' will be transferred to the site 'somesite.com' Is it the right way to transfer the data to any other web site which already exists? What will happen to that ...

submitting form from textarea

how can i submit a form on enter pressed while i amm typing in textarea........if i hit enter it only breaks a line but not submits the form. ...

How to create a copy/link of a user element in a tab control?

I have a .NET forms application using a tab control with several tabs. There are a few elements (a button and a few text boxes) that need to be displayed on every tab. Rather than create 5 seperate elements (including all the appropriate properties), is there a way to create "links" to one element? For example, when an event occurs, I n...

Does a C++ Windows Forms Application require .NET Framework?

Does a C++ Windows Forms Application require .NET Framework? It seems that it does because it imports "System::Forms" but I just want be 100% sure. I tried opening it with depends and it looks like it imports the usual C++ dll's but there is nothing about the framework. ...

CSS Grid System for Forms (with Inline Labels)

This is a follow up to this question, I'm trying to have the same multi-column format but with inline labels instead of block labels, take the following mockup for instance: It's not very clear in the image but the name (label) + name (input) should occupy 50% (or near that) of the container width, the same goes for the email label + ...

Adobe PDF Forms Digital Signature

I am working on a project which requires a PDF form sent over the internet, filled in by user, and then reply (XFDF) sent via email, and imported into the application. The file contains a digital signature, which the client insists must be signed by the user. However, there is nothing sent back in the form reply with respect to the sig...

Django Forms save_m2m

Hi I have a model which has 2 many to many fields in it. one is a standard m2m field which does not use any through tables whereas the other is a bit more complecated and has a through table. I am using the Django forms.modelform to display and save the forms. The code I have to save the form is if form.is_valid(): f = form....

dynamic web forms

Hi, I'm developing a web application that allows reports to be written and viewed online. These reports will have the structure of a typical school report or annual employee appraisal report. I would like the user to be able to customise the structure of their report. For example, one school might want a report in the format Subject ...