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  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


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
1622 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.

 


Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com
Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com
DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com

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