forms

pass a form value to another form on a different page without using url variables (javascript)

Hi I have a form on a page and I want to pass a form inputbox value to another inputbox on another form on another page without using URL variables - is this possible? They both share the same header page section if that is of any help. Thanks Jonathan ...

Change values in form submitted and the JQuery serialize function

Hello all, Please look at the following code. When the form gets submitted, is it actually submitting the values I have entered i.e. val(50) or at the point it serialzies does it just get data from the form on the actual html page? // stop all forms from submitting and submit the real (hidden) form#order $('form:not(#order)').submit(fu...

What attacks can be directed on a registration page

I have a website registration page, and I'm trying to compile a list of what I need to do to protect it. If you know of an attack, please name it, and briefly describe it preferably with a brief description of its solution. All helpful answers/comments receive an up vote. Here's what I have in mind so far: (and adding what others are s...

Run Function on every change in an input element: JQuery

Hello all, I have a form called "wizard". Everytime any input element is changed, I want a Javascript function to run and calculate something. I have the following: // update hidden field "channels" in wizard based on servers/cores $('form#wizard select[name=servers], form#wizard select[name=cores]').change(function() { var channels =...

Edit parsed JSON

I have a JSON file contact.txt that has been parsed into an object called JSONObj that is structured like this: [ { "firstName": "John", "lastName": "Smith", "address": { "streetAddress": "21 2nd Street", "city": "New York", "state": "NY", "postalCode": "10021" }, "phoneNumbers": [ { "type": "home", "...

Internet Explorer Post Data Bug - ASP.NET MVC

I just started playing with MVC and I've run into a roadblock. I'm using a partial view as a User Login flyout on the header of each page using OpenID. When the user clicks on the provider (similar to stackoverflow) it authenticates and then either returns to the calling page or redirects to the signup page. The code works flawlessly ...

cakePHP: How to create a form for a 2D/multidimentional table?

Hi, I need to create a form in CakePHP to allow users enter data(numbers) into the cells shown on the table below. The input screen needs look like the table shown below. The users should be able to select any cell they want to enter/update the value, then type in the value, click submit and submit the value/s. Each "Metric section ...

Rails best practice for having same form on multiple pages

I am developing an Rails 2.3.1 Web site. Throughout the Web site, I need to have a form for creating Posts on various pages (Home page, Create Posts page, Post listing page, Comment listing page, etc. -- suffice to say this form needs to be on many pages served by a variety of controllers). Each of these pages displays a wide variety of ...

jquery submit *after* third-party ajax validation

I've got a form to get an address from a user, and send that address to my server. The goal is to use Google's geocoding to ensure that the address is unique and geocodable prior to bothering the server with it. I can successfully bind form.submit, geocode, get my placemarks, insure that they're unique or not.. but I'm totally incapa...

html: what effects does 'form' have on the layout of a page

I thought that an html form has no effect on the layout of a page, and that it is just a way to group fields to send their values to the server in a single request. However, I notices that when I remove the form tag, the layout changes. Where can I find an explanation of visual effects of the <form> tag? ...

How to use the livevalidation javascript library custom.validate function ?

Heya Folks, I am very new to all of this so please bear with me! I have mangaged to create a form with livevalidation checking of fields, and also with an ajax/json check to see if a usename is valid. I seem to get along fine with standard live validation. Here is a demo of what I have at the moment: link text The method to give a r...

jQuery - Post array of multiple checkbox values to php

Why is only one value of the "db" checkbox values array being sent to the server side script? JQUERY: $(".db").live("change", function() { $(this).add($(this).next("label")).add($(this).next().next("br")).remove().insertAfter(".db:last + label + br"); var url = "myurl.php"; var db = []; $.each($('.db:checked'), functio...

Extract data from windows forms

Hello, I have an old windows forms app made with boardland c++. I need to extract all the contents of that app to transfer it to a web app. The app is similar to excel, it has columns and rows...and I need to extract that rows and columns. First aproach is to copy paste, but there are about 1gig of information...it will took days to s...

Submitting form replaces constant GET information that is needed for the page.

Hi all, I'm learning php and I've got to say I've googled everywhere and I'm stuck :( My question is, in other words, how can I get new variables added to previous variables on the page? Imagine this being www.mysite.com/getvartest.php?orgvar=12345 but after submitting this form it'll go to www.mysite.com/getvartest.php?varselection=...

Why do my Windows Forms strings look so ugly when anti-aliased?

I'm rendering some strings manually on top of a GraphicsBox, because you can't have a Label with a treansparent backdrop. No matter which rendering mode I try though, I can't get the strings to look any good (ie. as they would appear in Word or in a graphics program. Here's a picture of the interface mockup compared to what renders ons...

Using spring:message to define form tag attribute in Spring web application

I'm developing a Java/Spring web application. The problem I'm currently facing is that I'd like to have message from message.resources shown as an attribute in an HTML. <input type="submit" name="login" value="login" /> So instead of the hardcoded value "login" I need to the value of <spring:message code="general.submit" /> as the v...

How do you make a form in Sitecore 6?

Most CMS' have a way to create forms for users or anonymous users to fill out. Is there a mechanism for creating forms like this in Sitecore 6? As far as I can tell, the only way to make forms like this would be to manually create them in a sub-layout (user control), and then add that sub-layout to a page. Does anyone know a better wa...

Using JQuery to add or remove form elements

I have been trying to get a function working with JQuery to add or subtract form input fields. I have been using an example I found as a starting point. Here is what I have so far: <script type="text/javascript"> $(function(){ // start a counter for new row IDs // by setting it to the number // of existing rows ...

Multiple values for an input in a form?

Alright, let me start with an example. I have a bunch of items and they can fall into series of categories. An item can be in multiple categories. Basically what I have is a listing of items with checkboxes grouped by category. Again an item can appear more than once. So it could look something like: Blue Items: Item 1 Item 2 Item 3 Re...

Pass mvc form post data to an asp page.

We are doing a old section reskin which is written in classical asp and it is being remade in Asp.net MVC. Content of some of the pages just needs to be pulled into a new layout. So I have written a helper method that basically reads asp file and renders contents in the current view. public static string readHtmlPage(string url) ...