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

  • Home
  • SEARCH
  • 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 8785925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:28:42+00:00 2026-06-13T21:28:42+00:00

I am running a post function, then after the function is over. I am

  • 0

I am running a post function, then after the function is over. I am running another function. Problem is the second function does not work, if I do not have an alert message in the function, it does not run…

jquery function is:

function applyeditable(){
    //alert('trying to apply editable class...');

$(".edit_mystatus").editable('/cgi-bin/my_cgi_script.pl', {
event       : 'dblclick',       //or dblclick
data        : " {'A':'Active','C':'Completed','D':'Deleted'}",
type        : 'select',
submit      : 'Ok',
indicator   : '<img src="http://my_website/images/indicator.gif">',
placeholder : 'Double Click to Edit',
tooltip     : 'Double Click to edit...',
style       : 'display: inline',
name        : 'name',
id          : 'id',
callback    : function(value, settings) {
                // console.log(this);
                // console.log('returned value= '+value+' we have to now disable rest of form if Completed or Deleted');
                // console.log(settings);
                }
});
$(".edit_mynotes").editable('/cgi-bin/my_cgi_script.pl', {
    event       : 'dblclick',       //or dblclick
    type        : 'textarea',
    rows        : 10,
    cols        : 100,
    cancel      : 'Cancel',
    submit      : 'Save',
    indicator   : '<img src="http://my_website/images/indicator.gif">',
    placeholder : 'Double Click to enter text',
    tooltip     : 'Double Click to edit...',
    style       : 'display: inline',
    name        : 'name',
    id          : 'id'
});
$(".ajaxfileupload").editable('/cgi-bin/my_cgi_script.pl', {
    type        : 'ajaxupload',
    submit      : 'Upload',
    cancel      : 'Cancel',
    indicator   : '<img src="http://my_website/images/indicator.gif">',
    tooltip     : "Double Click to upload...",
    style       : 'display: inline',
    name        : 'filename',
    id          : 'id'
});

$(".checkclass").click(function() {
    var $this = $(this);
    // $this will contain a reference to the checkbox
    var chkboxval = $this.val();
    if ($this.is(':checked')) {
        alert('the checkbox was checked val='+chkboxval);
    } else {
        alert('the checkbox was UNchecked val='+chkboxval);
    }
});
}

html is:

<input type="checkbox" class="checkclass" value="1_0">
<input type="checkbox" class="checkclass" value="1_1">
<input type="checkbox" class="checkclass" value="1_2">

…

  • 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-06-13T21:28:44+00:00Added an answer on June 13, 2026 at 9:28 pm

    the function applyeditable has to be called from the innermost ‘on success’ event of the calling function. that will take care of async nature of things.

    for example:

    callingfunction(abc){
    …
    …

    $.get(data, function(myfile) {
    $("#someid").html(myfile);
    applyeditable()     //this call runs after above is success (100% execution)
    });
    

    …
    }

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

Sidebar

Related Questions

I'm running into a problem with large POST data (>16384 bytes) when using Django
I have an ASP.NET web service running that accepts both HTTP POST and SOAP
Sorry I cannot post any source code... I have a code running a master/slave
Running into a bit of a funny problem. I have each day of the
I'm running into an issue with a jquery ajax function not properly returning its
I am having a problem with the jQuery Ajax function not sending the data
Edit: With enough rewriting, and commenting, I have it running, will post final below
Can anyone post a sample code wherein theres a running timer(javascript settimeout) and doing
I am trying to get a post-commit.bat script running on a Windows Vista Ultimate
Hi I am running WordPress latest version with a custom coded jQuery featured post

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.