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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Why JQuery plugin Thickbox can not work with *.aspx in DNN?Why JQuery plugin Thickbox can not work with *.aspx in DNN?
Previous
 
Next
New Post
10/7/2008 7:48 PM
 

As the title mentioned, I need  to combine JQuery plugin Thickbox and *.aspx in DNN module, however they can not work well together. I just find it can work well with the *.ascx but not *.aspx. Yes, I had resolved the $ confict issue.

can any one share your thought? appreciate your help much.


sunblognuke v5 for dnn

Ultimate Blogging Module for DotNetNuke Platform
The professional provider of DotNetNuke support, skin design and custom module development.

 
New Post
10/7/2008 9:39 PM
 

Hey baldwin,

Could you provide any more specifics, there really shouldn't be any difference between a user control and a page, are you sure the code you are using is identical?

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
10/8/2008 12:23 AM
 

 All right, I will provide that issue more detail. At first, I do not think so that  there really are not any difference between a user control and a page in DNN.  In common, as for the dnn regular control (*.ascx) , you can utilize some more functions and properties due to portalmodulebase, but the page(.aspx) can not. so my code make little difference  except in registering JQuery script. you can visit the link: http://mattberseth.com/blog/2008/06/masterdetail_with_the_gridview_1.html. It indeed exist some issue in the Integration. But I try the same way, it just does not work. Yes,  I need the page can be directly visited by the way below:

http://localhost/dnndev/desktopmodule/JQuery/sample.aspx

 


sunblognuke v5 for dnn

Ultimate Blogging Module for DotNetNuke Platform
The professional provider of DotNetNuke support, skin design and custom module development.

 
New Post
10/8/2008 10:18 AM
 

baldwin,

I didn't mean to say there weren't differences between a page and a control, just that they shouldn't really have much of an impact on your usage of jQuery. Can you explain (or show) how you are registering the necessary javascript? Can you view source on the page and see that the necessary javascript is in the page? Are there any javascript error messages when the page is rendered? If so, you may try using a tool like firebug to debug the javascript and attempt to find the point at which the code breaks down.

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
10/8/2008 12:04 PM
 

Hi Both,

I am also trying to set up thickbox on a portal and although i can get the thickbox code running fine as a straight html file i can't seem to get it to work with DNN.
I can see that the script files and css all reside in the aspx page and I have used John Mitchells method to load them into the HEAD in my ascx skin file:

<script runat="server">
    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        Dim oCSS As Control = Me.Page.FindControl("CSS")
        If Not oCSS Is Nothing Then
            'add a script reference for Javascript to the head section
            Dim oLink As New HtmlGenericControl("link")
            oLink.Attributes("rel") = "stylesheet"
            oLink.Attributes("type") = "text/css"
            oLink.Attributes("media") = "screen"
            oLink.Attributes("href") = SkinPath & "thickbox-code/thickbox.css"
            oCSS.Controls.AddAt(0, oLink)
           
            'to add javascript files uncomment the lines below
            oLink = New HtmlGenericControl("script")
            oLink.Attributes("language") = "javascript"
            oLink.Attributes("type") = "text/javascript"
            oLink.Attributes("src") = SkinPath & "js/jquery-1.1.3.1.pack.js"
            oCSS.Controls.AddAt(0, oLink)

            'to add another javascript file uncomment the lines below
            oLink = New HtmlGenericControl("script")
            oLink.Attributes("language") = "javascript"
            oLink.Attributes("type") = "text/javascript"
            oLink.Attributes("src") = SkinPath & "thickbox-code/thickbox-compressed.js"
            oCSS.Controls.AddAt(0, oLink)

        End If

    End Sub
</script>

However nout seems to happen, i'm pretty new to DNN so i'm sure this will be a true noob question, but what is this $ issue that has been mentioned.

Grateful of any help,
OldBeno..


 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Why JQuery plugin Thickbox can not work with *.aspx in DNN?Why JQuery plugin Thickbox can not work with *.aspx 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