DNN Professor Member Login
December 04, 2008

 You Are Here: ..:: Discussion Forums ::..
Forum Topics  

ForumsDNN Professor Forums


Subject: jQuery To Be Supported By Microsoft and DNN
Prev Next
You are not authorized to post a reply.

Author Messages
Buck AndersonUser is Offline
Authors
DNN Master
DNN Master
Posts:311

Send This Member a Private Message

10/01/2008 4:22 PM  

Charles Nurse just announced:

"Over the last weekend Scott Guthrie announced that Microsoft would be providing full support for the jQuery javascript library, including full PSS support.

This is quite a momentous announcement.  jQuery is an Open Source project, with a similar license to DotNetNuke (it uses a modified MIT license).  Microsoft are not absorbing jQuery and writing their own version.  Scott Guthrie stated that they intend to include the library “as-is”, and if they want changes they will submit them to the jQuery team for review in the same way as any other developer.

So, where does this leave DotNetNuke.

It certainly makes it easier for us to provide jQuery support.  As it will be part of the core ASP.NET distributions, it will likely be included in most hosting provider solutions.  Enterprises will feel more comfortable with jQuery as Microsoft will provide PSS support for the library.

I am sure that over the next few weeks there will be many discussions within the core team on where we go from here – and we will keep you posted on any decisions moving forward."

I am paying close attention to this welcomed information. After the DNN version 4.8.2, there was a change in the DNN use of jQuery in the SolPartMenu that causes a conflict with the Business Directory Detail page.

I am using jQuery on the details template to produce the image lightbox effect. This is based on the Thickbox code example that Kelly Ford, creator of Xmod, posted on the XMod site.

Versions of DNN, after 4.8.2  are causing a conflict and the details page does not render the SolPart menu.

If you want to know more about jQuery then check out these links:

  • jQuery site
  • Scott Hanselman  has a jQuery example on his blog
  • Hanselminutes – Scott Hanselman interviews John Resig – creator of jQuery on a recent Hanselminutes podcast

If any of our DNN professor community developer members know of a method to inject the jQuery.noConflict() routine into Business Directory or jQuery code used by the Lightbox example, please post it here.

I am running a test on DNN 4.9 by adding the following code inside and at the bottom of the xmod:scriptblock below. (replace the [ ] with arrows to test the code)

Note: Remember to be in plain text edit mode before editing the template.

[xmod:scriptblock blocktype="StartupScript" scriptid="ThickBox" registeronce="true"]

[script type="text/javascript"]jQuery.noConflict();[/script]

place it inside of this section:

[/xmod:scriptblock]

It appears to solve the menu problem on my test but it is forcing the images to open in a window instead of the lightbox. Let me know if you try it and get any positive results.

Buck

You are not authorized to post a reply.
Forums > Product Forums > Business Directory > jQuery To Be Supported By Microsoft and DNN



ActiveForums 3.7

Copyright 2008 by Jive Media Group LLC. All Rights Reserved.  | Terms Of Use | Privacy Statement