form

Axapta: Programmatically switch records in a form

In Dynamics AX 2009, how do you programmatically change to a different record in a form? My form contains a treeview and a group of bound data fields. When clicking on a record in the tree (the data value for each item in the tree is the RecId of the item I'd like to edit in the form) I'd like to change the form to that record. I've b...

can i bind cell values of an html table to a data object to pass to an asp.net mvc controller

i have a form that i am submitting to my controller. I created a data class that is used to pass into my controller to do something like this: [AcceptVerbs(HttpVerbs.Post)] public ActionResult Update(ApplicationUpdater applicationUpdater_) { } the issue is i used to have a list in a multi select dropdown and that simp...

c# problem with form / tabcontrol redraw on maximize

I have an app / form with a tabcontrol on it. When I maximize my app, I see a redraw-bug - empty parts of the right area on the tabpage arent drawn correctly and show other weird stuff. (It's just the background, the controls on the tabpage are okay) I assume it must be a simple setting somewhere, but I can;t figure out what it is. Any ...

can you post complex objects from form to controller in asp.net mvc

i see there are solutions using different model binders like castl but i didn't know if the basic default model binder supported nested complex objects when i am posting a form to a controller. ...

Database "validation" PHP

Hi everyone, I'm trying to validate the password entered by the user with the password in the database. I've worked out that it checks the username fine (if the username doesn't exist it displays an error), however when it tries to validate the password with the mysql password it never works. The working 'example' is at http://scaperscle...

Naming form fields in a web page

How do you name your field names in a web page without revealing the structure of your database tables? ...

Ways to remove the autocomplete of an input box

Hi I need a text input field which does not use the autocomplete function - If a user has submitted the form before, his previous submissions should -not- appear as he types into the form again, even if he is typing the same thing again. As far as I can tell, there are a few ways to do this: 1. <form autocomplete="off"> However, I beli...

Using jQuery to dynamically add form fields (or fieldsets) based on a dropdown box value

Hi, As the title says, what I am trying to do is to have jQuery add a number of extra fieldsets based on the value selected in a drop-down box. For example, when the page loads, the drop-down has a default value of 1, and the default fieldset is displayed. Now, if the user selects a different value in that drop-down, the number of field...

jQuery; Submit Form if Required Fields Filled in and Other Combinations Are True

Hello. I have a form with dozens of fields. Some are required, some are not. With the fields that are required, I have added class="required" to the item I found this snippet of code and was wondering how to adjust it $('#form').submit (function() { if(formValidated()) return true; return false; }); I only want to submit the...

Triggering conversion tracking code on form submit

I have a PHP form that mail()s the form data on submit and then if successful returns them to the referring page (in other words keeping them on the same page as the form) and appends ?success=TRUE to the URL. The question is, how would I implement the AdWords and Yahoo Search Marketing conversion code snippets to trigger only when the ...

Styling regular form elements with jQueryUI

Hi. I'm using jQueryUI on my site, as well as http://www.filamentgroup.com/lab/jquery%5Fui%5Fselectmenu%5Fan%5Faria%5Faccessible%5Fplugin%5Ffor%5Fstyling%5Fa%5Fhtml%5Fselect/ as replacement for select elements. But I have a problem to style other form elements, text and textarea. Have anybody idea how to do this right way? ...

JQuery URL Selector to Replace standard XHTML Form Dropdown

I'm certain this is a simple solution, but had no luck pinning down the right approach (just getting started with jQuery). So, here's the question: I have this HTML form: <form id="callSelect" class="full" method="post" action=""> <select name="Single"> <option value="/var-a/">Var A</option> <option value="/var-b/">Var B</opt...

php contact form clean code

Trying to make my own contact form with php. Is there a better/cleaner way to approach this? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1 /DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Contact Form Practice</title> </head> <body> <form method="POST" ac...

PHP - How to use arrays for form input and update respective database records

I'm new to PHP... I want to know how to populate a form from mySQL. I'm stumped at the input section where I am trying to allow the user to select choices for radio button /checkbox for each record. thanks in advance for anyone's help! TC Here's a snippet of my code: <?php $mQuantity = 1; $con = mysql_connect("localhost","t","c");...

Delphi - Creating controls before form Create is run?

Well, my problem is as follows: I have a Delphi 5 application that I'm essentially porting to Delphi 2010 (replacing old components with their latest versions, fixing the inevitable Ansi/Unicode string issues, etc.) and I've run into kind of a hitch. Upon creation of one of our forms, an access violation happens. After looking it over,...

Comparing window.parent/opener with NULL or 'undefined'

If I have this method: this.getForm = function () { try { var frmIndex = arguments[0]; if (isNaN(frmIndex)) frmIndex = 1; if (window !== null) { if (window.opener !== null) { return window.parent; } else if (window.parent !== null) { if (window.parent.frames !== null) { if (window.parent.frames(...

How do I submit a "file" input without submit button with JavaScript?

There is a way to automatically submit a form without clicking to a "submit" button? I have a form with one "file" input. I would submit the form after the user have selected one file. ...

Tracking information over many pages for a website

Hey SO, I have a sort of vague question that you guys are perfect for answering. I've many times come across a point where I've had a form for my user to fill out where it consisted of many different pages. So far, I've been saving them in a session, but I'm a little worried about that practice since a session could expire and it seem...

Ajax file upload

Hi, I have a form that upload a file, I would process the file inline with ajax but I don't know how I can get the data with ajax. In my script I use this method: $.ajax( { type: "POST", url: "upload.php", data: ({ file : '???' }), success: function(...

How can I set an image for my BackgroundImage in my WPF Form?

In Windows Forms, I would go BackgroundImage and just select it from the comboBox. But here there is no such property. How would I go about this? ...