Google Answers Logo
View Question
 
Q: Javascript / DHTML question ( No Answer,   2 Comments )
Question  
Subject: Javascript / DHTML question
Category: Computers > Programming
Asked by: marcfest-ga
List Price: $200.00
Posted: 01 Sep 2005 10:51 PDT
Expires: 07 Sep 2005 08:36 PDT
Question ID: 563153
Please take a look at http://www.onlinehomebase.com/sample.html. Note
how the text areas underneath each date in Windows IE automatically
expand in height as text is entered.

This effect is achieved by the code and javascript file referenced below. 

I would like to have it so that text areas adjust automatically also
when the Safari browser on an Apple computer is used.

As an answer to this posting, please supply a revised sample.html and,
if needed, as revised adjustablerowstextarea.js so that page shows the
desired behavior in Safari.

Thank you.

Marc 


Code:



<script type="text/javascript" src="js/adjustablerowstextarea.js"></script>
<script type="text/javascript">

function initAllRowTextAreas() {
	var tas = document.getElementsByTagName("TEXTAREA");
	var l = tas.length;
	for	(var i = 0; i < l; i++)
		new AdjustableRowsTextArea(tas[i]);
}

if (window.addEventListener) {
	window.addEventListener("load", initAllRowTextAreas, false);
}

</script>
Answer  
There is no answer at this time.

Comments  
Subject: Re: Javascript / DHTML question
From: cbrookes-ga on 07 Sep 2005 07:29 PDT
 
I have tested your site on Safari 1.3 (v312) and it appears to do what
you want it to do without any further modification.
Subject: Re: Javascript / DHTML question
From: marcfest-ga on 07 Sep 2005 08:36 PDT
 
Yes, I had already found a solution. Sorry. Need to cancel this.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy