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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:56:23+00:00 2026-05-28T22:56:23+00:00

So I got a dialog box that is loaded dynamically using AJAX, in that

  • 0

So I got a dialog box that is loaded dynamically using AJAX, in that box, I have a file input that is replaced with Valums qq.FileUploader. I do call the init on the FileUploader after loading the content, my input box gets replaced properly by the FileUploader.

As you can see in the picture below, the input gets replaced by everything, and the new “hidden” input, is there. Problem is that I can’t click on it. However, I can drag-and-drop files correctly. So, the upload still works, but only drag-and-drop. This has been tested with Chrome and Firefox, both on Windows.

Image of dialog with input replaced

See Valums qq.FileUploader doesn't work when it's initialized after loading button by ajax

EDIT: The dialog code is not jQuery UI, it’s custom code, basically, I trigger an event when I open a dialog, and I’m binded on this event to execute the FileUploader code.

EDIT 2: So I tried using a timeout of 1s after the popup to execute the FileUploader code, but still no go. Also tried to play with z-indexes, and no go.

EDIT 3: After several weeks it’s still not working. I just can’t seem to be able to find the cause of this problem. Here are two images that illustrate where the “hidden” file upload is (in red). And that it works outside, but not inside a dialog.

This is outside a dialog, and it works just fine:

This is outside a dialog, and works

This is the SAME exact form, but inside a dialog, but this doesn’t work:

Same exact form, inside a dialog, doesn't work

EDIT 4: Just set up a JSFiddle with my code: http://jsfiddle.net/G5qP6/6/

However, as you can see, it works just fine in the JSFiddle, which get’s me wondering, why does it doesn’t work in my application.

  • 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-28T22:56:23+00:00Added an answer on May 28, 2026 at 10:56 pm

    From what I understand – you can’t click the upload button but you can drag’n’drop.

    If that’s the case this seems to be a CSS problem. Probably an element is overlapping your upload button and therefore you’re actually clicking on another element. Try to debug by setting borders and background color. If the upload button is being overlapped you’ll see which element is overlapping it.

    The other thing that comes to my mind is changing where you call Upload.initializeUploads();.
    I would put it in Dialog.init() right after you’ve done $('body').append(this.element);.

    Your example from fiddle works fine on my Firefox 10, Chrome 16, IE 8 and Opera 10(something).
    My suggestion also works with the same browsers.

    Your original code: http://tmp.itnews-bg.com/jValdron/
    What I’ve changed: http://tmp.itnews-bg.com/jValdron/index-2.html

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

Sidebar

Related Questions

I've got two branches of code. 1 has a dialog box that the other
I've got a jQuery dialog box that does display and respond to button clicks
I've got two forms, the mainform which opens up a dialog box that has
I've got an onbeforeunload event working that pops up a dialog box warning users
I have got the following code to show a dialog box when the image
I've got a dialog box that is opened by my main window. Among other
I've got a save dialog box which pops up when i press a button.
Okay, so I've got the following code shown below to create a dialog using
I've got a jQuery dialog box with a button to close it. The button
I have created a custom dialog, the code is below. The problem is that,

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.