Opened 7 years ago

Closed 7 years ago

#18642 closed defect (invalid)

DojoAttachpoint is not Working

Reported by: saravanakumarmay06 Owned by:
Priority: undecided Milestone: tbd
Component: General Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:



I'm creating new dojo application. In initial stage i have found dojoAttachpoint is not working. Can you help me to sort this out.

Index.htm <html>


<title> My Project</title>

<style type="text/css">

@import "/scripts/dijit/themes/claro/claro.css"; @import "/scripts/dojo/resources/dojo.css";


<script type = text/javascript>

var dojoConfig = {

async : false, packages: [

{ name: "dojo", location: "/scripts/dojo" }, { name: "dijit", location: "/scripts/dijit" }, { name: "dojox", location: "/scripts/dojox" }, { name: "dgrid",location: "/scripts/dgrid" }, { name: "project", location: "/scripts/MyProject" }


</script> <script type="text/javascript" src="/scripts/dojo/dojo.js"></script>

</head> <script type="text/javascript">


</script> <body class = "claro">

<div id = "myDiv"></div> <script type="text/javascript">

var start = new InitialSetup?().placeAt("myDiv"); start.startup();


</body> </html>

InitialSetup?.htm <div> <div dojoAttachPoint = "ss" id = "ss"> </div> </div>

InitialSetup?.js dojo.provide("InitialSetup?")


dojo.declare("InitialSetup?" , [dijit._TemplatedMixin] , { templateString: dojo.cache("project" ,"InitialSetup?.html"),

widgetsInTemplate: true,

dummy : "",

startup: function(){


console.log("In startup");



Both html and js is downloading in my local console , but still i'm not able to access 'id' and 'dojoAttachPoint' in my local. But i'm able to call startup of the InitialSetup?.js

What's wrong woth my code ??

Change History (2)

comment:1 Changed 7 years ago by saravanakumarmay06

in my index.htm

can you replace the code 'var start = new InitialSetup?().placeAt("myDiv");' as 'var start = new InitialSetup?()'

comment:2 Changed 7 years ago by dylan

Resolution: invalid
Status: newclosed

This is a bug tracking system, not a support system. Please ask support questions at dojo-interest ( ).

Note: See TracTickets for help on using tickets.