473,606 Members | 2,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:3 00px;width:200p x'>
</TEXTAREA>
</FORM>
<IFrame src="about:blan k" frameborder="1"
STYLE="height:3 00px;width:200p x"></IFRAME>
</body>
</html>

Jul 24 '05 #1
1 5253
In article <11************ **********@f14g 2000cwb.googleg roups.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.infosystem s.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.javas cript 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
2341
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 frame, but cannot append to it - I know I could put a textarea form box in there, however that is my least prefered route in part because I have such little control over the display of the contents that appears inside a <textarea> are box.
15
20541
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 name="textarea" cols=80 rows=18> This is a test </textarea><br>
0
1257
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 across using this javascript: document.getElementById ("submitter").document.getElementById ("NewComment").innerText=document.getElementById ("NewComment").innerText;
1
1796
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 the data in a textarea and then call a sumbit(). It looks nice and works on IE and FF but *not* on opera. In opera, we cannot modify the content of an iframe for security reason. (as you can
1
2285
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 textarea (parent frame) the name of the image on iframe when I clicked. Please .. if anyone know or help me... Thnkx ... Stephan
0
7766
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 explorer but not on firefox. I dont want it to scroll sideways. in index.htm the iframe is at the bottom of the code. index.htm <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">...
2
3778
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 the value of textarea while loading. The idea is hide the textarea after moving the value to iframe rich text editor. what could be the problem. here is the code var myeditor;
23
6571
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 use it? IE5 or IE6? Thanks
0
8016
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8440
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8431
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8306
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5966
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5466
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1557
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1300
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.