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 8412061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:34:54+00:00 2026-06-10T00:34:54+00:00

from the callback function how can I get the selector passed to the main

  • 0

from the callback function how can I get the selector passed to the main function

$('.file_upload').uploadify({

        'uploader'  : 'uploadify/uploadify.swf',
        'script'    : 'uploadify/uploadify.php',
        'cancelImg' : 'uploadify/cancel.png',
        'folder'    : 'uploads',
        'auto'      : true,
        'buttonText': 'Upload a new file',
        'onComplete'  : function(event, ID, fileObj, response, data ) {
            //alert(fileObj.filePath);

            //get the uploaded file txt and add it to the textbox

            console.log(fileObj.filePath);
            $.get('readfile.php?file='+fileObj.filePath, function (data) {



            });

        // here I want to access the element the function called on 
        //$(this).parent().parent().find('textarea').val('this');

        }
});
  • 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-10T00:34:56+00:00Added an answer on June 10, 2026 at 12:34 am

    Posting comment as answer…

    The original element is available under event.target:

    $('.file_upload').uploadify({
        'onComplete'  : function(event, ID, fileObj, response, data ) {
            // Wrap event.target in jQuery: $(event.target)
            $(event.target).parent().parent().find('textarea').val('this');
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get my values from json_encode with a callback function data({ error:
I am trying to find out where a callback function came from, but e.parameter.source
I am forced to use data from within the getJSON callback function outside of
I want to render an object from my controller to a jQuery callback function.
I need to return multiple values from a ColdFusion function in an ajax callback
I'd like to know how can I get the ID field from my Model
I can’t get a call from JSFL to a SWFPanel to work via the
How can I get results from the Google Places library to show up on
the solution here: Jeditable CANCEL callback from AJAX callback? using onreset() doesnt seem to
I have an Android class which has a callback from an asynchronous HTTP process,

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.