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

  • SEARCH
  • Home
  • 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 6195565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:29:20+00:00 2026-05-24T03:29:20+00:00

The following code worked with Dojo 1.5 in Firefox and Internet Explorer 8. With

  • 0

The following code worked with Dojo 1.5 in Firefox and Internet Explorer 8.

With Dojo 1.6, it still works in Firefox, but does not work in IE8.

I get an Object doesn't support this property or method error when wrappingFunctionInPlainJsFile() is called.

HTML page:

<div dojoType="widget.MyCustomWidget"></div>

In widget/MyCustomWidget.js

dojo.provide("widget.MyCustomWidget");

dojo.require("js.plainJsFile");

dojo.declare("widget.MyCustomWidget", [dijit._Widget, dijit._Templated],  {
    ...

    // this gets called when the widget is clicked on in the UI
    run: function() {
        wrappingFunctionInPlainJsFile();
    },

    ...

});

In js/plainJsFile.js

dojo.provide("js.plainJsFile");

function someFunction() {
}

function wrappingFunctionInPlainJsFile(){
    new someFunction();
}

Any ideas on what I am doing wrong would be greatly appreciated.

Note: If I import the plainJsFile.js directly on the HTML page instead of using dojo.require then I have no problems.

  • 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-24T03:29:21+00:00Added an answer on May 24, 2026 at 3:29 am

    I tried the dojo mailing list and got a fix courtesy of Karl Tiedt.

    See here: http://dojo-toolkit.33424.n3.nabble.com/Why-would-Dojo-1-6-fail-to-properly-load-javascript-file-in-IE8-using-dojo-require-td3204800.html#a3204894

    Copy/paste of solution.

    “Its an IE quirk….

    dojo.provide("js.plainJsFile");
    
    (function() {
     function someFunction()
    
     wrappingFunctionInPlainJsFile = function() {
        new someFunction();
     }
    })();
    

    should work… I always use my name spaces though and do it this way

    dojo.provide("js.plainJsFile");
    
    (function(pjsf) {
    
      pjsf.someFunction = function()
    
      pjsf.wrappingFunctionInPlainJsFile = function(){
        new someFunction();
      }
    })(js.plainJsFile);
    

    “

    Note: I tried the above solution and it worked for me in IE8 and Firefox.

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

Sidebar

Related Questions

The following code works great in IE, but not in FF or Safari. I
The following code worked before, but failed to get the next 4 days of
The following code has worked in v1.3 but not 1.4 I can't seem to
The following code doesn't compile with gcc, but does with Visual Studio: template <typename
In my Grails 2.0 the following GSP code works: <g:formatDate date=${merchantTrans.dateCreated} /> But the
i want load Content(is html) with jQuery. why following code not worked for me?
I have the following JQuery code that worked perfect in C#/Asp.net 2.0 to call
The following code failed when I upgraded to 1.4.1, and worked ok when I
I have the following bit of code that worked as expected before we upgraded
following code doesn't work with input: 2 7 add Elly 0888424242 add Elly 0883666666

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.