Embedded Forms Snippets


his snippet was created under the inspiration of using the django-multilingual package. Also an additional code is used to solve the problem of saving the many-to-many relations in embedded forms (http://trac.symfony-project.org/ticket/5867#comment:21). The idea is that in all embedded I18n forms appears checkbox "delete" for each...

By default Symfony displays forms in tables, with each new input being a table row. If you want to display your forms more semantically with fieldsets and lists, Symfony has a list formatter built in. You can tell an individual form to display as a list using the code below.

14 January, 2013   

This is a simple example of an embedded stylesheet.

20 November, 2012   

An example of embedded stylesheet. This code goes into the <head> of your HTML document.

10 December, 2013   

VB.Net code for Fullscreen

Shows how to focus a control in a Windows Form. If you are working with Web forms it is very simple, you just use "WebControl.Focus()" but this does not work for Windows Forms.

27 February, 2013   

An example code for tableless forms

Example Apache .htaccess file to add access control header

13 October, 2012   

You need to give each element a sequentially numbered tab index value in order for this script to work properly.

20 August, 2014   

Javascript function to check or uncheck all the checkboxes in a form.

01 March, 2011   

Mouse Move Paint . A simple program for drawing using mouse move event in vb.net 2005 version... This code is compatible with : VB 2005, VB 2008, VB 2010 Steps For Creation:- --------------------------- 1. Change the background color of the form1 as white. 2. Then, double click the form and change the event as mouse move click event. 3. Now,...

06 February, 2012   

ASP Forms and User Input from HTML form

03 August, 2013   

ColdFusion code for upload files to directory

23 December, 2015   

It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.

19 July, 2012   

E-mail validation is perhaps the most used validation in web forms, this code will validate email address and also optionally check the MX records of the domain provided in email address to make email validation more robust.

23 March, 2011   

When using forms within your web site, there may be times when you will want to include an example of what you'd like your visitors to fill in your form field. Although you could place some default text within your form field, your users would need to delete the default text in order to type in their own information.

When using forms within your web site, there may be times when you will want to include an example of what you'd like your visitors to fill in your form field. Although you could place some default text within your form field, your users would need to delete the default text in order to type in their own information.

22 August, 2012   

This JavaScript code within your web page HTML between your HEAD tags

To create the formatter paste this code into a new file and name it sfWidgetFormSchemaFormatterDefList.class.php. I saved it in /lib but it also makes sense to put it in /lib/form, depending on your personal preference.

17 July, 2018   

This function takes a string and an output buffer and a desired width.