FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Increase Text box size
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Increase Text box size [message #25475] Thu, 09 June 2005 11:22 Go to next message
esm2002 is currently offline  esm2002   United States
Messages: 339
Registered: May 2002
Location: Atlanta Georgia
Karma: 0
Senior Member
While I am no fan of vB, their latest version has a nice feature. It allows you to increase and decrease the size of the text box that your are typing in.

It does come in handy when typing anything more than just a small

Any idea about incorporating a feature like that in FUDForum?


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Re: Increase Text box size [message #25479 is a reply to message #25475] Thu, 09 June 2005 13:32 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
How does it work?

FUDforum Core Developer
Re: Increase Text box size [message #25488 is a reply to message #25479] Thu, 09 June 2005 14:27 Go to previous messageGo to next message
esm2002 is currently offline  esm2002   United States
Messages: 339
Registered: May 2002
Location: Atlanta Georgia
Karma: 0
Senior Member
just click on a hyperlink. must use some javascript but I didn't see anything in the source

<a href="#" onclick="return alter_box_height('message', 100)">Increase Size</a>
<a href="#" onclick="return alter_box_height('message', -100)">Decrease Size</a>


I was able to click until i saw the entire msg. but I could still click it more and expand the box. Didn't seem to have an upper limit.

really does allow you to see all of what you tpye instead of just scrolling thru a small portion.

see attached pics
  • Attachment: before.jpg
    (Size: 59.15KB, Downloaded 1586 times)
  • Attachment: after.jpg
    (Size: 90.31KB, Downloaded 1561 times)


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Re: Increase Text box size [message #25495 is a reply to message #25488] Thu, 09 June 2005 20:19 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Here is a quick and dirty, but working example:

<FORM>
  <TEXTAREA NAME=message style="height:100px;"></TEXTAREA>
</FORM>

<font size=-2>
  <a href="#" onclick="return alter_box_height('message', 100)">Increase Size</a>
  <a href="#" onclick="return alter_box_height('message', -100)">Decrease Size</a>
</font>

<script type="text/javascript">
function alter_box_height(objname, inc) {
  var obj = document.all[objname];
  obj.style.height = parseInt(obj.style.height) + inc + "px";
}
</script>


Best regards.

Frank
Re: Increase Text box size [message #25499 is a reply to message #25479] Fri, 10 June 2005 11:38 Go to previous messageGo to next message
esm2002 is currently offline  esm2002   United States
Messages: 339
Registered: May 2002
Location: Atlanta Georgia
Karma: 0
Senior Member
So, is this feature that you might add?

Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Re: Increase Text box size [message #25502 is a reply to message #25499] Fri, 10 June 2005 15:27 Go to previous messageGo to next message
Ilia is currently offline  Ilia   United States
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Yes, although the solution I've been able to come up with is implemented slightly differently but the result is the same. Expect a commit to this affect in the comming days.

FUDforum Core Developer
Re: Increase Text box size [message #25506 is a reply to message #25502] Fri, 10 June 2005 18:05 Go to previous messageGo to next message
Ilia is currently offline  Ilia   United States
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Added to CVS, here is the patch:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=3568

P.S. if anyone can design small icons for those buttons, it'd be great.


FUDforum Core Developer
Re: Increase Text box size [message #25521 is a reply to message #25506] Sat, 11 June 2005 06:36 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Hi,

There is a bug in Konqueror that prevents this from working properly. I've uploaded the following test case to the KDE Bug Tracking System: http://bugs.kde.org/attachment.cgi?id=11398&action=view

Please vote for this to be fixed at http://bugs.kde.org/show_bug.cgi?id=64263

Best regards.

Frank
Re: Increase Text box size [message #25535 is a reply to message #25521] Sun, 12 June 2005 17:13 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I've changed the code to a more cross-browser friendly version, based on your idea.

FUDforum Core Developer
Re: Increase Text box size [message #25538 is a reply to message #25535] Sun, 12 June 2005 20:13 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
The new patch doesn't work with Firefox nor Konqueror. I don't have time to look at it right now - will have another look tomorrow.

From JavaScript Console:
ERROR: document.all has no properties - file: lib.js

Best regards.

Frank
Re: Increase Text box size [message #25774 is a reply to message #25538] Tue, 21 June 2005 05:46 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Hi Ilia,

Great, I've noticed that you fixed the JavaScript code in patch 3575.

Also, a patch is now available for the Konqueror bug mentioned earlier.

The new buttons are an improvement (although I'm not quite sure that they fit well into the default theme).

Best regards.

Frank
Re: Increase Text box size [message #25798 is a reply to message #25774] Tue, 21 June 2005 21:18 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Consider using these icons, they are less intimidating and should fit the design better:

index.php?t=getfile&id=2098&private=0index.php?t=getfile&id=2099&private=0index.php?t=getfile&id=2100&private=0index.php?t=getfile&id=2102&private=0

Please let me know if we need to change the color, transparency or anything else.

Best regards.

Frank
Re: Increase Text box size [message #25803 is a reply to message #25798] Wed, 22 June 2005 02:57 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Thanks, the images were updated.

FUDforum Core Developer
Re: Increase Text box size [message #26069 is a reply to message #25803] Sun, 03 July 2005 22:03 Go to previous messageGo to next message
BobB is currently offline  BobB   United States
Messages: 165
Registered: April 2005
Location: Tucson, AZ
Karma: 0
Senior Member
I've updated to version 2.6.14RC2 and the arrows now appear next to the text box. They only function using IE, not when using Mozilla Firefox. They function on THIS forum using Mozilla Firefox, but not on my forum.
Re: Increase Text box size [message #26076 is a reply to message #26069] Mon, 04 July 2005 03:57 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
They work just fine for me in Firefox, perhaps they conflict with your custom changes in Firefox...
There is clearly no problem with the functionality itself.


FUDforum Core Developer
Re: Increase Text box size [message #26080 is a reply to message #26076] Mon, 04 July 2005 04:15 Go to previous messageGo to next message
BobB is currently offline  BobB   United States
Messages: 165
Registered: April 2005
Location: Tucson, AZ
Karma: 0
Senior Member
Ilia wrote on Sun, 03 July 2005 22:57

They work just fine for me in Firefox, perhaps they conflict with your custom changes in Firefox...
There is clearly no problem with the functionality itself.


As I said, they work fine on this forum using Firefox (using it now). They do not work on my forum using Firefox. I'm using the same browser with the same settings for both.

Try it yourself. Using Firefox, go to:

http://www.HummerNetworkForums.com

I've just set read/post permissions for anonymous users in the Test Forum to "Yes". Select New Topic and try to use the arrows.
Re: Increase Text box size [message #26083 is a reply to message #26080] Mon, 04 July 2005 13:22 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I've tried and it works fine on my firefox on your forum.

FUDforum Core Developer
Re: Increase Text box size [message #26100 is a reply to message #26083] Mon, 04 July 2005 22:10 Go to previous messageGo to next message
Anonymous   United States
Ilia wrote on Mon, 04 July 2005 09:22

I've tried and it works fine on my firefox on your forum.


I heard from one user who says it works with Firefox on one of his computers but not the other. In my case, I'm using the same Firefox browser on the same computer, changing nothing, and it works for me here but not on ours. It can't be browser settings.

It works for me using the obsolete Firebird (predecessor of Firefox) and with IE. Just not with Firefox.

I just noticed that the right and left arrows work for me here on this forum using Firefox, but the up and down arrows do not.

It's very strange.
Re: Increase Text box size [message #26102 is a reply to message #26100] Mon, 04 July 2005 22:18 Go to previous messageGo to next message
BobB is currently offline  BobB   United States
Messages: 165
Registered: April 2005
Location: Tucson, AZ
Karma: 0
Senior Member
Oops, I didn't realize I wasn't logged in. The reply from Anonymous above was from me.
Re: Increase Text box size [message #26103 is a reply to message #26102] Mon, 04 July 2005 22:46 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Well I cannot replicate the problem, there no JavaScript errors either, so believe it or not this is not a forum problem.

FUDforum Core Developer
Re: Increase Text box size [message #26106 is a reply to message #26103] Mon, 04 July 2005 23:20 Go to previous message
BobB is currently offline  BobB   United States
Messages: 165
Registered: April 2005
Location: Tucson, AZ
Karma: 0
Senior Member
Ilia wrote on Mon, 04 July 2005 17:46

Well I cannot replicate the problem, there no JavaScript errors either, so believe it or not this is not a forum problem.


Believe it or not, I just tried it with Firefox again and it works fine! All 4 arrows, too! The up and down arrows still don't work for me here.

There must just be something flaky about Firefox's javascript functioning.

Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Member passwords
Next Topic: Merge Topic Control Panel
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 10:00:48 GMT 2024

Total time taken to generate the page: 0.02858 seconds