form

WPF vs Windows Form

Duplicate : When is Winforms the correct choice vs. WPF? I’m working for a financial company with the strict business oriented applications. All these fancy multimedia stuff is not really appreciated by the business user. Therefore it is not clear why should I develop a front end client using WPF instead of the old good, easy to use, ...

Safari 3.2.1 sends POST followed by GET requests

I've a servlet running on Tomcat 5.5.27 and 5.5.26 and have a web form with POST method. If I use Safari 3.2.1 I see from the logs that Tomcat receives a POST followed immediately/contemporarily by GET and it fails. If I use Firefox 3.0.5 I see that it sends only POST and everything works. Trying to debug with Eclipse I see that when us...

Testing C code using the web

I have a number of C functions which implement mathematical formulae. To-date these have been tested for mathematical "soundness" by passing parameters through command line applications or compiling DLL's for applications like Excel. Is there an easy way of doing this testing over the web? Ideally something along the lines of: compi...

How can I make a radio button for "Other - please specify?"

I am creating an HTML form with some radio button options. I'd like to have one option as "Other - please specify" and allow the user to type something in. Two questions: 1) How can I make a "hybrid" input type of radio/text? 2) On the PHP back end, if the input has the same name attribute as the radio inputs, will the user's ...

ASP.NET MVC Form repopulation

I have a controller with two actions: [AcceptVerbs("GET")] public ActionResult Add() { PrepareViewDataForAddAction(); return View(); } [AcceptVerbs("POST")] public ActionResult Add([GigBinderAttribute]Gig gig, FormCollection formCollection) { if (ViewData.ModelState.IsValid) { ...

How to Test Standard HTML Forms

What tools are best for lightweight testing of HTML forms? My particular use is very light: no multithreading issues nor elaborate test scripts: just fill in a form with particular values and let me click submit. A Firefox plugin would be fine... ...

Post from one controller action to another (not redirect)

Hey all! I have an action which I need to post forward onto another action if it meets certain conditions, but I am unable to preserve the form data when passing through to the next action. The receiving action accepts a FormCollection, which the sending action Currently, I am doing a return RedirectToAction("action","controller", fo...

Curing the "Back Button Blues"

Ever stumbled on a tutorial that you feel is of great value but not quite explained properly? That's my dilemma. I know THIS TUTORIAL has some value but I just can't get it. Where do you call each function? Which function should be called first and which next, and which third? Will all functions be called in all files in an applicatio...

iText copy form fields

Is there a way in iText to copy just the PDF acroform fields from one PDF document to another PDF document? I have the code to copy the entire PDF, but I would like to be able to overlay all my fields to a new/updated PDF document. ...

php - inserting the values of multiple checkbox selections

the site i'll be refering to is http://www.iaddesignandstudio.com/offline select the quote tab if a person where to fill out this form and select more than one checkbox in either number 1 or number 3. how would i insert those selected values into a database so that when i retreive the information the user inputed or selected i can see ...

JSF Multiple Partial Validations Scenario

In JSF, is it possible to solve the following validation / updating scenario using the validation framework of JSF (aka validators, immediate, required, etc.)? +-- Form ----------------------------------------------------+ | | | Field A: |____________|v| ...

Sending form without mail client

Hi,everubody! can you help me with my trouble? I'm trying to create form for filling resume. User should not use mail client to submit form. How can I realize this idea on javascript or PHP? ...

FormatException: Html.CheckBox(), UpdateModel() and the hidden input

i have my checkbox for a bool field like so in my view: =Html.CheckBox("Active", ViewData["Active"] != null ? ViewData["Active"] : (ViewData.Model.Active != null ? ViewData.Model.Active : false) you can forget the fluff if you like: =Html.CheckBox("Active", ViewData.Model.Active) ..causes the same problem. when i try to update my mo...

Hide/clear input field with prototype

Hy everyone, I have the following script : if (Object.isUndefined(Axent)) { var Axent = { } } Axent.SelfLabeledInput = Class.create({ initialize: function() { var labelSelector = arguments[0] || 'label'; $$(labelSelector).findAll(function(l) {return (l.readAttribute('for') !== null)}).each(function(l){ l.hide(); $(l.readAttr...

Insert Comment Reply Form Into Page Using Jquery

I have been making a threaded comment system as a way to learn php and javascript/jquery properly. Ive done bits and bobs in the past but ive made a new years resolution to learn it properly. Im having trouble inserting a reply form into the comment tree below the comment being replied to. I know this is probably pretty basic but how do...

Multiple submit buttons/forms in Rails

I am trying to write a rails application which lets you go to a certain page, say /person/:id. On this page it shows a set of available resources. I want each resource to have a button next to it, which reserves that resource to that person (by creating a new instance of an Allocation model.) As an extension, I'd like several buttons by ...

treeview checkbox: how to check on select and vice versa

I'm working on a treeview with its CheckBoxes property set to true. I want the same functionality as in a CheckListBox in that if I check the box of a treenode, that node will be selected; and if I select a node, that node's checkbox will be checked. I'm not sure what event I need to hookup to do this. Please help. Thanks. ...

What is the best way to do a simple Parent-Child drop down in pure Javascript

I need to do a quick and dirty 'Country' --> 'State' drop down relationship on a web form. I only am concerned with the states, provinces, and territories for USA and Canada, and this will be a relatively lightly used form, so a pure javascript solution is probably ideal. ...

Form Collection item coming up as null

hi everyone, I am trying to use form collection and this is what i am using to submit the form <%=Html.ActionLink("Update", "Calendar", ViewData["sub"], new { onclick = "this.form.submit();" })%> just for the heck of it i tried replacing it with a dropdownlist that retains its value and all of a sudden i get all my form collection ...

HTML: Submitting a form by pressing enter without a submit button

Well I am trying to submit a form by pressing enter but not displaying a submit button. I don't want to get into JavaScript if possible since I want everything to work on all browsers (the only JS way I know is with events). Right now the form looks like this: <form name="loginBox" target="#here" method="post"> <input name="usernam...