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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIdnn is not defined errordnn is not defined error
Previous
 
Next
New Post
3/28/2006 8:24 AM
 
Hi Jon,

I'm trying to use the client api functions to set and get cookies instead of rolling my own. Everything works as planned unless the container is hidden. Actually, there are no visible containers on the page. In this case I get the javascript error 'dnn is not defined'. Isn't the client api included for every page regardless of containers?

It's easy for me to include my own version of get/set cookie but I was hoping to use the dnn native versions of these.


 
New Post
3/28/2006 5:41 PM
 

the clientapi scripts will only be loaded when they are determined they are needed.  You can register them by calling the RegisterClientReference method.  In your case, if you don't have a module but are setting a cookie, I'd ask how is your script being added to the page.  Is it part of your skin?  You could register the client reference in your skin either by calling that method.

Or you could simply add a script src=".../js/dnn.js">, though this may result in two dnn.js files getting registered... which shouldn't hurt.


 
New Post
3/28/2006 6:18 PM
 
Ok, I got it now. Thanks for the refresher. It's been a bad day, can't you tell :)

One more question.

Is there anyway to turn off the drag and drop positioning without turning off the entire clientapi. I noticed a web.config entry but that seems to turn off everything.


 
New Post
3/29/2006 8:55 AM
 
Not that I am aware of...  I'm sure there is some script that could be written to cripple the functionality...  not sure why you would want to do this though...

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIdnn is not defined errordnn is not defined error


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