Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SolpartMenu is missing.SolpartMenu is missing.
Previous
 
Next
New Post
11/20/2008 11:21 AM
 

Support for JQuery in DNN modules is not officially supported until 5.0, so that fact that you are using 4.9 could be one of the reasons for the issues that are happening.  Below are 2 things I would suggest.

1) Since this appears to be a problem with the SolPartMenu, try to change the menu provide to the DNNMenuNavigation Provider instead and see if the different provider works better with JQuery.  My guess is that it will, but cannot say for sure since I have not tried it.

2) Please download DNN 5.0 RC2 and see if the problem still exists.  Again, if the problem does still happen using SolPartMenu, then I would suggest changing to the DNNMenuNavigaiton Provider to see if that makes a difference in this version as well.  Doing these test in RC2 will really be a big help and help make DNN 5.0 support for JQuery as stable as possible.  This is why the RC2 was released to the public, any feedback that can be given concernign the above issue in DNN 5.0 RC2 will be appreciated.  Pleas log any issue found into the issues tracking database located here.

The issues does not appear to be a DNN issue, but a SolPartMenu issue which there is limitations on what we can do since this is a 3rd party control that DNN used in the past for the menuing.  From what I have heard, there is not future roadmap for SolPartMenu (inlcuding bug fixes) so the safest action would be to look at for an alternative.  It does not have to be the DNNMenunavigation Provider, but that is one that is included in the install and for new installs of 5.0 that will be the default navigaiton provider.

 
New Post
11/20/2008 11:44 AM
 

Since I wrote the JQuery 5.0 implementation and have written some modules for DNN 4.9 that use JQuery, perhaps I can shed some light on this subject.  The issue is definitely the result of a conflict between jQuery and the clientAPI but it is not an insurmountable problem as evidenced by fully funcitoning jQuery in DNN 5.0.  The key to making jQuery play nice is to ensure that jQuery is registered on the page before any of the clientAPI scripts.  You cannot rely on the standard RegisterClientScript functions in ASP.Net or in ClientAPI.  Instead you need to roll your own.

For my Monitter module I used:

 

Private Sub RegisterScript(ByVal scriptName As String)
  Dim scriptformat As String = "<script type=""text/javascript"" src=""{0}"" ></script>"
  Dim headscript As New LiteralControl()"js/" + scriptName)
  Page.Header.Controls.Add(headscript)
End Sub

Then I can use a simple call like RegisterScript("jquery.min.js") and it will add the jQuery script to the "< Head >" section of the page.  This has avoided all menu problems and jQuery still functions correctly in all my testing.

In DNN 5.0 we added an additional function so we can detect if jQuery is already registered so that we avoid multiple jQuery script references.

        Private Shared Function IsScriptRegistered() As Boolean
            Return CType(IIf(HttpContext.Current.Items("jquery_registered") IsNot Nothing, True, False), Boolean)
        End Function
 

Then I just wrap the body of the RegisterScript method in a quick if...then and skip adding the script again if it is already registered (in case you haven't looked, this is very close to code used in the ASP.Net for managing script registration).

  headscript.Text = [String].format(scriptformat, ModulePath +

 


Joe Brinkman
DNN Corp.
 
New Post
11/21/2008 8:36 AM
 

To make things more interesting (grin), you also have to take care of the container action menu. I got the action menu working when I use the SolpartMenuNavigationProvider but not the DNNMenuNavigationProvider. But on firefox on the mac, this combination does not work. Using DNNNav provider on the mac *without* jquery does work.

Trying to built my own action menu using jquery and the LINKACTIONS container object (without core mods) did not yet result in satisfactory results.

Anyway, happy bug hunting...

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
12/17/2008 7:14 PM
 

Joe Brinkman wrote

Private Sub RegisterScript(ByVal scriptName As String)
  Dim scriptformat As String = " "
  Dim headscript As New LiteralControl()"js/" + scriptName)
  Page.Header.Controls.Add(headscript)
End Sub

Then I can use a simple call like RegisterScript("jquery.min.js") and it will add the jQuery script to the "< Head >" section of the page.  This has avoided all menu problems and jQuery still functions correctly in all my testing.

 

Hey Joe,

I'm still new to DNN and i'm having same problem with jQuery, so can you show me how to do it in C# and where to do it and how to register the script ?

I would really like too use jQuery and since there not is a release of DNN 5.0 i have to use what there is for now

 

Best Regards

Bjarne Pedersen
Denmark

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SolpartMenu is missing.SolpartMenu is missing.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out