DHTML Forum  

Go Back   DHTML Forum > dhtmlcentral.com > Crossbrowser DHTML
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06.05.2005, 20:32
khs khs is offline
Neuer Benutzer
 
Join Date: 06.05.2005
Location: Norway
Posts: 3
Default

Anybody know how to make a script where the textarea would expand rather than display a scroller? like overflow:visible; would do in IE

thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 06.05.2005, 21:16
khs khs is offline
Neuer Benutzer
 
Join Date: 06.05.2005
Location: Norway
Posts: 3
Default

forget it... i figgured it out
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07.05.2005, 09:48
Mark Mark is offline
Erfahrener Benutzer
 
Join Date: 28.02.2002
Location: Netherlands
Posts: 2.853
Default

Hmm, care to share the answer with us?

- [url="http://novemberborn.net/"]Mark[/url:aozzibk2gv]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08.05.2005, 01:59
Tim Scarfe Tim Scarfe is offline
Erfahrener Benutzer
 
Join Date: 14.05.2001
Location: United Kingdom
Posts: 1.015
Default

There is something in fogbugz that does this:

[code:it8kbvdtxh]
function giveFocus ()
{
if (document.all) // IE only
formWithProject.sEvent.focus();
}

function adjustRows (textarea)
{
bUserTyped = true;
if (document.all) // IE only
{
var bGrew = false;
while ((textarea.scrollHeight > textarea.clientHeight) && (textarea.rows < 30))
{
textarea.rows += 3;
bGrew = true;
}
if ( bGrew )
textarea.scrollTop = 0;

}
else
{
var rgLines = textarea.value.split('\n');

var nRows = 1;
for ( var i=0; i<rgLines.length; i++ )
{
if ( rgLines[i:it8kbvdtxh].length > 80 )
nRows += Math.ceil(rgLines[i:it8kbvdtxh].length/80);
}
nRows += rgLines.length;
if ( nRows > 8 )
textarea.rows = Math.min(nRows, 30);
}
}
[...]

<textarea class="bug"
name="sEvent"
id="sEvent"
accesskey="0"
rows="8"
cols="55"
wrap="virtual"
onblur="showHelp('');"

onkeypress="handleSnippetTargetKeypress(this,event );"

onkeyup="adjustRows(this); giveFocus();"
onfocus="adjustRows(this); giveFocus(); showHelp('sEvent'); "

></textarea>
[/code:it8kbvdtxh]

I thought it was pretty sweet actually

Ignore the shit about "handleSnippetTargetKeypress" (and "showHelp")that is another feature in fogbugz

Works great in IE haven't tested it in shitfox though, looks like it would work

--
Regards,
Tim Scarfe <dc@developer-x.com>
http://www.developer-x.com
http://www.dotnetsolutions.ltd.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08.05.2005, 11:58
Mark Mark is offline
Erfahrener Benutzer
 
Join Date: 28.02.2002
Location: Netherlands
Posts: 2.853
Default

Using FogBugz, Tim? Using a web-app to do your bugtracking?

- [url="http://novemberborn.net/"]Mark[/url:eg0e05or99]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08.05.2005, 16:39
Tim Scarfe Tim Scarfe is offline
Erfahrener Benutzer
 
Join Date: 14.05.2001
Location: United Kingdom
Posts: 1.015
Default

err. well. yes actually.

clients love that sort of shit anyway, gotta admit, I kinda love it too.

--
Regards,
Tim Scarfe <dc@developer-x.com>
http://www.developer-x.com
http://www.dotnetsolutions.ltd.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 09.05.2005, 09:11
Mark Mark is offline
Erfahrener Benutzer
 
Join Date: 28.02.2002
Location: Netherlands
Posts: 2.853
Default

Oh man, the irony. Man hates Apple, buys an iPod. Man hates web-based software, uses FogBugz, from the guy who actually wrote an article stating web-based software is the future. The irony!

But hey, as long as the clients pay, who cares?

- [url="http://novemberborn.net/"]Mark[/url:xyq6j31xvy]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 09.05.2005, 11:01
Tim Scarfe Tim Scarfe is offline
Erfahrener Benutzer
 
Join Date: 14.05.2001
Location: United Kingdom
Posts: 1.015
Default

Who says I hate web based software? Don't know where you got that one from. Writing web applications was always my speciality until quite recently.

The rich vs reach argument is very valid today but I do believe the future is smart client (for applications). I'm totally buying the Microsoft Longhorn strategy.

--
Regards,
Tim Scarfe <dc@developer-x.com>
http://www.developer-x.com
http://www.dotnetsolutions.ltd.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 09.05.2005, 15:58
Chris Chris is offline
Erfahrener Benutzer
 
Join Date: 26.10.2001
Location: United Kingdom
Posts: 1.898
Default

this Longhorn strategy being make windows XP a little more like a new linux-based OS and add some enhancements that apple have already implemented?

[url="http://chrispoole.com"]Chris[/url:mmjir3x95d]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 10.05.2005, 00:21
Tim Scarfe Tim Scarfe is offline
Erfahrener Benutzer
 
Join Date: 14.05.2001
Location: United Kingdom
Posts: 1.015
Default

fuck it just deleted my rant. Really don't care.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT +2. The time now is 08:01.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.