Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 21st, 2005, 07:39 AM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default pasteHTML() for mozilla ?


I’m working in a rich text editor (RTE) where I place pictures.
(for that i used iframe and for picture upload i call a new window)

with this code I place picture in iframe

<script language="JavaScript" >
window.opener.document.getElementById("Iframemessa ge").contentWindow.focus();
var htmLink = window.opener.document.getElementById("Iframemessa ge").contentWindow.document.selection.createRange( )
htmLink.pasteHTML('<img src=path/pic.jpg >');
window.opener.document.getElementById("Iframemessa ge").contentWindow.document.execCommand('paste', false,'');
window.close();
</script>

In IE 6 that is working fine.

But problem is that my application is not working in mozilla (because it does not support pasteHTML() method)

can you tell me any other method which works for mozilla ?

farooq
:(

azeem





Similar Threads
Thread Thread Starter Forum Replies Last Post
mozilla/IE 7 differences Adam H-W CSS Cascading Style Sheets 2 July 9th, 2007 04:16 AM
xmlhttprequest - mozilla alexena XML 0 August 23rd, 2006 07:16 AM
XMLHTTP and Mozilla dazzled XML 1 March 10th, 2006 06:22 AM
Mozilla don't support rickytang CSS Cascading Style Sheets 1 September 18th, 2004 03:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.