Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: IFRAME urgent


Message #1 by "Amardeep Kanwar" <amardeep@h...> on Wed, 24 Jul 2002 22:13:03
hi, 

here is the majic solution:

var hline = showModalDialog("hline.html","","dialogWidth:320px; 
dialogHeight:200px; status:no; help:no");
if (hline != null){
	idContent.focus();
        var hr = idContent.document.selection.createRange();
	hr.pasteHTML(hline);
}

thanks

amardeep

> so do you mind sharing the solution also?

-----Original Message-----
From: Amardeep Kanwar [mailto:amardeep@h...]
Sent: Thursday, July 25, 2002 5:30 AM
To: JavaScript HowTo
Subject: [javascript_howto] Re: IFRAME urgent


> hi,

> i am trying to add some text in the iframe however, when i try to add 
s> omething it erases the previous text and overwrites the new one.

> is there someway, i can find where the cursor is in the iframe and then 
p> aste my text in that place. Any help would be really appreciated.

> Thanks

> Amardeep 

hi,

thanks everybody, i found the solution. So don't worry replying to this 
post.

thanks anyway

amardeep

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
---
Change your mail options at http://p2p.wrox.com/manager.asp or 
to unsubscribe send a blank email to

************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

  Return to Index