forms

Jquery Post + run php file > hide the form > give message...

Hi friends, here is my code about jquery post. I can't make it work somehow. I spent hours :( what I miss here?! when I run the code, It loads same page :( I want it to run the php code under query.php and hide the contact form and give "thanks!" message at send submit button click. (with no page loading) appreciate helps...

How to enable form submit using onchange event?

Hi all! In my project I need to validate the form while using entered data to enable submit button only after the correct data have been entered. I hook onkeypressed, onclick, onblur and onchange events for input field, but none of that is fired when user pastes values using mouse into the field. Currently I use setInterval to periodica...

M/S - Access 2007 - Displaying Values of Parameters in a FORM

I'm just learning Access 07 and coding so, this may be a very simple question: I have a FORM that I want to display the value of Parameters so that I know what I have inputed. Similar to [Start Date] & [End Date]. "Your query will start at 07/01/2009 and end on 07/10/2009." I can do this in a REPORT "Parameters!Start Date.value" but...

ms access auto fill main form based on focus of subform

i have a data entry/editing form with two combo boxes (Name and Group). Each Group correlates to multiple names but each name is in only one group. At the bottom of this form is a subform which is a continuous form displaying a query of the associated table filtered based on an unbound combo from which you select the group. Basically ...

jQuery plugin to serialize a form and also restore/populate the form?

Hi folks, Is there a jQuery plugin out there that can serialize a form, and then later restore/populate the form given the serialized value? I know the form plugin can serialize as a querystring, but I haven't found anything that will restore the form from the querystring. What I'd like to do is serialize the form values, store as a c...

C#.NET - How to inherit from an existing windows forms control

I'm used to working in visual C++. In learning C#.NET I tend to try to find equivalent methods to how things are done in VC++. When I have a button in C++, to get full control over it I create a class derived from CButton (the equivalent of System.Windows.Forms.Button in .NET) and then set this class as the type for my button in order t...

HTML form needs double click to focus on field

For some reason one of my forms (I have 2 forms in the same page) is not working properly because I need to double click on each form field in order to be able to enter data. Any ideas why this may be happening? ...

Rails - validates_associated with an :if condition

I am running into an issue when trying to apply an :if condition to a validates_associated validation. The if condition works for validates_presence_of, but not for validates_associated, and the form (with two models in it) works correctly, except that the validation still returns an error, regardless of whether the if condition is true ...

Clear form button in HTML...do we really need this?

I usually add the clear form button to HTML forms by default, but tonight I had what alcholics call a "moment of clarity". Why the hell do we add this? In all my years of using the internet I have never gotten to the end of the form and thought "crap!, I screwed up, I need to reset this!". Is this button actually necessary or a hold ov...

Remove all inputs that don't have the id's x or x

I have a widget inside of my asp.net page from a third party. I can not use nested forms, so I am changing the method and action of the asp.net temporarily to work with the widget. I have a js method the the elements in my widget method call function changeActionAndMethodOnFormAndSubmit(newAction, newMethod, newName) { var theForm ...

Collecting a huge amount of data on a webform, best methods?

Hey all, I need to allow users to choose/input authors associated with a given publication and there could be just a single author or (43 = the most I have seen so far) up to 40+. Needless to say creating a static form to collect the data will not do since there is no way to know ahead of time how many authors there are. My original ...

Simple way to clear the value of any input inside a div?

Hi all, Is there a simple way to iterate over the child elements in an element, say a div, and if they are any sort of input (radio, select, text, hidden...) clear their value? TIA for any helpful links or advice. David Edit to add link to example solution code. Many thanks to Guffa and the other respondents! I learned from this! ...

running a batch file from oracle forms 6i using host

I am trying to run a batch file. the file is located here: C:\Program Files\Java\jre6\bin\getfile.bat I use this in oracle forms 6i: first i assign this path to a variable: tmp_msg := 'C:\Program Files\Java\jre6\bin\getfile.bat' then I use the host command: host( 'cmd /c' || tmp_msg, no_screen); This is exactly as I have it. It ...

How do I pass the value of the previous form element into an "onchange" javascript function?

Hello, I want to make some UI improvements to a page I am developing. Specifically, I need to add another drop down menu to allow the user to filter results. This is my current code: HTML file: <select name="test_id" onchange="showGrid(this.name, this.value, 'gettestgrid')"> <option selected>Select a test--></option> <option value=1>T...

Stop form from open when no records

Hi, I have a data entry form that when it closes opens another form for further updating the just newly entered data. However, at times no further update is necessary. How can I suppress the 2nd form from opening when there is no need for further update? Presently the form opens even when there are no recordsets present. (need a similar...

How do I get form values to disappear when I enter the field?

I am making a simple form with about eight input fields. I want the initial value in the field to indicate what people are supposed to enter. For example value="name" so that people know to enter there name there. My question though is how do you get the initial value to vanish when they enter that field so that the initial value is on...

Salesforce web2lead ajax sbmission problems using jQuery

Has anyone been successful sending a web2lead form via ajax submission (jquery ajax object)? I'm having a heck of a time getting this to work. I have a form on a page that submits to salesforce without ajax, just fine. When I add in jquery's plugin for validation and then use jquery's $.ajax function to submit the page, NOTHING. (i kn...

ms Access form subform sort

I have a form where I specify information that is used by a subform in tabular view. The subform then displays entries for the item specified in the main form. Each entry has a date associated with it. I would like the entries to show up sorted by date such that the latest dates are at the bottom, and when you add an entry in the subf...

Problems Detroying Database Records When Processing multiple form elements generated by javascript actions

I'm revising this question again because I solved a majority of the issues. The current bug that I could use some help with is that when I remove an object using the technique described below, I end up with orphaned database rows that should be getting deleted. Details below. I'm using the Ryan Bates technique from Advanced Rails reci...

How to use Windows Forms in a C/C++ application?

I have an existing project created using C/C++ under a development environment. Currently we want to facelift the existing form using a Window Forms application but the problem is the existing project is using Common Runtime Library = No /CLR and Runtime Library = /MTd. But the a Windows Forms application is using Common Runtime Libr...