Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  dnn is not defined error
Previous Previous
 
Next Next
New Post 3/28/2006 6:24 AM
User is offline anonymous
0 posts
Unranked


dnn is not defined error 
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 3:41 PM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: dnn is not defined error 

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 4:18 PM
User is offline anonymous
0 posts
Unranked


Re: dnn is not defined error 
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 6:55 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: dnn is not defined error 
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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  dnn is not defined error
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP