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 ...css/Jqyery installationcss/Jqyery installation
Previous
 
Next
New Post
4/11/2010 2:17 AM
 
Hi all Dnn Experts,
I am looking for a solution, please help me, I am quite new to DNN and facing some issues.
I've a Website which i need to migrate in DNN, for that I had converted some of my existing page to user control and installed as a module.
Problem arise when the CSS class and JavaScript come into picture, because .ascx page don't have any header section, then how can i register my css class and where i put my Java Script code.
I've found several solutions for css, like create a module.css in the same folder where module resides and DNN will load the style sheet automatically.
But it doesn't seem to work, Please help me on this, I've my own module and how can i put css on this module.
Another issue regarding Javascript/Jquery, I am using Jquery for different purpose like calling a page method, and some are for document.ready function like:
$(document).ready(function() {
$("*[id^=EditFeeds_]").hide();
$("[id$='errorLabel']").innerHTML = "";
});
and also


Please tell me how can i add such functionality i dnn module, because jquery fires on document.ready event and execute before control lod.

Please help me, I am in a very bad situation and need your help, Please describe your solution little because bit more, I am new in dnn.

Please help, and let me know if any clarification reqired.
Thanks
Appwriters
 
New Post
4/12/2010 12:32 AM
 

As long as module.css exists in your module's directory it will load. 

As for jQuery, not sure I can get you exactly what you need but I can tell you a couple things to get you going (in C#):

First, register jQuery: Framework.jQuery.RequestRegistration();

Also, there is a chance you will need a script manager: Framework.AJAX.RegisterScriptManager();

You can register additional scripts: Page.ClientScript.RegisterClientScriptInclude("tooltip", TemplateSourceDirectory + "/scripts/tooltip.overlay.js");

You can also register client side variables like this: UI.Utilities.ClientAPI.RegisterClientVariable(Page, "homedir", PortalSettings.HomeDirectory, true);

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
4/14/2010 7:19 PM
 

 Hi,

I have another solution.

1.- If you need to add your java code you can add it directly to "ROOT/default.aspx"  You will find the lines

</head>
<body id="Body" runat="server" >

Put you java code before that.

2.- You can modify the file ROOT/portals/0/portal.css (via ftp) or (via admin) admin > site > stylesheet editor. This file is called in all the  pages

Hope this helps

 

 


Follow me at twitter.com/adanzilla you will find tips to DNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...css/Jqyery installationcss/Jqyery installation


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