form-elements

Zend Framework: is there a way to access the element name from within a custom validator?

I'm writing a custom validator that will validate against multiple other form element values. In my form, I call my custom validator like this: $textFieldOne = new Zend_Form_Element_Text('textFieldOne'); $textFieldOne->setAllowEmpty(false) ->addValidator('OnlyOneHasValue', false, array(array('textFieldTwo', 'textFieldThree'...

What is an alernative for the form select for full versatility in Internet Explorer?

I know Internet Explorer has always been hopeless with styling html <select> with inconsistent or non-existent font sizes, colours, borders, background colours etc so what are some alternatives for creating your own flexible field that is cross-browser compatible? It's fine to require any JavaScript framework such as jQuery etc. I'm thi...

Getting and setting form values client side with javascript, json and jquery

I am building out an ajax enabled UI using webforms in asp.net. I really want this interaction to be extremely light. What I would like to do is make a call to get the data and then bind it to my form client side. Here is my working example. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD...

Zend: Why form elements are not rendered correctly in windows? It was working on ubuntu.

I was working with Zend on Ubuntu and it was working correctly. Now I moved to windows for same project. But now elements of my form are not rendered correctly and their code is appeared on brower's page like this: translate( $this->element->getElement("email")->getLabel() ) ?> Any idea that what is the problem? ...

An html input box isn't being displayed, Firebug says it has style="display: none" but I haven't done this

I have placed a form on a page which looks like this: <form id="editClassList" name="editClassList" method="get" action="EditClassList"> <label> <input name="class-to-add" id="class-to-add" size="42" type="text"> </label> <label> <input name="save-class-btn" id="save-class-btn" value="Save Class(es)" type="su...

What is the jquery equivalent to: document.forms[0].elements[i].value;

What is the jquery equivalent to: document.forms[0].elements[i].value; I don't know how to travel through a form and its elements in JQUERY and would like to know how to do it. ...

How can you print out the values of undeclared HTML form values from a Spring (3) controller action method?

If my HTML form contains two form inputs (input1 and input2), I could access them like this: @RequestMapping(value = "/foo", method = RequestMethod.POST) public String foo(HttpServletRequest request, ModelMap modelMap, @RequestParam(value = "input1") String input1, @RequestParam(value = "input2") String input2) { log...