Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Initial Text Content for an IFrame - Firefox issue

 
marten kay
Ranch Hand
Posts: 178
Java jQuery Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.ajaxload.info/

Eric
 
marten kay
Ranch Hand
Posts: 178
Java jQuery Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whoops replied to the wrong thread...

Eric
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 178
Java jQuery Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic