html-form

get current width of html form using javascript

I want to get the current width of an html form using javascript. I'm writing this in asp.net Form definition: <form id="form1" runat="server"> What I an trying: document.getElementById('form1').style.width Keep producing a runtime error... Any ideas? Thanks! ...

How to force single line in a HTML textarea element?

Is there a way to make a HTML textarea element to allow only one line? I want to do this because I will have a button to expand it, but if user is allowed to enter multiple lines when the textarea is not expanded (only 1 row) it doesn look very nice, and if I use a textbox for the not expanded state, it looks weird when I replace it wit...

checking the password in php?

how can i check if the password is more than 6 letters using php, this is for my registration form. :)) thanks ...

XML <--> HTML Form: Generating HTML form to edit XML?

Hey guys, So I'm trying to write a javascript plugin that involves the editing of XML files in a user friendly fashion. The goal is to receive an XML string representing an object, dynamically generate an HTML form to edit the XML values, then save the changes back into the XML string. Granted this function is generic and useful enough...

HTTP Post with Multiple Checkboxes (RoR)

I'm attempting to write a RoR controller that will post data to a page on behalf of a preexisting form. This form consists of a long list of checkboxes. I use a hash that represents the name => value pairs of the form elements. The problem is that all the checkboxes in the form use the same name but different value. I do not know how to...

RoR: POST to a page using raw form data. How?

Is there a ruby method to POST form data encoded in "x-www-form-urlencoded" as specified here? http://www.w3.org/MarkUp/html-spec/html-spec_8.html I am aware of Net::HTTP.post_form, but because I have several values to post which share the same name I can't use a hash, which is required by that method. To clarify, I have a string of th...