Join our DNN Community    (Newsletter, Tips, Tricks and Forums for DNN Skins & Modules)

 


 
Microsoft Gold Certified Partner - DNN Benefactor

DotNetNuke Powered! 


Friday, December 05, 2008 Register · Login · Contact · Search:  
Company Solutions Portfolio Contact
Forums
Wedjet - (free web 2.0 skin element)

Subject: Relative Positioning of WedJet
You are not authorized to post a reply.
Page 2 of 2 << < 12
 
Author Messages
VarunC
Cruiserweight
Posts:117

05/29/2007 12:56 AM Alert 
I must add to it, that tempX and tempY variables used in DoGetPos() function were to be declared outside the function scope :-) and not within.
jhbeach
Lightweight
Posts:16

01/07/2008 9:20 PM Alert 
Thanks for Wedjet! (And your additions Paul) I'm creating a member directory where people get to look up each other's details and the box is popping up nicely, near the name of the person clicked.

It's a little bit erratic, though. Have to sort out what's the best way to get mouse position, across browsers. Also, the box is positioning differently depending on content. Some methods seem to work better than others. Still learning various javascript properties for that, although screenX/screenY seem to be working best for me. I've seen some posts elsewhere that recommend detecting browser first, then use different functions accordingly. It's not as clean as I'd like. Will do more testing.

One thing I just noticed: I Can't pick up the box and move it when using Firefox. Thought I'd inquire here before snooping around on the internet to see if there's a way to make that doable. Any hints?
contactdp
Superweight
Posts:475

01/08/2008 10:05 AM Alert 
Do you have firebug installed.

If not can you install it and see if there are any javascript errors?

I think that is the best way to debug your script.

Thanks,

Durga Prasad(DP) | Senior Web Engineer
R2integrated
jhbeach
Lightweight
Posts:16

02/27/2008 12:23 AM Alert 
I had difficulty getting my wedjet to show up where the mouse click occurred. Wasn't taking the document scroll into account. With a little help from Firebug (Thank you very much) and this article, I altered mine to the code below:

http://javascript.about.com/library/blmousepos.htm


var tempX = 0;
var tempY = 0;
function DoGetPos(event){
tempX = mouseX(event);
tempY = mouseY(event);
}

function mouseX(evt) {
if (evt.pageX) return evt.pageX;
else if (evt.clientX)
return evt.clientX + (document.documentElement.scrollLeft ?
document.documentElement.scrollLeft :
document.body.scrollLeft);
else return null;
}

function mouseY(evt) {
if (evt.pageY) return evt.pageY;
else if (evt.clientY)
return evt.clientY + (document.documentElement.scrollTop ?
document.documentElement.scrollTop :
document.body.scrollTop);
else return null;
}
contactdp
Superweight
Posts:475

02/27/2008 5:14 PM Alert 
awesome... let us know how that worked.

Thanks,
DP

Durga Prasad(DP) | Senior Web Engineer
R2integrated
You are not authorized to post a reply.
Page 2 of 2 << < 12
Forums > Bi4ce.Modules > Wedjet - (free web 2.0 skin element) > Relative Positioning of WedJet



ActiveForums 3.6
Latest Post
 
At R2integrated (formerly Bi4ce), we take support seriously.  That's why we support our customers and DNN community with daily monitoring from our experienced engineering team.  We ask that the first step taken is to read the relevant documentation and support forums prior to submitting any questions that may already be available or have been answered.  We ask that you review the documentation that we provide for our products before posting a question.

The Forums are for our customers to chat, exchange ideas and strategies, and submit feedback.  Please be sure to perform keyword searches for previous related forum responses.

To be helpful when submitting a new item, please include the following: 
  1. DNN Version
  2. Module Version
  3. Admin Log Viewer Information
  4. Environment detail: Operating system, .NET framework version, database and version, IIS version, Browser version (if appropriate)
We always try to respond quickly and monitor the forums daily during business hours (EST).  Occasionally, requests for a specific project requirement may not apply for the free support offered. For project specific support please submit via our Information Request form.

Thank you for using our Forums.

Click here to register for the Forums
 
© 2008 by R2integrated (formerly Bi4ce) | DNN® is a registered trademark of DotNetNuke Corporation