Opened 6 years ago
Closed 6 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: |
Description
Hi
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>
<head>
<title> My Project</title>
<style type="text/css">
@import "/scripts/dijit/themes/claro/claro.css"; @import "/scripts/dojo/resources/dojo.css";
</style>
<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">
dojo.require("project.InitialSetup?");
</script> <body class = "claro">
<div id = "myDiv"></div> <script type="text/javascript">
var start = new InitialSetup?().placeAt("myDiv"); start.startup();
</script>
</body> </html>
InitialSetup?.htm <div> <div dojoAttachPoint = "ss" id = "ss"> </div> </div>
InitialSetup?.js dojo.provide("InitialSetup?")
dojo.require("dijit._TemplatedMixin");
dojo.declare("InitialSetup?" , [dijit._TemplatedMixin] , { templateString: dojo.cache("project" ,"InitialSetup?.html"),
widgetsInTemplate: true,
dummy : "",
startup: function(){
this.inherited(arguments);
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 6 years ago by
comment:2 Changed 6 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
This is a bug tracking system, not a support system. Please ask support questions at dojo-interest ( http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest ).
in my index.htm
can you replace the code 'var start = new InitialSetup?().placeAt("myDiv");' as 'var start = new InitialSetup?()'