forms

How can I highlight spaces with jquery?

I have an input textfield that has segmented chinese words(usually they are all squashed together). I want to highlight the space between the words, on the fly(So in other words if i type a space between 你好 the space between the characters would be red) When I submit the text however I want to only submit the chinese with the spacing, no...

Is there any equivalent in jquery for prototype serialize()

hi I am trying to pass form's data to jquery ajax request. i find easy way for prototype $('formid').serialize() which will reqturn a string with all elements name and their value inside that form, ready for ajax request in a handy way. that's easy. so is there any equivalent in jquery? ...

Finding checkbox value, writing to XML result

Hi, I'm creating a weekly HTML email writing template (hence the weird file name) and I'm using ASP and XML as the backend. The XML is prefect but the ASP isn't.. What I'm going for here is to create an XMl node that has a value of notchecked and checked depending on if the checkbox on the form is checked or not. I've tried using If ...

ASP.net c# question on forms

Trying to create a simple form: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="AlphaPack._Default" MasterPageFile="MasterPages/Main.master" title="Hi there!" %> <script runat="server"> public void regSubmit() { statusLabel.Text = "Submitted!"; } </script> <asp:content ...

Returning a value from an iFrame in a popup to its parent window

Okay, ridiculously simple question, but it is doing my head in so any help would be appreciated! I need to return a value to a form field, the value is returned in an iframe that is in a popup window. So, I was thinking something along the lines of window.top.parent.form.field.value = 'new value' But that just gives me an error, any...

Multiple forms problem

I have 2 forms one after another, but the second one is not posting at all. Everything works fine except the submitting. Can I have 2 forms like this? <form action="getRates.php" name="rates" method="post" onSubmit="popupform(this, 'join')"> <table style="width: 216px"> <tr> ...

PHP will echo $_POST data, but won't let me store it

Okay, weird problem. I have the following php code: <?php $identifier = $_POST['DEPT']; function displaydata(){ return $identifier; } ?> HTML CODE HERE <?php echo displaydata(); ?> This results in a blank page. However, when I replace function displaydata(){ return $identifier; } with function displaydata(){ return $_P...

PHP form to excel mailer

While I do understand php, I'm more of a sysadmin than a programmer. Add that I really hate HTML and never used AJAX nor javascript :) I'll have to do a php page that gets data from an HTML form and sends it as an Excel attachment via email. Of course I'd like to reuse as much code as possible from already-made solutions. It's kind of "...

javascript undefined error from form input radio button

I have a pop up window which lists images using a form and radio buttons. When i click a radio button, the function is called which should pass back to the parent window. I keep getting 'undefined' as the value which means to me that the variable hasn't been set. How do i get around this error? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTM...

How to turn a html form into a complex JavaScript object

Is there a way to turn a form into a complex JavaScript object based some structured form? Now, I have no idea if this should be done in a better way, but basically I want something like this: <form> <input name="Foo" value="1" /> <input name="Parent.Child1" value="1" /> <input name="Parent.Child2" value="2" /> </form> and I...

KO3 - Kohana 3 - How can I pass $_POST data from a controller/action back to the view/form that called it?

Hey everyone, I am trying to validate a form submission in Kohana 3. I have the form::open point to my action_create in my controller which successfully validates the data posted to it from the form in my view. If the data passes validation, a new item is created as intended, and the user is redirected to the item that was just creat...

Ruby on Rails: How to populate an array using a form?

[noob disclaimer] So I'm beginning with rails and I'm trying to have a form that adds toppings to a food order. How can I make a form that for each checkbox 'ticked' the submission will add that topping to the array of ordered toppings to that food? ...

checkboxes with jquery validity.

There seems to be a problem in FF when you use jquery.validty.js to validate my forms. If I'm validating a checkbox or radio btn the X image doesn't show up. It works in safari but I haven't tried IE. Has anyone had this problem? <html> <head> <title>Simple</title> <link type="text/css" rel="Stylesheet" href="css/jquery.validity...

Ruby/Mechanize Multipart Form With File Upload to a Mediawiki

I've been trying to write a ruby script using mechanize to batch upload a large number of images to a MediaWiki. The script runs without any errors but I suspect there is something wrong with the way I'm handling multipart forms with mechanize. The result variable at the end of the code gives no indication of success or failure, it just ...

Extracting value from Form Date Element on Submit

I'm writing a Drupal module and have run into what should be a trivial problem; Consider a 'Person' type node which includes a 'Date of Birth' property. I've configured the database table to use an int field to store the date in UNIX format (same as Drupal Core) but of course I need to provide a method for the user to specify the value ...

symfony : Problem 'Integrity constraint violation' with primary key

Hello, When I want to create a new object with one of my form, Doctrine take me an error : Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY' Creating worked previously, but I don't know what I have change to have an error now. My schema for ID : Logement: connection: doctrine actAs: [Timestampable] ta...

json call and forms authentication time out

I am making a ASHX handler call to get JSON object. How do I handle or redirect user to login page if forms authentication times out when calling ashx handler page? ...

How to prevent HTML form reset

I have a form where everything is supposed to be disabled on load except the first field. The first field is an autocomplete input. When they select something from it, it goes disabled, and then sets the second field to be enabled. The second field is a dropdown. The problem is, after a user uses the form and clicks the back button, i...

Redirect to controller with multiple parameters on Grails

Hi All, I am developing a web app in Grails and I need to redirect my current page to another controller, passing to it multiple parameters. The exact scenario will be to have a from with multiple SELECT menus and have on them all a call to this controller on their "onChange" property, passing to it the current value of all the SELECT ...

vc++ forms designer

im using vc++ forms. i created a textbox, im trying to get the value in it i used textBox1->Text. all im trying to do is this create a file name text.txt than write in side the file what is inside the textBox1. here the code private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { Help::ShowPopu...