Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7417963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:47:52+00:00 2026-05-29T07:47:52+00:00

I have written a code to integrate timepicker with editable which is being used

  • 0

I have written a code to integrate timepicker with editable which is being used to make all coulmns except the hidden id coulmn and the first shown coulmn editable . I couldn’t get the fnupdate make my edited coulmn to be updated to the new value when it is posted to server side . I am able to get the posted values for server side processing but the clientside is not gettting updated by fnupdate .

Please see the code below and try to tell me what i am doing wrong because i am having many pages which function the same way .

    $(document).ready(function() {

        oTable = $('#scheduleTable').dataTable(
        {
            "sDom"          : '<"top"flip>rt<"bottom"<"clear">',
            "bAutoWidth"    : false,
            "bProcessing"   : true,
            bJQueryUI:true,
            "bServerSide": true,
            "bFilter":false,
            "bSort": false,
            "bInfo": false,
            "bPaginate":false,
            "aoColumns":[
                {
                    "bVisible" : false
                },
                {
                },
                {},
                {},
                {},
                {}
            ],
            "fnRowCallback" : function (nRow, aData, iDisplayIndex) {
                $(nRow).attr('id', '' + aData[0]);
                //i starting from one to make the first element in td non editable
                for (i = 1; i < aData.length; i ++) {
                    $('td:eq(' + i + ') ', nRow).editable("<?= $aupdateUrl; ?>", {
                        'callback': function (sValue, y) {
                            var aPos = oTable.fnGetPosition(this);
                            oTable.fnUpdate(sValue, aPos[0], aPos[1]);

                        },
                        "submitdata": function ( value, settings ) {
                            return {
                                "row_id": this.parentNode.getAttribute('id'),
                                "column": oTable.fnGetPosition( this )[2]
                            };
                        },
                        'height': '14px',
                        indicator : 'Saving...',
                        tooltip : 'Doubleclick to edit...',
                        type       : "timepicker",
                        placeholder : '&nbsp;'
                    });
                }

                return nRow;
            },

            "sAjaxSource"   : "<?= $aSourceList; ?>/startdate/<?= $this->startdate; ?>"
        }
    );
    });
    $('.ui-datepicker-close').live('click', function (e){
        e.preventDefault();
        $('#scheduleTable tbody td input').parents("form").submit();
    });

$.editable.addInputType('timepicker',{
        /*create input element*/
        element:function(settings,orginal){
            var form = $(this),
            input = $('<input type="text">');
            form.append(input);
            return (input);
        },

        plugin:function(settings,original){

            /*Don't cancel inline editing onblur to allow clicking datepicker*/
            settings.onblur = 'nothing';
            $("input",this).filter(":text").timepicker(
            {   timeFormat: 'hh:mm',
                'hourMin':6,
                'hourMax':21,
                'showSecond': false,
                'hourGrid':2,
                'minuteGrid':10

            }
        );
        }
    });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:47:52+00:00Added an answer on May 29, 2026 at 7:47 am

    I was able to solve the problem .The main thing that i was doing wrong was that i didn’t have json response with only one value from my server side zend framework action.Therefore it caused the editable to function in a way that it couldn’t put the value(the response) as the new value in the td element. Hope some on find it usefull peace!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written code that opens 16 figures at once. Currently, they all open
I have written some code to ensure that items on an order are all
I have the following problem. I am trying to integrate a large code written
I have written some code which checks a site for broken links using the
I have code written in c, which contains some complex algorithms and I want
I have written code that automatically creates CSS sprites based on the IMG tags
I have written code in Java to access web cam,and to save image... I
I have written some code in my VB.NET application to send an HTML e-mail
I have written jQuery code, in files Main.html and ajax.php . The ajax.php file
I have written some code for playing a .wav through my application. Now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.