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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Builtin DNN Javascript slide/fade/hide functions?Builtin DNN Javascript slide/fade/hide functions?
Previous
 
Next
New Post
1/14/2009 8:04 PM
 

I'm just bulilding some thing that needs a javascript function to show/hide an element using javascript.  Instead of importing the entire scriptaculous library for such a small thing, I'm wondering if anyone knows of a function in the dnn.js / dnncore.js files.  I started looking in the section min/max area but I was hoping someone could quickly point me in the right direction.

TIA

-Bruce

 
New Post
1/15/2009 12:32 AM
 
Hey Bruce,

If you're using DNN 5, this is really something extremely easy to do with jQuery.

All it takes is

$("#ID").hide();

and

$("#ID").show();

or you can apply some effects too.

Take a look:

http://docs.jquery.com/Effects




 
New Post
1/15/2009 2:13 PM
 

if you are wanting to do this in one of the repeater list controls like datalist how do you find the value of #D ... do you have to use a findcontrol in the codebehind, or is there a container eval that can do it in the aspx file - or a combination of the two?

and how about in DNN 4.9 ...


pmgerholdt
 
New Post
1/16/2009 12:40 AM
 

Vasillis : thsi project is 4.9 - you should know that ;-)

Michael : you can get the id to use within the page behind code.  Just obtain a reference to the control within the datalist/repeater in the item_databound event, then use the .ClientId property.  You can add whatever javascript to the control using control.attributes.add("onload", "myFunction('" + control.clientId + '"')");  THen, in your html somewhere, you need to have the myFunction(clientId) defined.

 
New Post
1/16/2009 7:59 AM
 

 I would still use jQuery because it provides a lot of functionality in a very small package.  You are going to need to learn it for DNN 5 if you want to do Widget dev, so you might as well get started.


Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Builtin DNN Javascript slide/fade/hide functions?Builtin DNN Javascript slide/fade/hide functions?


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