form

C# - displaying a form from a dynamically loaded DLL.

This is an extension of a question I previously asked here. Long story short, I dynamically load a DLL and make a type out of it with the following code: Assembly assembly = Assembly.LoadFile("C:\\test.dll"); Type type = assembly.GetType("test.dllTest"); Activator.CreateInstance(type); From there I can use type to reference virtually...

Why does Jquery submit() fail with an error?

I have a simple form on a page and I want to auto submit it when some event occurs. The test code below tries to submit the form as soon as the page loads, but it fails. Firebug says that "H[G] is not a function". H[G] appears to be "submit". Am I doing something really obviously stupid? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 S...

Modify character spacing in a PDF form field

This question was originally posted by esilver but he seemed to answer his own question, which then didn't make any sense. In his post he mentioned 'combing' of which I have found no reference to. Here is what his question is and my slight amendment is at the bottom: esilver's question: "I'm trying to build a web app to programmatical...

Form.visible must be true to read .left and .top?

I create a bunch of forms, and I want to save and restore their position on application close/startup. However, if the form is not visible, then the .top and .left are both 0. Only when it's visible are these properties populated with their 'real' values. Right now my kludge is to show each form, save the info, then return it to its p...

What are the methods to check user input and prevent mysql injection?

"We should never trust user's input", this is what I read from somewhere on the web. Currently I have a web form, they enter their username and emails. For username field, how to control, check and prevent mysql injection?? Currently, in my php script I only do this: $username = mysql_real_escape_string($_POST['username']); // prevent ...

Entering .htaccess-protected directory using a form

A password-protected area of a website I work on has always been entered by linking to the address, which presents the user with a dialog to enter their username and password. I would like to use a form to enter that information, but I can't work out how it's done and whether it's possible. Help please! Edit: Does anyone have any ideas...

Contact form in SiteFinity C#

Hi There, I want to do basic functionality with a simple contact form and on submit the form emails to someone. This is quite easy to do in asp.net, however I am having trouble once I upload it as a user control. Do you have a good example I can look at? Thank you! ...

Make a foreign key field in a django form read-only, and still enable the form to be submitted

How do I make a foreign key field in a form read only but still allow this field to be recognized as valid once the form is submitted? According to W3C, disabled fields are left out once the form is submitted....using the code below, I can set the field as disabled, thus readonly, but my form doesn't go through def __init__(self, ...

Complex forms with ruby on rails

I need the form that will edit the array of entities and their related entities(one to many). Like this: Person has many Orders. Form for array of People with their orders. What rails API can be used to build this form? Please give a code sample. ...

What is the best practice for form and dialog placement on single and multi-monitor systems?

I'm having a sort out of my (Delphi) applications and I been visiting the floating form size and location persistence which seems to be increasingly important with larger screen real-estate and multi-monitors. Clearly it is often desireable to have a user's form reopen in the same place as they closed it, but maybe not always, for exampl...

How to get FormCheck jQuery script set up and working.

I am trying to use FormCheck for MooTools to validate a basic contact form I am planning to build. The problem is I can't seem to set up the script to work at all =( If anyone knows about FormCheck or MooTools and can add any pointers they would all be greatly recieved. My page: http://is.gd/1p1Ys Thanks Ryan ...

$_POST variable

I'm encountering a problem. I'm using Wordpress, but this ain't a Wordpress question. I'm using two forms, on one form I have all the input fields and one hidden input field which I use for checking which form the user has submitted. I have saved its value as 'save'. There is another form which is just for resetting all the options and ...

post data changing on submit

When I submit data in my form it changes "abcd" to \"abcd\" on the other end.How can I overcome this problem... (I am using post method to send data)..... Please help...Thanks ...

jQuery: Showing a div if a specific a <select> option is selected?

I'm working on the address page for a shopping cart. There are 2 <select> boxes, one for Country, one for Region. There are 6 standard countries available, or else the user has to select "Other Country". The <option> elements all have a numeric value - Other Country is 241. What I need to do is hide the Region <select> if the user sele...

hash vs specific parameters

I am in the process of writing a small javascript library to make form creation/validation easier. This is mostly an excuse to get better with javascript. I am debating about how to take in user input for form element creation. I am looking at two approaches. One is to take in a few pre-determined parameters such as id, label, value Th...

php feedback email form

Hi I'm trying to make a feed back form for php and it worked but I was just wondering, can i make a set of code also deliver this email to the visitor who sent this mail? Also tagged along with a small message like "Thank you, for your feedback. This is the message you wrote ".....". and here is my code: <?php $myemail = "****@myemail....

Trigger HTML POST/Form submit w/o JavaScript

Hey Guys - I have a timed page that I need to use to submit a form upon the end of a specified time period. The usage would be: User visits page, 90 seconds later all form data is submitted and user is redirected to next page. The user is well aware that the page they are on is timed (its for a web-only experiment), so I'm not worried...

Javascript for a form on the server-side?

*The question emerges from the discussion with Christoph in my last question 'HTML: target=”blank” for a drop-down list' and the alternative method by Andrew. Problem: to run code server-side because some users lack Javascript support. The situation is a form like here. Some suggestions: Christoph's recommendation: <form action="path...

Submit button causing layout issues

Hi all I have 2 buttons , one being a image submit button and the other just a standard link button. The layout issue is that the image submit button pushes the other button beneath it. If i take out the form tags the 2 buttons remain side by side which is the way i wish for it to be. any suggestion on how to make my buttons side by s...

Javascript preventing Spring form from being POSTed

Strange problem going on here. I'm developing a JSR168 portlet that is using Spring and the Spring form taglib. I have a search form on a page to go through a catalog of reports based on the criteria the user selects, and for the most part it works fine. However, there is one sequence of events that is triggering an error. I have a Jav...