• Email
  • Like
  • Save
  • Private Content
  • Embed
 

Considerations with Writing JavaScript in your DotNetNuke site

by

  • 2,927 views

Whether you want to take advantage of jQuery, ASP.NET AJAX, or just plain JavaScript, come learn the rules and guidelines for taking advantage of JavaScript within your DotNetNuke site. We'll talk ...

Whether you want to take advantage of jQuery, ASP.NET AJAX, or just plain JavaScript, come learn the rules and guidelines for taking advantage of JavaScript within your DotNetNuke site. We'll talk through considerations for enhancing your content, skins, and modules, the best ways to include JavaScript behaviors, and some ways to avoid inconsistencies and frustration.

Accessibility

Categories

Upload Details

Uploaded via SlideShare as OpenOffice

Usage Rights

CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel

1 Embed 1

http://www.slideshare.net 1

Statistics

Likes
1
Downloads
16
Comments
2
Embed Views
1
Views on SlideShare
2,926
Total Views
2,927

12 of 2 previous next

  • EngageSoftware Engage Software at Engage Software The module pattern is discussed by Douglas Crockford in his book 'JavaScript: The Good Parts,' and doing a quick search I also found this related blog post: http://www.yuiblog.com/blog/2007/06/12/module-pattern.

    Effectively, the module pattern has all of your script happening inside of a call to an anonymous function. Because you're in a function, all of the variables and functions created are scoped to that function, and not accessible from outside of that function (i.e. not accessible from any other script on the page). This keeps your script non-intrusive and maintainable. You can have your module return something if you need to make part of its functionality available outside of the module itself. You can also pass in arguments to the function (e.g. jQuery) in order to have a local reference to them. You can also look at the 'plugin development pattern' link that is on slide 10, in that article's 'Keep private functions private' section for another example.

    Hope that helps!
    2 years ago
    Are you sure you want to
  • jalbertbowden J. Albert Bowden, Front-End Engineer, UI/UX at bowdenweb i can't find the 'module pattern' anywhere online. nor reference to rewritten jQuery's factory function within Sitefinity, save here. and this is pretty vague to me....can you explain that guy so more or know of some posts/docs/refs that do it? 2 years ago
    Are you sure you want to
Post Comment
Edit your comment

Considerations with Writing JavaScript in your DotNetNuke site Considerations with Writing JavaScript in your DotNetNuke site Presentation Transcript