"Name" property in HTML5

thread: 1 message  |  last: a year ago  |  started: wednesday, march 13, 2013, 11:31 am pdt


#1  |  tracya
Wednesday, March 13, 2013, 11:31 AM PDT

Since the name property is deprecated in HTML5, I thought I could go in and change the GetControlHTML() functions in the classes in qcodo/_core/qform .

It worked - mostly.

But with the QTextBox, it would return its Text as “" (or null?) every time I used a QServerAction to submit the form.

For example - (this is in QTextBoxBase.class.php, starting on line 174 - default text mode - this is included with framework and works):

default:
    $strToReturn = sprintf('<input type=“text” name=“%s” id=“%s” value=“' . $this->strFormat . '” %s%s />',
   $this->strControlId,
   $this->strControlId,
   QApplication::HtmlEntities($this->strText),
   $this->GetAttributes(),
   $strStyle);

This - does not work (removing the name property and its associated string):
default:
    $strToReturn = sprintf('<input type=“text” id=“%s” value=“' . $this->strFormat . '” %s%s />',
   $this->strControlId,
   QApplication::HtmlEntities($this->strText),
   $this->GetAttributes(),
   $strStyle);

I searched the assets/js/_core for getElementByName and didn't find it.  

Can you help me think of where to look/what might be causing this?



Copyright © 2005 - 2014, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.