Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Cvs P5ee > [svn:p5ee] r953...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 527 of 720
Post > Topic >>

[svn:p5ee] r9534 - p5ee/trunk/App-Widget/lib/App/Widget

by spadkins@[EMAIL PROTECTED] May 9, 2007 at 08:34 AM

Author: spadkins
Date: Wed May  9 08:34:26 2007
New Revision: 9534

Modified:
   p5ee/trunk/App-Widget/lib/App/Widget/TextField.pm

Log:
Added readonly logic.



Modified: p5ee/trunk/App-Widget/lib/App/Widget/TextField.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/Widget/TextField.pm	(original)
+++ p5ee/trunk/App-Widget/lib/App/Widget/TextField.pm	Wed May  9 08:34:26
2007
@[EMAIL PROTECTED]
 -83,17 +83,19 @[EMAIL PROTECTED]
 
 sub unstyled_html {
     my $self = ****ft;
-    my ($name, $value, $html_value, $html, $var, $size, $maxlength,
$tabindex);
+    my ($name, $value, $html_value, $html, $var, $size, $maxlength,
$tabindex, $readonly);
     $name = $self->{name};
     $value = $self->fget_value();
     $html_value = $self->html_escape($value);
     $size = $self->get("size");
     $maxlength = $self->get("maxlength");
     $tabindex = $self->get("tabindex");
+    $readonly = $self->get("readonly");
     $html = "<input type=\"text\" name=\"${name}\"
value=\"$html_value\"";
     $html .= " size=\"$size\"" if ($size);
     $html .= " maxlength=\"$maxlength\"" if ($maxlength);
     $html .= " tabindex=\"$tabindex\"" if ($tabindex);
+    $html .= " readonly=\"$readonly\"" if ($readonly);
     $html .= "/>";
     $html;
 }
 




 1 Posts in Topic:
[svn:p5ee] r9534 - p5ee/trunk/App-Widget/lib/App/Widget
spadkins@[EMAIL PROTECTED  2007-05-09 08:34:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 12:29:41 CDT 2008.