Drag n drop does not work on ipad

Hi, I am testing the program out on an ipad and am having no success with the drag and drop matching quiz. How do I start using the html5 drag and drop behavoir? I know it is ajax but how can I get it to work? Thanx

mohan's picture

Drag and drop does not work on ipad

 

Hi,
 
Can you please tell me which dokeos version you are using. Is the following code is added in your main/inc/tool_header.inc.php
 
$htmlHeadXtra[] = '<script type="text/javascript">
        (function ($) {
           try {
                var a = $.ui.mouse.prototype._mouseMove; 
                $.ui.mouse.prototype._mouseMove = function (b) { 
                b.button = 1; a.apply(this, [b]); 
                } 
            }catch(e) {}
        } (jQuery));
    </script>';
 
 
$device_info = api_get_navigator();
$device = $device_info['device'];
$get_machine = $device['machine'];
 
if ($get_machine == 'ipad' || $get_machine == 'android') { // Load only
when the device is an IPAD
  $htmlHeadXtra[] = '<script type="text/javascript"
src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.ui.touch-punch.min"></script>';
}
 
can you please check and let me know.
 
Thanking you,

Drag and drop does not work on Modules position. Dokeos 2.2

I try to change modules position with drag and drop feature and does not work . In Links section it wokrs!

I think something is wrong in Modules. The version I an using is Dokeos 2.2

mohan's picture

Drag and drop does not work on Modules position. Dokeos 2.2

Hi,

I checked Dokeos 2.2 version it's working for me, could you please send me the screenshots and which browser are you using.

Thankyou.