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...Using Modules a...Using Modules a...Loading jquery-1.4.4.min.js in module Settings pageLoading jquery-1.4.4.min.js in module Settings page
Previous
 
Next
New Post
3/2/2011 10:03 AM
 
Using DNN v4.9.4

I have developed a new module that is using jquery-1.4.4.min.js both in the "view" and the "settings page".

The view is simple because I load the jquery-1.4.4.min.js file in the page skin.

However for the settings page, we still use various flavours of the core DNN skin and so this option isn't really viable (I have over 400 child portals and I don't want to have to work my through all of them to work out which skins I would need to change).

So I am looking for a way to load this jquery-1.4.4.min.js file?
I have tried adding the file in the Settings.ascx file, but this causes an error in the dnn.controls.dnnmenu.js file ("Microsoft JScript runtime error: 'this.container.parentNode' is null or not an object").

So does anyone have any suggestions as to how else I can load this .js file in the SETTINGS.ascx page?
 
New Post
3/2/2011 10:16 AM
 
Actually I have just tried adding the jQuery file in the MinimalExtropy/Index.ascx skin and this just repeated the Microsoft JScript runtime error: 'this.container.parentNode' is null or not an object error.

So I really need another way of loading this file for my settings.ascx

 
New Post
3/2/2011 10:21 AM
Accepted Answer 
I don't know if this will be your answer but you can always add a script to the page header programmatically. You can put this right in a runat server script tag in your ascx file.

    Protected Overrides Sub OnPreRender(ByVal e As System.EventArgs)
        Dim gc4 As System.Web.UI.HtmlControls.HtmlGenericControl = New System.Web.UI.HtmlControls.HtmlGenericControl("script")
        gc4.Attributes.Add("src", "/portals/0/customjs/theme1/js/jquery-ui-1-7-3-custom-min.js") //path to js file
        gc4.Attributes.Add("type", "text/javascript")
        Page.Header.Controls.Add(gc4)
    End Sub
 
New Post
3/2/2011 10:31 AM
 
SUPERB!!!!

Thanks Kelly that worked first time and has saved me a huge amount of work!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Loading jquery-1.4.4.min.js in module Settings pageLoading jquery-1.4.4.min.js in module Settings page


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