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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:24:14+00:00 2026-05-27T23:24:14+00:00

How to populate param. value for the http://valums.com/ajax-upload/ javascript correctly? I want to pass

  • 0

How to populate param. value for the http://valums.com/ajax-upload/ javascript correctly?

I want to pass some image title by

 params: { 
     param1: imgTitle
 },

Where $("#ImageTitle").val(); refers to <input type="text" id="ImageTitle" name="ImageTitle" value="" />

Any help please!

Thank you!!!

enter image description here

UPDATES:

The final solution is here.

<script type="text/jscript">

                                var uploader = new qq.FileUploader({
                                    element: document.getElementById('file-uploader-demo1'),
                                    allowedExtensions: ['jpg', 'jpeg', 'png', 'gif'],
                                    sizeLimit: 2147483647, // max size
                                    action: '/TradeshowSpeakers/UploadFile',
                                    multiple: false,
                                    onSubmit: function (id, filename) {
                                        this.params.param1 = $("#ImageTitle").val();
                                    },
                                    onProgress: function (id, fileName, loaded, total) {
                                    },
                                    onComplete: function (id, fileName, responseJSON) {
                                        //alert(responseJSON[0].Image);
                                    }
                                });
  • 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-27T23:24:14+00:00Added an answer on May 27, 2026 at 11:24 pm
    var imgTitle ...
    

    having been declared in a function is not in scope (visible to) the assignment of param1 and so it should be replaced with

    this.params.param1 = $('#imageTitle').val();
    

    Also as teh assignment of param1: imgTitle is now irrelevant it can just be assigned an empty string or false etc.

    A couple of references in understanding whats going on here:

    • http://net.tutsplus.com/tutorials/javascript-ajax/fully-understanding-the-this-keyword/
    • http://www.kirupa.com/html5/variable_scope_js.htm
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to populate a string with a double value using a sprintf
I have to populate javascript code in html layout (hidden fields, method params) with
Say for example I pass the following two HTTP POST parameters to my Rails
I have a Stored Procedure (SP) in which I pass in one value. In
I am trying to pass a parameter from AJAX back to my JSP page.
I want to populate form fields with values from a database immediately after the
I have several selects that I populate using JQuery Ajax. Most load fine. There
I populate a DataGrid from a CollectionViewSource. Each row has a delete button. On
I populate the GridView.DataSource from a EntityFramework Model: gwTimeLog.DataSource = _entities.TimeLogs; When a new
I'd like to populate an arraylist by specifying a list of values just like

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.