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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:41:57+00:00 2026-06-16T04:41:57+00:00

I’m using uploadify fileupload control in my MVC3 application. I’m trying to put the

  • 0

I’m using uploadify fileupload control in my MVC3 application.

I’m trying to put the fileupload browse button in jQuery dialog box.

When i used the jQuery dialog box to render the content of fileupload, it worked fine in firefox but it doesnot work in Chrome.

I could see the Browse button in jQuery dialog box, but unable to click.

I’ve noticed that if modal:true is set to Dialog box, it is not working. If i comment out the modal it works fine.

However i could see this post, but i couldnt help me. Still having the same issue

Here is my HTML:

<body>
    <div id="fileupload" style="display:none">
        <div style="clear: none;">
            File to Upload:
            <input type="file" name="file_upload" id="file_upload" style="padding-left: 50px;"/><hr />
        </div>
        <p style="text-align: right;">
            <input type="submit" id="selectimage" value="Ok" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
            <input type="submit" id="cancelimage" value="Cancel" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" onclick="cancelupload();" />
        </p>
    </div>
    <input type="button" id="btnImg" />
</body>

Here is my javascript:

$(function(){
    $("#btnImg").click(function () {
        $("#fileupload").dialog({
            width: '511',
            height: '200',
            modal:true,
            //show: "blind",
            position: [300, 500]
        });
    });
});

If i use

$('#fileupload').dialog({ modal: true, autoOpen: false });

prior to the above code, i’m unable to get the popup when btnImg is clicked

Any help could be appreciated

  • 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-16T04:41:59+00:00Added an answer on June 16, 2026 at 4:41 am

    Additional from comments:

    Uploadify has a z-index of 1 applied automatically that needs changing.

    Add this to your CSS to fix the problem:

    .swfupload { z-index: 100000 !important; }
    

    Original answer:

    Just tested this out in Chrome and the problem as far as my tests have gone is the HTML structure you’re using.

    jQuery-UI Dialog will take an element from anywhere in the DOM and display it as a dialog, it doesn’t need to be nested within the input elements button.

    <body>
    
        <div id="container">
    
            <input type="button" name="dialogOpen" value="open dialog!" />
    
        </div>
    
        <!-- using jquery uis helper classes to hide content is a better way than
             declaring inline styles -->
    
        <div id="modalWindow" class="ui-helper-hidden" title="Modal window">
    
            <h1>Example Modal Window</h1>
            <p>...</p>
    
        </div>
    
    </body>
    

    Notice that the modal window html is outside the container and hidden. This guarantees you that the stacking order of parent elements has no effect on the dialog html.

    $('#container').on('click', 'input[name="dialogOpen"]', function(event) {
    
        // Using form buttons in some browsers will trigger a form submit
        event.preventDefault();
    
        $('#modalWindow').dialog({
            width : 500,
            height : 200,
            ...
        });
    
    });
    

    As an extra, you don’t even need DOM elements to create dialogs. You can build the dialog in jQuery or javascript and then call dialog on it.

    // Create the new element, populate with HTML and create dialog
    $('<div />', {
        'id' : 'modalWindow',
        'title' : 'New modal window'
    })
    .html('<h1>New modal</h1><p>Modal text</p>')
    .dialog();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I am trying to loop through a bunch of documents I have to put
I am reading a book about Javascript and jQuery and using one of the
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only

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.