SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Oct 2, 2007, 20:33 #1
- Join Date
- Aug 2002
- Location
- Wellington, New Zealand
- Posts
- 861
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
FreeTextBox (FTB) in IFRAME never loads in Firefox.
Hi,
Using an the FreeTextBox control inside an IFRAME never completes loading - and as I have some actions to perform once its finished loading this is a real problem.
The lines of code that are causing the problem are:
Code:this.designEditor.document.open(); this.designEditor.document.write("<html" + ((this.textDirection == "rtl") ? " dir='rtl'" : "") + ">" + "<head>" + ((this.designModeCss != '') ? "<link rel='stylesheet' href='" + this.designModeCss + "' type='text/css' />" : "") + ((this.baseUrl != '') ? "<base href='" + this.baseUrl + "' />" : "") + "</head>" + "<body" + ((this.designModeBodyTagCssClass != '') ? " class='" + this.designModeBodyTagCssClass + "'" : "") + ">" + this.StoreUrls(this.htmlEditor.value) + "</body>" + "</html>");
I have no idea why that document.open() line is causing such a problem.
For now I've made these lines conditional to IE as it doesn't seem have a noticable effect on the operation in Firefox.
I would love a fix to this if anyone has one - support at the FreeTextBox site is a bit on the sparse side.
DaleIf you aren't living life on the edge
- you're taking up too much space
Creative Dreaming Ltd / Ask The Local / Amanzi Travel
-
Oct 3, 2007, 05:18 #2
- Join Date
- May 2003
- Location
- Washington, DC
- Posts
- 10,653
- Mentioned
- 4 Post(s)
- Tagged
- 0 Thread(s)
Moved this over to the JavaScript forum where the question is more appropriate.
-
Oct 3, 2007, 15:20 #3
- Join Date
- Aug 2002
- Location
- Wellington, New Zealand
- Posts
- 861
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Adding this line before the block of code show above solves the problem:
Code:this.designEditor.document.open();this.designEditor.document.close(); // Hack to ensure iframe doc is closed correctly
If you aren't living life on the edge
- you're taking up too much space
Creative Dreaming Ltd / Ask The Local / Amanzi Travel
Bookmarks