Why can Dojo Dijit Dialog only show one dialog per pageload in firefox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rythmic
    New Member
    • Feb 2010
    • 29

    Why can Dojo Dijit Dialog only show one dialog per pageload in firefox?

    Hi!

    I have developed a system where I use Dojos dijit dialog to show certain information. It works perfectly for all major browsers except for firefox ( where I've tested v3.6 and 4 BETA)

    The first time I try to get a dijit dialog it all works as expected and all is well and I close it. The second time I try to open another dialog I get an error message and nothing happens. If I open the first dialog it is still working.

    The error message reads as follows: Error: Bundle not found: common in dijit , locale=sv-se
    Källkodsfil: path/dojo-release-1.4.3/dojo/dojo.js
    Rad: 50

    Code:
    dojo.addOnLoad(function() { dojo.require("dijit.Dialog"); });
    
    // showdialog is called everytime I click a link to open a dialog function showDialog(the_title,the_url,the_id) { 
        var myDialog2 = dijit.byId(the_id); 
        // create the dialog:
        var myDialog2 = new dijit.Dialog({
             title: the_title,
            href: the_url,
            id: the_id
        });
        myDialog2.show();
    }
    This message to me implies that something is not found. But how can that be when it wasn't missing for the first dialog and when it is working fine for all other browsers.

    Anyone have any suggestions? I'm out of ideas :(

    best regards
    Rythmic
    Last edited by rythmic; Dec 2 '10, 06:33 PM. Reason: adding code
  • rythmic
    New Member
    • Feb 2010
    • 29

    #2
    A quick reply to my own post. The code works as expected. Solution: Reinstall firefox which had somehow gotten corrupted. No wonder there was so little info on this. :)

    Comment

    Working...