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 ForumsClientAPIClientAPIPositioning of Elements and Admin ModePositioning of Elements and Admin Mode
Previous
 
Next
New Post
10/26/2005 10:00 PM
 

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 10:50 AM
 

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 11:47 PM
 

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
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIPositioning of Elements and Admin ModePositioning of Elements and Admin Mode


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