[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: iframe problem



The following code seems to work for me. For future reference, if you post code, people can help you more quickly.
Cheers.
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
<html>
<head>
 <title>Untitled</title>
</head>
 
<body>
 
<form action="">
<textarea cols="20" rows="5" name="theTextArea" id="theTextArea" onblur="document.frames.theIframe.document.write(this.value);"></textarea>
</form>
 
<iframe id="theIframe"></iframe>
 
</body>
</html>
-----Original Message-----
From: hita modi [mailto:hmodi_99@yahoo.com]
Sent: Monday, January 28, 2002 7:16 AM
To: ajug-members@www.ajug.org
Subject: iframe problem

hi all,

i have one application where in i want to toggle data between textarea and iframe. i.e once i click data is seen in textarea and when i click again data from textarea should transfer to iframe...

now my problem its working up to the data in the textarea is in a single line i.e data entered without pressing enter key... so when a enter is pressed and i click to view the same data in iframe it gives string unterminated error.. as i use iframename.document.write to display data initially in the iframe...

plz..... its urget.........

hita



Do You Yahoo!?
Yahoo! Auctions Great stuff seeking new owners! Bid now!