Tuesday 15 February 2011

android - Html(jquery) drag and drop not working in AndroidEmulator -


I'm a new Android. I created a project in HTML ... it's running completely whatever I need .. to run this HTML project in Android emulator..I do not know what the reason is ... design has come in Android emulator ... but drag and drop is not working in Android emulator only ..I want to run the PhoneGap HTML code..If you want Nte that Piels Tell Me .. Thanks in advance .. This is my HTML (jquery code)

  & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" & gt; & Lt; Title & gt; - By JSField demo scalery & lt; / Title & gt; & Lt; Script type = 'text / javascript' src = 'http: //code.jquery.com/jquery-1.4.4.min.js'> & Lt; / Script & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "/ css / normalize.css" & gt; & Lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.js" & gt; & Lt; / Script & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "/ css / result-light.css" & gt; & Lt; Style type = 'text / css' & gt; .ui- layout-center {width: 400px; Height: 300px; Limit: 1px solid black; } .ui-state-hover {background-color: # f9ffff; } & Lt; / Style & gt; & Lt; Script type = 'text / javascript' & gt; // !! [CDATA [$ (window) .load (function) {jQuery (function) {jQuery ("component"). Draggable ({// Use a supporting clone that adds to 'body', then a panel assistant '' Not included '': function () {back to jQuery (this) .clone () .appendo ('body'). CSS ({'zIndex': 5});}, cursor: 'move', prevention: Document "}); jQuery ('.ui-layout-center'). Dropspace ({activeClass: 'ui-state-hover', accept: 'component', drop: function (event, UI) (if (! Ui.draggable.hasClass ("left")) jQuery (this) .append (jQuery (ui.draggable) .clone () AddClass ("left ") .draggable ());}});}}}}); //]> gt; & lt; / script & gt; & lt; / head & gt; & lt; body & gt; & lt ; Div class = "component"> element 1  gt; div class = "element"> element 2  

Unfortunately, the jQuery UI does not work properly with the touch event. However, the jQuery UI has many plugins to enable touch, touch punch is one:

You should consider updating the jQuery version you are using ... v1.4.4 3 years Is old now

No comments:

Post a Comment