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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedDNN JavaScrip APIDNN JavaScrip API
Previous
 
Next
New Post
1/9/2011 11:49 AM
 
Does anyone know where I can find the API available to java script functions in DNN?  I'm looking for help in obtaining controls from the current form to change its properties such as enable/disable and the name of link buttons or buttons.  I see code like dnn.dom.getByID and dnn.dom.getByTag but have been unsuccessful in locating the documentation.
 
New Post
1/9/2011 12:34 PM
 
The javascript framework is called the ClientAPI and you can find documenttion on it at http://www.dotnetnuke.com/Resources/BooksandDocumentation/ProjectandTechnicalDocumentation/tabid/478/Default.aspx . The http://webcontrols.dotnetnuke.com/ site is also very handy as well. Please note, since 5.0 DotNetNuke uses MS Ajax and ships with jQuery so often they're better choices.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/13/2011 2:12 PM
 
I've read the client api doc and its not of much help.  I can't locate where dnn.dom is detailed.  I have a Module Test and a View with a link command cmdReport.  I want to enable/disable cmdReport.  I've found the following via googles but it throws an error that

http://localhost/DNNDev/js/dnncore.js is accessible.

Error: dnn.getVar("__dnn_Panes") is undefined
Source File: http://localhost/DNNDev/js/dnncore.js
Line: 353


var sContentID = __dnn_Modules("Test");
        ContentID);
        var oMapviewer = dnn.dom.getById(sContentID);
        MapViewer);
        if (oMapviewer != null)
         {
             var x = dnn.dom.getById("View" + "_cmdReport", oMapviewer);
             x);
         }

 
New Post
1/13/2011 2:57 PM
 
I found it! I needed to download and install the ASP Web Controls add on. My question is now, should I be using the dnn client api at all?
 
New Post
1/13/2011 6:29 PM
 
personally speaking it's been a while since I have, I've either used jQuery or asp.net Ajax when I've needed client/server work.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedDNN JavaScrip APIDNN JavaScrip API


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