form

Flash & external form fields

Hey there... Does anybody know if this is possible? I am trying to create a flash movie that will show / preview what I am typing into a field in a normal HTML form. The call to update the flash movie would most likely be attached to an onKeyUp event. Any advice or tutorials would be great cheers! Decbrad ...

drupal multiple node forms on one page

I have a view that displays several nodes. I want to place node form below each displayed node. Both node_add and drupal_get_form directly in template.php works fine, but I get forms with same form ID of NODETYPE_node_form and validation and submitting does not work as expected. If you had to put several node forms on one page, what wou...

form fields clear ???

i want to clear the fields of my form after the user has inserted the data in the database .I have provided a button for that but how to do that please tell me Thanks Ritz ...

Show message box with form entries on submitting the from in asp.net mvc

I have a form which takes multiple inputs from user. Now I wanna show the inputs in a confirmation dialog and submit the form if user clicks OK. CanI use jQuery here?? ...

Getting posted values in MVC PartialView

I've created a PartialView which I render with Html.RenderPartial, passing the name of the view and the strongly-typed data item to bind to (below): <% Html.RenderPartial("SearchViewUserControl", ViewData["SearchData"]); %> The partial view has a form containing a submit button: <% using (Html.BeginForm("Search", "Home")) { %>...

Form Input File type and Database Value

Hi , Not sure if that was the best Title in the world but I hope this part gives you a clearer understanding of what my question is. Basically I need to send a File using a Form to the folder "uploads" from page 1 I then go to page 2 I then need to then send the same file to the database from page 2 Is there a way on page 2 to def...

SESSION with a form file

Hi , Say if I upload a file on page 1 and submit the form How can I make a session with the file which has been uploaded for example how would I get the session to store the file ? ...

multi-dimensional array post from form

i want to know how i can post a multi-dimensional array? basically i want to select a user and selected user will have email and name to sent to post. so selecting 100 users, will have email and name.. i want to get in php like following $_POST['users'] = array(array(name, email), array(name2, email2), array(name3, email3)); any idea...

Dynamic web record

Hi, im trying to build a simple app: Six colums with these values Nr, Name, checkbox 1, checkbox 2, checkbox 3, checkbox 4. The checkboxes are project stages, Im using Mysql to store the data and retrieving it to a webpage with php. My problem is on how to go updating the checkboxes, and also how to filter the results (display onl...

How to change the width of an HTML upload field with CSS?

I can change the width of an upload field with the size attribute: <input type="file" size="20"> But CSS's width, which works fine for regular input fields and other forms controls, seems to have no effect here, even on Firefox: <input type="file" style="width: 20em"> Is there another way to accomplish this? ...

jquery .serializeArray(); add another value on top for passing to ajax

im doing following var data = $(form).serializeArray(); // now i want to add another value on this data data.username = 'this is username'; i want to know how can i add another value after doing serializeArray(), i tried all the things i know, but nothing is getting it to work. any ideas pls. ...

form validation with javascript vs php

Why should I bother to use JavaScript for form validation when I still have to use PHP since the user could have JavaScript support turned off. Isn't it unnecessary? Update: Ok thanks for your answers. it sounds like a good idea to have it on the client side too. where can I download good JavaScript validations? Do you know where I c...

Rails: Receive POST from External Form

I have a form on another website (using a different backend) that I want to be able to POST to my Rails application (on a different domain). How do I generate a valid authenticity token for the external form so that my Rails app will accept it? Assuming I can do the answer to the above question--is there anything else special I need to...

Quantity in amazon cart?

Hi I'd like to change the quantity in an AWS order. I've used the form below and that works fine for adding 1 item to the cart, but when I try to change it to a quantity of 2 it says there are no items in my cart. What am I doing wrong? Thanks. <form method="GET" action="http://www.amazon.com/gp/aws/cart/add.html" id="Quantity"> <in...

How do I call a method in the default instance of a VB.NET Form instead of instantiating another?

When an instantiated class calls a method in the parent form class, VB.NET starts a new instance of the form class instead of calling the method on to the active one! How do I tell it that I have just one instance of my form class, or that I don't want to create a new instance of the form and just call the method on the already active f...

Using CreateWindow and adding buttons and such to it? How?

This is kind of a noob question but I've realized after so long of coding DirectX/OpenGL applications I don't have the feintest of ideas how to create windows with basic form objects like text boxes, labels, command buttons etc. I can create a window using the CreateWindow function just fine, how can I add buttons, command prompts and o...

C# Form Problem: new form losing control and randomly hiding

Hello, I'm encountering strange behavior with forms on a c# 3.5 app. On a button click, my form1 hides itself, creates a new form2, and shows form2. Form1 also contains the event method triggered when form2 closes. Here's the code inside Form1: Form2 form2; void button1_Click(object sender, EventArgs e) { this....

ready event on a posted form

I have a form in an iframe, when this form is posted a file is returned to the user (based on the form information). This file is returned using content-disposition:attachment so that only a file save dialog shows up. I want to do something in javascript once the file has been returned to the user. I tried attaching a $(iframe).ready(); ...

Is there javascript (prefer jquery) library that automatically maps form elements to JSON?

Background: This is something I have been looking for since before even JSON was known as JSON. Suppose you have the following javascript variable inside your code: jsonroot = { 'fname':'valued' ,'lname':'customer' ,faves:['berry','chocolate','mint'] ,actors:[ {'fname':'brad','lname':'pitt'} ,{'fname':...

labels in textarea

<input name="textbox" type="text" value="Click here to type" onfocus="if(this.value=='Click here to type')this.value='';" onblur="if(this.value=='')this.value='Click here to type';"> ..onfocus/onblur work on textfields but not textarea elements. Is there any workaround, using jQuery maybe? ...