Click here to Skip to main content
15,917,610 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Formatting Numbers to Local Settings Pin
Manfred Rudolf Bihy31-May-12 3:02
professionalManfred Rudolf Bihy31-May-12 3:02 
GeneralRe: Formatting Numbers to Local Settings Pin
Nagy Vilmos31-May-12 4:06
professionalNagy Vilmos31-May-12 4:06 
GeneralRe: Formatting Numbers to Local Settings Pin
Manfred Rudolf Bihy31-May-12 4:19
professionalManfred Rudolf Bihy31-May-12 4:19 
QuestionExtJS Pin
RameshChTulal29-May-12 1:28
RameshChTulal29-May-12 1:28 
AnswerRe: ExtJS Pin
thatraja4-Jun-12 17:18
professionalthatraja4-Jun-12 17:18 
QuestionUpdate DIV text by Javascript Pin
iucaa27-May-12 10:06
iucaa27-May-12 10:06 
AnswerRe: Update DIV text by Javascript Pin
Sandeep Mewara27-May-12 19:58
mveSandeep Mewara27-May-12 19:58 
GeneralRe: Update DIV text by Javascript Pin
iucaa29-May-12 10:20
iucaa29-May-12 10:20 
Questionimplement double click event on Div child elements Pin
Steve Holdorf27-May-12 2:18
Steve Holdorf27-May-12 2:18 
AnswerRe: implement double click event on Div child elements Pin
Steve Holdorf28-May-12 7:14
Steve Holdorf28-May-12 7:14 
QuestionJava Script moveing a picture around the screen Pin
Boaz Yaari26-May-12 5:00
Boaz Yaari26-May-12 5:00 
AnswerRe: Java Script moveing a picture around the screen Pin
Ali Al Omairi(Abu AlHassan)26-May-12 20:57
professionalAli Al Omairi(Abu AlHassan)26-May-12 20:57 
GeneralRe: Java Script moveing a picture around the screen Pin
Boaz Yaari27-May-12 10:43
Boaz Yaari27-May-12 10:43 
GeneralRe: Java Script moveing a picture around the screen Pin
BobJanova28-May-12 23:34
BobJanova28-May-12 23:34 
GeneralRe: Java Script moveing a picture around the screen Pin
Boaz Yaari27-May-12 11:22
Boaz Yaari27-May-12 11:22 
GeneralRe: Java Script moveing a picture around the screen Pin
Ali Al Omairi(Abu AlHassan)28-May-12 0:38
professionalAli Al Omairi(Abu AlHassan)28-May-12 0:38 
AnswerRe: Java Script moveing a picture around the screen Pin
Ali Al Omairi(Abu AlHassan)31-May-12 7:40
professionalAli Al Omairi(Abu AlHassan)31-May-12 7:40 
GeneralRe: Java Script moveing a picture around the screen Pin
enhzflep31-May-12 10:38
enhzflep31-May-12 10:38 
GeneralRe: Java Script moveing a picture around the screen Pin
Ali Al Omairi(Abu AlHassan)1-Jun-12 1:15
professionalAli Al Omairi(Abu AlHassan)1-Jun-12 1:15 
AnswerRe: Java Script moveing a picture around the screen Pin
enhzflep29-May-12 10:41
enhzflep29-May-12 10:41 
QuestionHow to change mouse cursor in jQuery UI resizable plugin? Pin
Tesic Goran25-May-12 0:06
professionalTesic Goran25-May-12 0:06 
AnswerRe: How to change mouse cursor in jQuery UI resizable plugin? Pin
Ali Al Omairi(Abu AlHassan)29-May-12 5:08
professionalAli Al Omairi(Abu AlHassan)29-May-12 5:08 
QuestionA Unique Problem - Ignoring Placing Page on Back Button History Pin
OrangeV24-May-12 5:40
OrangeV24-May-12 5:40 
AnswerRe: A Unique Problem - Ignoring Placing Page on Back Button History Pin
Sandeep Mewara24-May-12 9:02
mveSandeep Mewara24-May-12 9:02 
QuestionHow to make the text box draggable using jQuery? Pin
Tesic Goran23-May-12 8:45
professionalTesic Goran23-May-12 8:45 
Is anybody there who has experience with making html input text box draggable using jQuery?

I've tried to wrap text box inside div and can make it resizable, but not draggable. The div and text box are placed on standard jQuery UI dialog. Actually, I need both - draggable and resizable html input text box inside dialog.

The code is as follows:

JavaScript
$(document).ready(function() {
    $("#btnShow").click(function(e) {
        $('#dialog').dialog("open");
    });
    $('#dialog').dialog({
        title: "Sample dialog",
        resizable: false,
        autoOpen: false,
        width: 400,
        height: 300,
        buttons: [{ text: "OK", click: function() { /* do something */ } },
            { text: "Cancel", click: function() { $(this).dialog("close") } }]
    });
    $('#divText1').draggable({
        containment: "parent",
        cursor: "move"
    }).resizable({
        containment: "parent",
        handles: "e, w"
    });
});


HTML
<input id="btnShow" type="button" value="Show" />

<div id="dialog" title="Dialog Box" style="border: solid 1px black; margin: 0px 0px 0px 0px; padding: 5px 0px 0px 5x;">
    <div id="divText1" style="width: 200px; height: 30px;">
        <input type="text" style="width: 98%;" value="Hello world!" /><br /><br />
    </div>
</div>


Thank you in advance.

Goran

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.