forms

Customize errors symfony

There are some "best practice" in Symfony to customize form errors? For exemple, if i would to show "Campo obligatorio" when the field is required. 1)How can i do that better way and independent from what forms call it? 2)How can i customize message 'An object with the same "%namefield" already exist.' ? Thanks updated sorry, but if...

How to distinguish form values in duplicate forms using AJAX (jQuery)

Hi, I have a page that contains several forms that are identical throughout a page. I submit these forms using the $.ajax() method. As I see it using classes to identify/submit/validate the individual forms will likely be problematic. Passing the form with something like $('.someForms').serialize() would not produce viable results. H...

quiting a c# application leaves it in memory

I'm using c# to write a windows form which installs and deploys WSPs to a sharepoint server. The problem I am having is that when I detect a problem and quit the application or when the cross in the top right of the form is pressed the form closes but the task is still in the process list. My quit code is: this.close(); application.qui...

risky characters to block in asp.net forms?

hi, I'm about to launch a forms auth membership site that will include forms that both international and American users can use to update their profile info and submit requests for info on products (but no actual e-commerce). I'm using asp.net validation controls on the text inputs and I had it pretty tightly filtered for chars using re...

Pylons and multiple forms per page

Hi all, I've got a web page I'm generating with Pylons and the evoque templating tool. I'm trying to generate a page with multiple forms per page (one form is part of a base template that becomes part of every page). I'm having a problem as I seemingly can only get the form element values for one form; whenever I try to get the value fr...

Problem Inserting Report Viewer into WPF Application using WindowsformsHost

Hi I am trying to create a popup from my WPF application which shows a report viewer hosted in a WindowsFormsHost however I am having problems with the following Xaml <Page x:Class="FIS3.ReportViewer.ReportViewer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...

php header not redirecting when using forms

Hi, Seem to have a unique problem. I'm doing form validation using a php script. I initially wrote this code in 2007. All of a sudden it stopped working, and I've been trying to figure out why. Here's the code: <?php $error_msg = ''; // Only Validate Form when it is submitted if (isset($formSubmit)) { if (!isset($_SESSION["Firs...

jQuery manipulating forms

For some reason it's not changing the action of the forum. I have some code to change the action of a form when a button is clicked: function changeForm(event){ alert("Before: "+jQuery("#franchiseform").attr("action")); jQuery("#franchiseform").attr("action", "franchisepreview.php"); alert("After: "+jQuery("#franchiseform...

Excel Forms Edit Only

I have this excel sheets + a vba part with 3 forms that interacts with the sheets (read/write data, xml export, etc). I have some data verification in my forms' code, so I would like to be able to modify values in the sheet only through the forms, not through direct "on-the-sheet" editing Is that possible? When I lock the cells I want ...

Weird behaviour of iframe `name` attribute set by jQuery in IE

I'm doing an ajax style file upload by posting the file in a form to an iframe and noticed some weird behaviour in IE (seems to happen in both 6 & 8). Basically in IE the form doesn't target the iframe properly so the response appears in a new window (instead of in the iframe). You can reproduce the problem with the following minimal set...

Rails: Ajax form validations with error_message_on

I've been trying to get get some ajax validations going in my form and have been running into a bit of trouble I have code like this in my form: <% form_for @user, :html => { :id => 'user_form', :multipart => true } do |f| %> <%= f.label :username %><br /> <%= f.text_field :username %> <%= error_message_on :user, :username %> ...

[C#] Smart Form Update Ideas

Starting my first serious GUI app in C#. I have a class that is handling and doing lots of things that I can plug methods from my GUI controller class into and get events when it appropriate. I have several listboxes and other controls I want to update whenever this information is updated. However, I would like to throttle this a bit. ...

Oracle Forms on-button-pressed trigger to solve three scenarios

Hello, I'm writing a when-button-pressed trigger on a save button for an Oracle Forms 6i form, and it has to fulfill a couple of scenarios. Here's some background information: the fields we're primarily concerned with are: n_number, alert_id, end_date For all three scenarios we are comparing candidate records against the following re...

html listbox to show additonal txt in extra field outside of listbox

Hello everyone, I have the following db-retrieve which results in the Listbox I like to have. But I need $desc2 to be shown under the listbox in a separate field and it must change its content when the user clicks on an other item in the list: Here is the retrieve which works: echo "<form action=\"admin.php\" method=\"post\">"; echo ...

URL - Encodeing (javascript) method="GET"

I have a form with some input fields (6). When I click the submit button "I would like to format the URL" in such a way: /actionname?input1|input2|input3|input4|input5|input6 and maybe for null values: /actionname?input1|input2||input4||input6 and maybe a time-stamp for when the user clicks the submit button. Can this be done using j...

how to redirect guest to guest.aspx from login..

I have an administrator and a guest user... When the administrator logs in he should be redirected to the default.aspx but if the guest logs in he should be redirected to the guest.aspx page... Currently it is being redirected to Default.aspx... here is my code web.config authentication mode="Forms"> <forms loginUrl="Login.aspx"...

Creating a set number of child objects from a parent's form

Thanks to http://stackoverflow.com/questions/2020673 and "Agile Web Dev", I know how to have multiple models in a form using fields_for. But I'm tearing my hair out over this one. Suppose I have a model Person. Person has a name attribute, and has_many :foos. The Foo model, in turn, has a colour attribute. Furthermore, I know that each...

Extra fields with custom rails form builder

I have a custom form builder, and one of the reasons for this custom builder is that for every form, I need to include some extra params that I don't want to explicitly put in with hidden field tags in every form I write. for_for(@foo, :builder => MyBuilder) do |f| # stuff I shouldn't have to worry about # this should be put in all ...

How to insert web forms into web pages made with WIX editor?

Hi, I have made a web page with WIX editor. They do not give you the HTML, but I got it with Mozilla "View""Code Source I have deleted some Wix adds but could not delete the hyperlink to Wix home. Does anybody know how to find it in the HTMNL code and remove it? Other issue: I want to insert a form but seems that all are not compatibl...

BlackBerry: [un]checking HTML checkboxes with JS not working

I am trying to check and uncheck an <input type="checkbox" /> by adding and removing the checked="checked" attribute using javascript (jQuery). It works great in Firefox & IE. Adding and removing disabled="disabled" works perfectly. But with checked, neither clearing nor adding the attribute does anything. I'm writing in XHTML 1.0 Stri...