Yii Framework Forum: [Extension] EAutoGrowTextArea - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Extension] EAutoGrowTextArea Rate Topic: -----

#1 User is offline   sebas 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 497
  • Joined: 28-October 08
  • Location:Buenos Aires, Argentina

Posted 25 December 2008 - 01:30 PM

Just an autogrow textArea widget

http://www.yiiframew...togrowtextarea/

Please use thise thread to post your bug reports.
0

#2 User is offline   Ascomae 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 49
  • Joined: 01-January 09
  • Location:Germany

Posted 03 January 2009 - 06:05 PM

Thanks for the widget.

But I think there are some bug in this widget:

This works
<?
$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea",
array('value'=>"Content", 'name'=>"Name1", 'maxHeight'=>300, 'lineHeight'=>16)
);
?>



This not

<?
$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea",
array('model'=>$model, 'attribute'=>"email", 'maxHeight'=>300, 'lineHeight'=>16)
);
?>



The second one shows the default Textarea

<textarea name="User[email]" id="User_email">ckuetbach@gmail.com</textarea>


<textarea name="Name1" id="Name1">Content</textarea>

This Script is generated:
<script type="text/javascript">
/*<![CDATA[*/
jQuery(document).ready(function() {
$("#User_email").autogrow({
maxHeight: 300,
minHeight: 50,
lineHeight: 16
});
$("#Name1").autogrow({
maxHeight: 300,
minHeight: 50,
lineHeight: 16
});

});
/*]]>*/
</script>


Looks good, but don't work.
Where is the error?



Second problem:
$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", 
array('name'=>"test", 'maxHeigh'=300, 'lineHeigh'=30));

will not work, should be:
$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", 
array('name'=>"test", 'maxHeigh'=>300, 'lineHeigh'=>30));



Regards,
Christian
0

#3 User is offline   sebas 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 497
  • Joined: 28-October 08
  • Location:Buenos Aires, Argentina

Posted 06 January 2009 - 01:25 PM

I'm not with my computer right now, I'll test it later and fix the errors :D
0

#4 User is offline   sebas 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 497
  • Joined: 28-October 08
  • Location:Buenos Aires, Argentina

Posted 07 January 2009 - 12:37 PM

Quote

Thanks for the widget.



But I think there are some bug in this widget:



This works

<?
$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea",
array('value'=>"Content", 'name'=>"Name1", 'maxHeight'=>300, 'lineHeight'=>16)
);
?>






This not


<?
$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea",
array('model'=>$model, 'attribute'=>"email", 'maxHeight'=>300, 'lineHeight'=>16)
);
?>






The second one shows the default Textarea


<textarea name="User[email]" id="User_email">ckuetbach@gmail.com</textarea>


<textarea name="Name1" id="Name1">Content</textarea>


This Script is generated:

<script type="text/javascript">
/*<![CDATA[*/
jQuery(document).ready(function() {
$("#User_email").autogrow({
maxHeight: 300,
minHeight: 50,
lineHeight: 16
});
$("#Name1").autogrow({
maxHeight: 300,
minHeight: 50,
lineHeight: 16
});

});
/*]]>*/
</script>




Looks good, but don't work.

Where is the error?







Second problem:

$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", 
array('name'=>"test", 'maxHeigh'=300, 'lineHeigh'=30));


will not work, should be:

$this->widget("application.extensions.uiautogrow.EAutoGrowTextArea", 
array('name'=>"test", 'maxHeigh'=>300, 'lineHeigh'=>30));






Regards,

Christian


I test both and can't reproduce the error. Could you send me your files to see it.

The second, yes, fast typing error, i've updated here and at the extensions directory.

Thanks!
0

#5 User is offline   sebas 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 497
  • Joined: 28-October 08
  • Location:Buenos Aires, Argentina

Posted 07 January 2009 - 02:16 PM

Updated version 1.0.1

With phpdoc comentaries.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users