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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:06:28+00:00 2026-05-26T14:06:28+00:00

I am using plupload in a from which is loaded dynamically through AJAX and

  • 0

I am using plupload in a from which is loaded dynamically through AJAX and also this form has a captcha image.
I was struggling to make plupload shim to position correctly. Then I found a solution which works in almost all browsers, except Google Chrome. Here is my solution:

<span id="upl_container" style="position:relative;">
    <input type="button" id="my_button" value="Click me to upload something" />
</span>

In uploader settings I set:

        browse_button : 'my_button',
        container : 'upl_container',

Now this makes the shim to be absolutely positioned in a relative parent, where the parent (span) is exactly the size of the button (I could not use div because it takes 100% width of its parent and then plupload has positioning problems on all browsers).

When I inspect the plupload shim settings in Firefox (where it is positioned correctly), I see the following:

element.style {
    background: none repeat scroll 0 0 transparent;
    height: 28px;
    left: 0;
    position: absolute;
    top: -4px;
    width: 78px;
    z-index: 99999;
}

but in Chrome it shows me:

element.style {
position: absolute;
background: transparent;
z-index: 99999;
top: 0px;
left: 146px;
width: 70px;
height: 23px;
background-position: initial initial;
background-repeat: initial initial;
}

Obviously, the left property is much too big.

For now I don’t care if it is a bug or not, I just want to find some workaround how to force left side of plupload to be 0. I tried to add a Javascript code which sets left to 0 in Init, Refresh, PreInit callbacks to plupload, but this does not help, the left side anyway jumps to 146px.

Is there any way to force the left side of shim to be 0px?

(BTW, I have set Flash to be the default plupload runtime with fallback to HTML4 and HTML5).

  • 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-26T14:06:29+00:00Added an answer on May 26, 2026 at 2:06 pm

    Ok, so I went with the following ugly code:

    uploader.bind('Refresh', function(up) {
        $('#'+up.settings.container + ' > div').css('left',0);
        $('#'+up.settings.container + ' > div').css('top',0);
        $('#'+up.settings.container + ' > div').css('width','100%');
        $('#'+up.settings.container + ' > div').css('height','100%');
        $('#'+up.settings.container + ' > form').css('left',0);
        $('#'+up.settings.container + ' > form').css('top',0);
        $('#'+up.settings.container + ' > form').css('width','100%');
        $('#'+up.settings.container + ' > form').css('height','100%');
        $('#'+up.settings.container + ' > div').children().css('left',0);
        $('#'+up.settings.container + ' > div').children().css('top',0);
        $('#'+up.settings.container + ' > div').children().css('width','100%');
        $('#'+up.settings.container + ' > div').children().css('height','100%');
        $('#'+up.settings.container + ' > div').children().css('font-size','20px');// default is 999px, which breaks everything in firefox
    })
    

    And yay! it works for flash, htm5, htm4 runimes, tested all on Chrome, Firefox, IE7, IE9. The shim is in place, finally.

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

Sidebar

Related Questions

I'm using plupload to make an ajax file uploading. Now the plupload.Uploader class has
Using android 2.3.3, I have a background Service which has a socket connection. There's
I'm using the Plupload file uploader within a form. I want to customize it
I'm using plupload to allow users to upload photos to my website, which works
I'm used to using a standard form with JavaScript validation, custom captcha... etc. Now
I am planning on using, either the Uploadify or Plupload, image upload libraries in
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using C#, I need a class called User that has a username, password, active
I'm using plupload to upload multiple files at once. I want to assign unique
I'm using plupload to upload files to my server ( http://www.plupload.com/index.php ), however 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.