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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Positioning of Elements and Admin Mode
Previous Previous
 
Next Next
New Post 10/26/2005 8:00 PM
User is offline Jim Bonnie
117 posts
www.walkspoiled.com
9th Ranked






Positioning of Elements and Admin Mode 

Hi Jon,

I am working on DNNVE, a module incorprating Virtual Earth into DNN.

The VE map controls are called from a javascript available from Microsoft. I am creating a map control element via JS and appending it to a table cell in my ascx file. I am using absolute positioning and things work ok in standard mode with a single content pane.

When in admin mode the 'position' of the cell is further right and down then it should be. Basically the left and top properties are off. This was the case for some manually written functions that caculate the position of an element by going up the tree. It looks like the other panes are being counted twice or something.

I have tried the dnn.dom.positioning namespace and I get the same results.

Why is Admin mode causing the absolute  position to be miscalculated ? Am I missing a piece of the DOM HTML magic puzzle!

Thanks for any insight,

Jim www.walkspoiled.com


Jim www.walkspoiled.com
 
New Post 10/27/2005 8:50 AM
User is offline Jon Henning
1623 posts
www.codeendeavors.com
5th Ranked










Re: Positioning of Elements and Admin Mode 

Would it be possible for you to post an example somewhere... Basicaly giving admin rights to everyone for a single page on a test site.  If you are uncomfortable with this then maybe you could just email me the info.

The positioning in the dnn clientapi should work, for this is how the drag-n-drop functions, and it only works in admin mode...


 
New Post 10/27/2005 9:47 PM
User is offline Jim Bonnie
117 posts
www.walkspoiled.com
9th Ranked






Re: Positioning of Elements and Admin Mode 

Jon,

I have created a temp test site at www.walkspoiled.com/ve

The user name and passwd are JHTEST. I changed the calls to use the client api dnn positioning namespace.

 var oDims = new dnn.dom.positioning.dims(document.getElementById("mapcell"));

map = new VE_MapControl(40.9521068, -73.592862, 10, 'r', "absolute", oDimsMapCell.l, oDimsMapCell.t-oDimsCPanel.h, oDimsMapCell.w,oDimsMapCell.h);

document.getElementById("mapcell").appendChild(map.element);

I tried to position the map at the left and top posstion, and this works fine in regular mode, but the map is pushed down as the left and top appear to be greater than expected in admin mode.

I can get you the vb.net code behind if it will help.

Thanks for taking a look.

- Jim


Jim www.walkspoiled.com
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Positioning of Elements and Admin Mode
 


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.

 


Icthus Technologies
Building Faith on the Internet
www.icthustech.com
Efficion Consulting
A premier DotNetNuke consulting firm providing complete DNN services including: custom module development, skinning and design, installation and integration services.
www.efficionconsulting.com
DotNetNuke Training by Engage Software
Specializing in customized training, architecture and module solutions for large scale implementations lead by DNN Core Team Member Christopher Hammond.
engagesoftware.com

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