form

How use Jquery.form plugin with C#?

Hi, I'm not very experienced in C#/.NET [WebMethod] (note: I am on Mono) and I wonder how could I use the JQuery.form plutin. I have a Service.asmx and Service.asmx.cs with methods I call with standard jQuery AJAX call. In the form "action" attribute I put link to the Service (/blah/blah/Service.asmx/myMethod). Which firm and/or attr...

PHP 200+ Form Fields...

Just to give you a bit of background i have a system where there's certain calculations that need to be calculated in the main section, there'll be various form fields under different tabs, for simplicity sake i have 10 sections, all with 20 drop down boxes and when you change the value of one of the drop downs it's recalculated in the m...

Axapta: Edit form field values

Using a 'clicked' override on a button, I'd like to modify values in an Axapta form. I'm able to get data from the form field using: str strOld = Form_FieldName.valueStr(); I'm able to prepend text to the field using: Form_FieldName.pasteText(strNew); I can't seem to find a .clear method or .value= method. I'd like to replace...

Detecting IsAjaxRequest() with ASP.NET MVC and JQuery Form Plugin / File Upload

I'm using the JQuery Form plugin to do a file upload on an ASP.NET MVC application. I've learned that since an iframe is used for file uploads (rather than XMLHttpRequest, which isn't possible), the server-side check for IsAjaxRequest fails. I've seen a few posts related to this question but haven't come across any good solutions to wo...

PHP form validation for year

I'm using PHP to validate form input before the form data's submitted to a MySQL database. What would be the best way to validate a form input for the year only? I have a form input where users should input a date, in the form of a year only. Obviously I can check that the input's numeric and has only 4 characters, but what would be the...

ASP.Net Form send click but nothing happens

Hi guys, I am building a german payment provider into my site. But when I click on "Submit", nothing happens. Can someone please help me? I think I've looked at it too much and I can't see the forest for the trees anymore... <form method="post" action="https://www.sofortueberweisung.de/payment/start"&gt; <input na...

Square brackets in HTML form arrays. Just conventional or with a meaning ?

I frequently see, in particular in the PHP world, the following writing if you want to create a FORM array. <input name="MyArray[]" /> <input name="MyArray[]" /> with the square brackets []. Nevertheless, the submit operation just passes the same key entry twice. It appears that the [] is just conventional that maps nicely to the PHP ...

Flash: How do I make a POST request from within flash to my processing php page?

I basically have a form inside of Flash that I need to submit to a server-side processing page, which will then return either json or xml telling if it succeeded or not ( json, xml I suppose ). My version of Flash is CS4 and I'm wondering if there are any libraries or frameworks I can use to accomplish this. ...

How to submit a form programmatically in Java servlet?

Hello, I have a java servlet which get the form request from one webpage in domain A, and it would deal with the form, and would send the result in another form as a request to another webpage in domain B. I'm wondering how to submit the form programmatically in Java servlet? I tried to use javax.servlet.RequestDispatcher.forward(req...

Two forms share same input

Hi How can two forms share the same inputs? I have two forms, one for two different paths... if i wanted to get the user to enter their name, but only once.... how could both forms get hold on this field? ...

Banishing the Command Prompt Window (WinForms)

Hi All, I have a problem over here. You see, I wanted to create my own sample application in C# but without Visual Studio creating the files automatically for me. So I figured that I'd simply select "Empty Project" and then create the Program.cs file myself, and then manually add a Winfows Form from the Project menu. That went good. Bu...

Zend Form add error message

Hi I did register form in with zend form $password = new Zend_Form_Element_Password('password'); $password->setLabel($this->_translate->_("Password:")) ->setRequired(true) ->addValidator('stringLength', true, array(4, 32)); $confirmPassword = new Zend_Form_Element_Password('confirmpassword'); $confirmPassword->setLabel($this->_...

help with form target, it popups in a blank page instead of the div I chose.

I have set the target of the "pic_form" to a div (pic_target). The form (pic_form) and the div (pic_target) are both inside the same iframe (iframe_pic). Whatever I set the target to of the "pic_form", a new page pops up and there is my php script (imageUpload.php) output... WHY? Here is my main page code: <form><iframe name="i...

Why File Upload didn't work without enctype?

Most of time, the source of File Upload didn't work was forgetting enctype in HTML Form (for me). Normally, we do not need to add enctype in HTML Form for regular requests. But we do need to add this in HTML Form for file upload... enctype="multipart/form-data" I just curious, why file upload didn't work without enctype. Thanks. ...

There is only one "submit" for one form,how to place more than one operations on a set of checkboxes?

There is one form, inside the form there are many checkboxes. Two operations can placed upon these ticked checkboxes. Since there is only one "submit" button for a form, how to walk around this? I know I can set two buttons, one button for each operation, and an extra "submit" button, which looks like the pseudocode below: <form> <chec...

Symfony: Model Translation + Nested Set

Hi, I'm using Symfony 1.2 with Doctrine. I have a Place model with translations in two languages. This Place model has also a nested set behaviour. I'm having problems now creating a new place that belongs to another node. I've tried two options but both of them fail: 1 option $this->mergeForm(new PlaceTranslationForm($this->obje...

upload multiple documents in sharepoint with content type form

Hi, my question is this: how can I upload multiple documents in a sharepoint site and still have that page woth the form saying content type like it does when I upload one document? Thank you. ...

Asp.net mvc send parameter to action with submit button in the partialView

My partialView is Opened in the modal dialog form, User select special row, I want to Submit the parent form with special value as a parameter. My parent form is: <form id="mainForm" action="<%= Request.RawUrl %>" method="post" enctype="multipart/form-data"> and my submit button in the modal dialog (and in the GridView) that post dat...

Zend form validation

Hi, I am using Zend Form to create dynamic form. I have Zend Form validation too. Trying to remove Validation dynamically, but not getting any success. Can you plz help me to remove Zend Validation. Bellow is my code for remove validation : $toRemValArray = array(); $toRemValArray[0] = 'ele_4af42ceac7810'; if(isset($_POST['btnPost...

how to validate input type = 'file' with javascript?

you cant change the value of the input type = 'file' in a form because of security reasons. But is it possible to read the value at all with javascript to then check extensions and validate the form? or will that also be a security breach? Some examples would ease my pain... thanks ...