Deprecated: Function set_magic_quotes_runtime() is deprecated in /home4/mfoster/public_html/cb/forums/include/common.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home4/mfoster/public_html/cb/forums/include/common.php:62) in /home4/mfoster/public_html/cb/forums/header.php on line 34
Cross-Browser.com / Disabling X functions

Cross-Browser.com

X Library Forums

You are not logged in.

Announcement

New user registration is currently disabled.

#1 August 21, 2011 11:10:43 am

evanplett
New Member
Registered: August 19, 2011
Posts: 2

Disabling X functions

so, in the project I am working on, I am making use of the DragInFence function. It would be really handy if I could disable that function so that when I click and drag on the object it doesn't move. Is there a way to disable an X function?

Thanks,
Evan Plett

Offline

 

#2 August 21, 2011 8:08:45 pm

MikeFoster
Administrator
From: Alabama, USA
Registered: April 27, 2007
Posts: 874
Website

Re: Disabling X functions

Hi evanplett, Welcome to the forums!

Yes, if an element has been made draggable with xDragInFence or xEnableDrag you can enable/disable dragging like this...

var ele = xGetElementById("myDragEle");
ele.xDragEnabled = false;

Offline

 

#3 August 21, 2011 8:15:02 pm

evanplett
New Member
Registered: August 19, 2011
Posts: 2

Re: Disabling X functions

Wow, that is really easy. Thanks.

Offline

 

Board footer

Powered by PunBB 1.2.15
Copyright © 2002–2005 Rickard Andersson

Expand Restore Select Format Eval Load