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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:58:10+00:00 2026-06-10T23:58:10+00:00

File uploads not working within jQuery UI Dialog From the post above, Dialog moves

  • 0

File uploads not working within jQuery UI Dialog

From the post above,

“Dialog moves its content outside of its form, and appends it to body. Probably to gain better control of the DOM, to make sure it always displays in the center, above everything else, and is not contained in some absolutely positioned DIV or so…”

If that is so, how can I go about having dynamic content on the popup dialog?

Lets say, I want to load a directoty tree on the dialog popup.

I am using ASP.Net MVC 3.0.

When I click on a button on page1, I make an ajax call to a controller (controller1). There is a view (view1) associated with the controller. I get the result and set that as the dialog body and open the dialog.

Now in view1, I have added a javascript element for setting a div’s content dynamically.

<script type="text/javascript">
$(document).ready(function () {

       $("#treeViewDivOnPopup")
.html('<p>All new content. <em>You bet!</em></p>');

});
</script>

I have this div – treeViewDivOnPopup on view1. All the static text on the view is correctly displayed on the dialog when I execute this. But the script is not able to find the div dynamically.

How can I get this to work ?

  • 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-10T23:58:12+00:00Added an answer on June 10, 2026 at 11:58 pm

    I could do this from the parent page. I could manipulate the div on the popup from the open funciton, in the jquery ui dialog call.

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

Sidebar

Related Questions

I have been using a jquery plugin called uploadify for handling file uploads as
Why is this line not working in constants.php :- define('FILE_UPLOAD_VIRTUAL_DIR', base_url() . '/uploads/'); base_url()
I have a form that uploads a file to my Drupal installation. I want
I'm using uploadify to do file uploads on a form. The files are required
Original question So the project I'm working on is deathly paranoid about file uploads.
I am not sure why but the post to my external PHP file is
I'm working on doing file uploads using the libs3 library found here: http://libs3.ischo.com/dox/index.html I'm
I am working on an ASP web page that handles file uploads. Only certain
While I was trying to uplaod file using php on windows machine its working
I am working on an admin area that will have file uploads on several

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.