File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Dojo 1.7 - named functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dojo 1.7 - named functions" Watch "Dojo 1.7 - named functions" New topic

Dojo 1.7 - named functions

Kaisa Karhutar

Joined: Apr 07, 2012
Posts: 1
There is an example in Dojo tutorial written in 1.6 style

named function toggle() is called from markup. What is the recommended way to do the same thing in 1.7 where dojo code is enclosed in anonymous function passed as an argument to require(..) method:

Is it possible to have named function that uses some dojo code?
It is sorta covered in the JavaRanch Style Guide.
subject: Dojo 1.7 - named functions
Similar Threads
access denied in firefox when loading the dojo components from https
Dojo 1.1.2 Can't loaded in Firefox 3.5.5 browser
dojo 1.1.2 fails in firefox 3.0.5
Problem with file upload. Problem lies in javascript/dojo
Not able to add submit button in HTML using jquery