473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Trying to make an IFrame or DIV look like a textarea

I'm trying to make either an IFrame or a DIV look 'exactly' like a
textarea. The problem I've run into with IFrames is not being able to
replace the 3D recessed border with a single pixel border. I've
illustrated a textarea and an IFrame in the HTML sample below which
shows my problem. I am willing to use a DIV but I do need the ability
to change the contents of the DIV using innerHTML as well.

Any suggestions? I've tried border="1", etc. to no avail.

Thanks,
Cliff.
de*******@gmail.com

<html>
<head>
<title></title>
</head>
<body>
<FORM>
<TEXTAREA STYLE='height:300px;width:200px'>
</TEXTAREA>
</FORM>
<IFrame src="about:blank" frameborder="1"
STYLE="height:300px;width:200px"></IFRAME>
</body>
</html>

Jul 24 '05 #1
1 5242
In article <11**********************@f14g2000cwb.googlegroups .com>,
de*******@gmail.com enlightened us with...
I'm trying to make either an IFrame or a DIV look 'exactly' like a
textarea.


A textarea looks different on different browsers and OSs. It can be styled
with CSS, too.
Which one were you trying to emulate? ;)
You might do better posting this to
comp.infosystems.www.authoring.stylesheets...

And you can change the content of a div with either innerHTML or by using DOM
methods. That would be more a comp.lang.javascript question, though.

--
--
~kaeli~
Found God? If nobody claims Him in 30 days, He's yours to
keep.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 24 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Reply Via Newsgroup | last post by:
Folks, I have a cell in a table that has an IFRAME - The IFRAME is empty (ie it has no source tag) but it does have a name (myFrame) and id (also called myFrame). I can write data to the...
15
by: Aaron Gray | last post by:
<iframe name="iframe" width="100%" height="25%" src="test1.txt"> </iframe> <a href="test1.txt" target="input">one</a> <a href="test2.txt" target="input">two</a> <form name="form1"> <textarea...
0
by: Adrian | last post by:
I want to send some innertext from a textarea on my document to a textarea control on a form within an iframe and then submit the form in the document in the iframe. I managed to get the text...
1
by: acemtp | last post by:
Hello, Do you know a dynamic way to send 10kb of text or more using an iframe? I tried to do that with by creating, in javascript, a dynamic iframe, then create a form into this iframe and put...
1
by: keepthedistance | last post by:
Hi guys... I have a problem.... I have a HTML page who contain a form with a textarea box with TinyMCE editor and an iframe where i have listed the all images i have uploaded. I want to write in...
0
by: tequilamala | last post by:
I have an Iframe in one of the pages i am developing... the iframe is suppose to scroll up and down and the links target the iframe. the problem is that the iframe scrolls side to side on internet...
2
by: olddocks | last post by:
i am planning on kind of editor by replacing the textarea with iframe so that i could edit the content with rich html. I am facing weird problem and i cannot set the value of iframe innerHTML with...
23
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.