aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Initial Text Content for an IFrame - Firefox issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Initial Text Content for an IFrame - Firefox issue" Watch "Initial Text Content for an IFrame - Firefox issue" New topic
Author

Initial Text Content for an IFrame - Firefox issue

marten kay
Ranch Hand

Joined: Feb 03, 2007
Posts: 178

Hi

I am creating a simple text editor using designMode that targets the FireFox browser, but I am having trouble initializing content for a dynamically created iFrame in FireFox as shown with the code below.

In Opera, the code below shows "DynamicIframe" and "StaticIframe" on the page - but in FireFox the "DynamicIframe" does not show.

How can I place text within a dynamically created iFrame using Javascript that works in FireFox?

Thanks



I have also attempted creating a new textnode and appending that - this also does not work in firefox

PS. I am targeting FireFox because FireBug is good for development, Firefox is more standard compliant than IE, and I can specify that users use FireFox for the functionality that I am developing


when in doubt put it in parenthesis and stick a dollar sign in front of it, only good can come from this.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
http://www.ajaxload.info/

Eric
marten kay
Ranch Hand

Joined: Feb 03, 2007
Posts: 178

Sorry Eric - but the link between my query and the site ajaxload.info/ seems a bit obscure to me - have I missed something?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Whoops replied to the wrong thread...

Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Reason why you are recreating the wheel and not using something like fckEditor or YUI Editor?

I am not sure why your cde is not working. Try setting the src to "javascript:" or "about:blank" or a blank html page and see if it makes a difference.

Eric
marten kay
Ranch Hand

Joined: Feb 03, 2007
Posts: 178

OK thanks.

I ended up inserting the DOJO editor into my project today. It does the job but not ideal.

The established editors are too highly developed and difficult to 'tune down' to my needs. In my application I have an arbitrary amount of user created editable divs in which I would like the user to be be able to edit the text also, with some basic formatting such as bold etc. The way I used DOJO today is to have the user double click on an editable div to have the DOJO editor come up as a pop up - communicating through the getValue and setValue methods with the editable div. It will do for the time being.

I also did some more research and designMode is a bit crazy across the browsers

Cheers

Marten
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Initial Text Content for an IFrame - Firefox issue