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...Skins, Themes, ...Skins, Themes, ...jQuery and plugin load order in DNNjQuery and plugin load order in DNN
Previous
 
Next
New Post
7/9/2010 9:13 AM
 
Hi Everyone,

I am trying to install a lightbox implementation for DNN. This is the first time I am using the new DNN 5.x jQuery option and if I add the lightbox.js file to my skin.xml, parse the skins and reload my page, I can see that DNN renders the lightbox.js file before it loads the jQuery.js file which I believe is the reason I am having problems getting the lightbox to work.

Can someone please tell me if this is the case and how do I go about changing that load order?

I know I can hack it by switching off DNN's version of jQuery and loading my own but that defeats the purpose of having jQuery come with DNN.

Thanks!
James
 
New Post
7/9/2010 3:11 PM
 
This is a bug, wich is fixed in 5.4.2 of .3
 
New Post
7/10/2010 5:47 PM
 
I hit this problem here too...

It still seemed to be an issue in 5.4.2 - I could not see any fixes in the changelog.

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
7/11/2010 2:48 AM
 
it is fixed in 5.4.2 look at this ticket.

I have this in my ascx file and it works for me:

Protected Overrides Sub OnLoad(ByVal e As EventArgs)
        DotNetNuke.Framework.jQuery.RequestRegistration()
        AttachExternalJS("http://ajax.googleapis.com/ajax/libs/...")
        AttachExternalJS(SkinPath + "js/CI-Javascript.min.js")
        AttachExternalJS(SkinPath + "js/mbScrollable.js")
        AttachExternalJS(SkinPath + "js/jquery-load.js")
        AttachExternalJS(SkinPath + "js/ci-currency.js")
End Sub

Sub AttachExternalJS(ByVal JSPath As String)
  AttachCustomHeader("<script type='text/javascript' src='" & JSPath & "'></scr" & "ipt>")
 End Sub
 
New Post
7/11/2010 3:00 AM
 
Hmm - I missed that somehow, but yes, it does sound like it is fixed - I'll have to retest on 5.4.2.

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...jQuery and plugin load order in DNNjQuery and plugin load order in DNN


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