forms

Form with Hidden Tags to cybercart- bring it up on the same page?

Hi, what I want to do is basically this: On ONE page, my customers can click a VIEW CART link and the contents of their cart shows below on that same page. here is my basic link form: <FORM METHOD=post ACTION="http://www.123websiteservices.com/cgi-bin/cybercart.pl"&gt; <INPUT TYPE=hidden NAME=merchant VALUE="jessicas"/> <INPUT TYPE=h...

(How) can I open the result of a form submission in a new window?

I have a small form inside a table. POSTing that form creates a new entity. I then want users to see that new entity, but it should open in a new window so that the original view isn't lost. (How) can I open the result of the form submission in a new window? ...

Django FormWizard with dynamic forms

I want to implement a simple 2 part FormWizard. Form 1 will by dynamically generated something like this: class BuyAppleForm(forms.Form): creditcard = forms.ChoiceField(widget = forms.RadioSelect) type = forms.ChoiceField(widget = forms.RadioSelect) def __init__(self,*args, **kwargs): user = kwargs['user'] del k...

Autocomplete - Append and getting only the text the user has inputed on combobox

I have a ComboBox that I set up like this: this.cmbCustomerJob.DisplayMember = "display"; this.cmbCustomerJob.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.cmbCustomerJob.AutoCompleteSource = AutoCompleteSource.ListItems; this.cmbCustomerJob.DropDownStyle = ComboBoxStyle.DropDown...

Rails form validation

I have a Rails app that lets a user construct a database query by filling out an extensive form. I wondered the best practice for checking form parameters in Rails. Previously, I have had my results method (the one to which the form submits) do the following: if params[:name] && !params[:name].blank? @name = params[:name] else fla...

javascript: addContent - How to package...

While making use of a sample for addContent (located at randomsnippets.com), I stumbled into a problem that I hope someone can help on. This may not be the best/only way to skin this cat, but we have a PHP/MySQL page that has to be modified to ADD rows for data entry when needed. Their method works (please take a peak at their page), ...

How to do two things with one click in Windows Form

On my main form, there is another (floatable) window. This floatable window works sort of like a popupwindow in that it will close when the user clicks somewhere else outside of this window. This is handled by the Deactivate event. But what I want to do is, if the user clicks on a different control (say a button), I want to both close th...

What alternative do I have to ugly submit buttons in html forms?

I'd like to make a simple html form where a person can upvote or downvote an item. However I don't like the default look of a <input type="submit"> . What other options do I have to send a POST request than a bulky, default button? ...

How do I capture response of form.submit

Hi All, I have the following code: <script type="text/javascript"> function SubmitForm() { form1.submit(); } function ShowResponse() { } </script> . . . <div> <a href="#" onclick="SubmitForm();">Click</a> </div> I want to capture the html response of form1.submit? How...

How to use jquery form plugin with asp.net ?

in asp.net 2.0 (not mvc), the form's action is to itself. how can I use the forms plugin to send information to server? I need to send data from the form (let's say name, email, comment) and to display the result on the client side. Any ideas? Thanks, Dave ...

Better interface for file downloads and uploads from a web page?

I have what seems like a typical usage scenario for users downloading, editing and uploading a document from a web page. User clicks a link to download a document User edits downloaded file User saves the file User goes back to the web page and uploads the new file with the changes The problem is that downloaded files are typically s...

Flex: How do I access the data in my flex form and submit it to a ColdFusion cfc?

I want to submit the values of a flex form to a ColdFusion cfc. If I have a flex form (see below) is the data in the form an object? Or do I have to create an object based on the id's in the form and then pass that new object to the coldfusion component? <mx:Form x="10" y="10" width="790" id="myFrom" defaultButton="{createReport}"> ...

Browser Add-On/Extension and Browser Form data

Can someone point me to an article (or discuss here) that explains how an add-on/extension can read what a user has completed in a form in a browser so you can present data to them based on the search parameters? An example would be the Sidestep extension that opens a sidebar when a user searches on an airline/travel site and presents t...

Delphi: App initialization - best practices / approach

I run into this regularly, and am just looking for best practice/approach. I have a database / datamodule-containing app, and want to fire up the database/datasets on startup w/o having "active at runtime" set to true at design time (database location varies). Also run a web "check for updates" routine when the app starts up. Given ...

Delphi visual component - moving away from TFrame base?

I have a visual component that I built from a TFrame (but then registered to the palette, etc); it works great and I loved being able to build it VISUALLY using the IDE. I would now like to create a "family" of related components, and to do so, would like to create a superclass of this component, and then inherit this component and othe...

How do I check if the required fields in an html form are filled?

I've got a submission page in php with an html form that points back to the same page. I'd like to be able to check if the required fields in the form aren't filled so I can inform the user. I'd like to know how to do that with php and javascript each. However, I imagine this is a common issue so any other answers are welcome. ...

Switching from ms-access client interface to executable file

Are there any object similar to ms-access forms in VB, .NET or other microsoft technologies? We have been now using Access for developping client interfaces with some success for the last 2 years. We are using a serie of development tools making the best use of a metamodel (we have tables for forms, local queries, menus, controls, conne...

How to access html form input from asp.net code behind

I have a basic HTML form that gets inserted into a server side div tag based on how many records exist in the database. This HTML form comes out just fine, and everything looks good. But on my action page I cannot seem to access the input elements from the code behind. I have tried using the Request scope but have come up empty on that a...

Does it make a difference in security whether a form POSTs to its own file or a different one?

Assuming I do the same field validation in either case, is there any difference in terms of security whether you POST a form back to its own file or to another? Note that I'm not referring to sensitive information or passwords within the form data, but to whether either method is better at avoiding various types of attacks. ...

ASP.NET MVC - using the same form to both create and edit

Whats the best practice approach to creating a form that is used to both create new models and edit existing models? Are there any tutorials that people can point me in the direction of? Cheers ...