Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6089277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:04:53+00:00 2026-05-23T12:04:53+00:00

I am using: FireFox 4.0 jquery 1.5.1 jquery UI 1.8.13 HTMLBox 4.0.3 My javascript

  • 0

I am using:

FireFox 4.0
jquery 1.5.1
jquery UI 1.8.13
HTMLBox 4.0.3

My javascript looks like the following:

$(document).ready(function() {
var box;
box = $("#EmailContent").htmlbox({
    about: false,
    idir: "/pics/",
    toolbars: [
     ["cut", "copy", "paste", "separator", "bold", "italic", "underline", "strike", "sub", "sup", "separator",
     "left", "center", "right", "justify", "separator", "ol", "ul", "indent", "outdent", "separator", "link", "unlink", "image"],
     ["code", "removeformat", "striptags", "separator", "quote", "paragraph", "hr"]]
});

$(":button").not("#save").click(function() {
    var myClass = $(this).attr("class");
    box.set_text($("div.body." + myClass).html());

    //change the title of our modal dialog
    $("#edit").dialog("option", "title", ("Edit "));

    var my_buttons = {};
    my_buttons["Save"] = function() {
        saveInventory();
    };

    my_buttons["Cancel"] = function() {
        $('#edit').dialog("close");
    };        

    $('#edit').dialog({
        buttons: my_buttons
    });

    $("#edit").dialog("open");

});

$('#edit').dialog({
    autoOpen: false,
    height: 450,
    width: 700,
    modal: true
}); //end dialog box    
});

Before I add in all the jQuery dialog(basically everything from where I change the title of the modal), the above code generates an HTMLBox and it works correctly… I can interact with the HTMLBox.

However, upon adding in the dialog code, HTMLBox breaks. The textarea for the HTML box does not allow focus.

In comparing the working and non-working using Firebug, I found one difference. The working copy has the following in the tag generated by HTMLBox:

<link rel="stylesheet" href="data:text/css,body%7Bmargin%3A3px%3Bfont-family%3Averdana%3Bfont-size%3A11px%3B%7Dp%7Bmargin%3A0px%3B%7Dbody%7Bbackground%3Awhite%3B%7Dbody%7Bbackground-image%3Aurl%28/pics/logo.gif%29%3Bbackground-position%3Atop%20right%3Bbackground-repeat%3Ano-repeat%3B%7D">

Anyone have any idea on how I might fix this?

A search here popped up a potential Firefox issue with textarea and modal dialogs:
FireFox textarea issue in modal dialog

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:04:54+00:00Added an answer on May 23, 2026 at 12:04 pm

    After a bunch of research and experimenting, I solved my problem.

    Apparently Firefox 4.0 doesn’t play nice with iFrames within a jQuery UI Dialog.

    The fix is to move where and how the HtmlBox is initialized. Instead of the above, I changed it to the following:

    $(document).ready(function() {
    var box;
    var myClass;
    
    
    $(":button").not("#save").click(function() {
        myClass = $(this).attr("class");
        $("#class").html(myClass);
        $("#EmailTo").val($("div.to." + myClass).html());
        $("#EmailSubject").val($("div.subject." + myClass).html());
    
        //change the title of our modal dialog
        $("#edit").dialog("option", "title", ("Edit "));
    
        var my_buttons = {};
        my_buttons["Save"] = function() {
            if saveEmail() {
                $('#edit').dialog("close");
            }
        };
    
        my_buttons["Cancel"] = function() {
            $('#edit').dialog("close");
        };
    
        $('#edit').dialog({
            buttons: my_buttons
        });
    
        $("#edit").dialog("open");
    });
    
    $('#edit').dialog({
        autoOpen: false,
        height: 450,
        width: 700,
        modal: true,
        open: function(event, ui) {
            if (box == null) {
                box = $("#EmailContent").htmlbox({
                    about: false,
                    idir: "/pics/",
                    css: "body{font-family:verada;font-size:11px;}",
                    toolbars: [
                         ["cut", "copy", "paste", "separator", "bold", "italic", "underline", "strike", "sub", "sup", "separator",
                         "left", "center", "right", "justify", "separator", "ol", "ul", "indent", "outdent", "separator", "link", "unlink", "image"],
                         ["code", "removeformat", "striptags", "separator", "quote", "paragraph", "hr"]]
                });
            }
    
            box.set_text($("div.body." + myClass).html());
        }
    }); //end dialog box
    

    For some reason, putting the initialize code for HtmlBox in the open event of the jQuery UI Dialog, it works. However, I found that I needed to check if the box variable was null otherwise I would get a LOT of editors.

    To expand this generically for iFrame plugins, I believe one should put the initialization for the iFrame based plugin into the open event of the jQuery UI Dialog

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JavaScript and jQuery and would like to call a function when
I'm using Firefox and JQuery: The following code hides the content briefly, but then
In my webapplication I hide an iframe using jquery hide() function. Surprisingly firefox reload
I want to develop an firefox-extension using javascript&jQuery which extrats the facebook-privacy settings of
I'm trying to experiment with SVG on Firefox. Since I'm using jQuery, I'd like
I am getting a strange error using jQuery 1.3.2 and Firefox. I have created
I'm using some code to build up tables using JQuery, but in Firefox 3.5.3
I am currently testing this in Mozilla FireFox 3.0.5 using FireBug 1.3.0 with jQuery
If I navigate here: http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js I download 70k using Firefox 3.6.3 and I can
I'm newbie with JQuery. I got this function function verify_at_bd() { var u =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.