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/8/2008 7:22 PM
 

Hi, OldBeno
yes, you must resolve the $ issue at first and you can follow my code(module control's page_load) below:
protected void Page_Load(object sender, System.EventArgs e)
{
    try
    {
        DotNetNuke.Framework.AJAX.RegisterScriptManager();

        ScriptManager sm = ScriptManager.GetCurrent(this.Page);
        string path1 = this.TemplateSourceDirectory + "/js/jquery-1.2.6.min.js";
        string path2 = this.TemplateSourceDirectory + "/js/thickbox.js";

        sm.Scripts.Add(new ScriptReference(path1));
        sm.Scripts.Add(new ScriptReference(path2));
        ScriptManager.RegisterStartupScript(this.Page,this.GetType(),"jQueryNoConflict", "jQuery.noConflict()", true);
    }

    catch (Exception exc)
    {
        //Module failed to load
        Exceptions.ProcessModuleLoadException(this, exc);
    }
}

Ian, Grateful of your reply
Yes, I had viewed  source on the page and all necessary are there.  when i click the thickbox href, the ajax loading icon is renderd. I also debug into the thickbox and it indeed execute the tb_show function but the $("#TB_ajaxContent")[0] is not existed. you can check the module controls's code above and page code below:
<link type="text/css" href="http://localhost/dev/DesktopModules/JQuery/module.css" />
<script src="http://localhost/dev/DesktopModules/JQuery/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="http://localhost/dev/DesktopModules/JQuery/thickbox.js" type="text/javascript"></script>


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/9/2008 10:19 AM
 

Hey I managed to get my site working nicely working with the thickbox. To be honest i think it was luck more than anything, I noticed that when i put all of the scripts into the source of my text module it would work. I did further checks and the solution i came to was to load jquery.js into the head and the css in the head, using the previous code i posted (page_init event). I then added the thickbox javascript in the body of the ascx file as a standard <script> tag with the rest of the skin code; i've noticed the animated.gif isn't set up right but i'll sort that tonight.
Check it out here

Baldwin i presume using the scriptmanager is a better way of adding the links to the head or are you using this because you are working at the module level and therefore only want to load a script once if multiple instances of the modules are on the same page?

Hope this helps, how do i update my sig with nice pics like yours?

OldBeno..


 
New Post
10/9/2008 7:25 PM
 

Execellent, your module works well, however it do not apply my condition. I need the separate *.aspx can work together with the thickbox script as I mentioned in last post above. Because my *.aspx  will embeded in others' website iframe, I choose the thickbox for the popoup goal, not the asp.net ajax modalpopupextender. any one can share his simliar tips, thanks a lot.

Hey, OldBeno

you can update your signnature following the some html code, which you can view the page sourcecode.  :)


sunblognuke v5 for dnn

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

 
New Post
1/31/2009 11:52 AM
 

Hi baldwin. I'm using a thickbox with an aspx page. From my module i call an aspx to edit data and the aspx load so good, but when the thickbox close the user session is lost, and is necesary to login again.

 
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