HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesjQuery $(document).ready()jQuery $(document).ready()
Previous
 
Next
New Post
9/28/2011 2:16 PM
 
Hello everyone,

I'm having an issue using jQuery inside our custom modules after upgrading from 5.6.3 to 6.0.1.  We are using jQuery quite a bit in our custom modules and have noticed that code inside $(function() { }); blocks is executing not only on full page loads, but also on AJAX requests.  For example:

<script type="text/javascript">

$(function() {
console.log('foo');
});

</script>

Because we are attaching event handlers inside these blocks, if AJAX requests have occurred before the event is fired, the handlers will fire multiple times.  These script blocks are included at the top of user controls, and are usually inside RadScriptBlocks.  Has anyone else experienced this issue after upgrading to 6.0.1?

Thanks!
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesjQuery $(document).ready()jQuery $(document).ready()


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Start  Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.