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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:05:11+00:00 2026-05-25T18:05:11+00:00

I have to implement a functionality for a web application that provides an easy

  • 0

I have to implement a functionality for a web application that provides an easy way to select an element between thousands of them.
Now i have a select input in a form where the user selects the parent element of an object, from a pull of all objects in database. But there are too much elements to select this way.

On the other hand i’ve developed a partial of list & filter, for this object, so my question is:

Is there some way to implement something like: a Javascript that creates a pop-up or similar with the partial inside, then the user can just select one parent using the filters and pagination in the partial and submit the selected one to the original form?

Thank you very much for your time! 😀

  • 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-25T18:05:12+00:00Added an answer on May 25, 2026 at 6:05 pm

    I finaly solved this way:
    i used this javascript

        <script type="text/javascript">//script para abrir el selector de ud.org. sup.
        $(document).ready(function(){     
                $(".openDialog").click(function(e){
                    e.preventDefault();
                    //Get the screen height and width                    
                    var maskHeight = $(document).height();
                    var maskWidth = $(window).width();
                    $('.None_background').css("style","background-color:#eee");
                    $('#mask').css({'width':maskWidth,'height':maskHeight});
                    $('#mask').css('top',0);
                    $('#mask').css('left',0);
                    //$('#mask').fadeIn(1000);    
                    $('#mask').fadeTo("slow",0.5);
                    var winH = $(window).height();
                    var winW = $(window).width();
    
                    //Set the popup window to center
                    $("#dialog").css('top',  winH/4-$(id).height()/4);
                    $("#dialog").css('left', winW/4-$(id).width()/4);
    
                    //transition effect
                    $("#dialog").fadeIn(250); 
    
    
                });
                $('#mask').click(function () {
                    $(this).fadeOut();
                    $('.window').fadeOut(500);
                });
                $('.window .close').click(function(){
                    $('#mask').fadeOut();
                    $('.window').fadeOut(500);
                    //saving the selected unit in the form
                    var slct = document.getElementById('parent_unit');
                    var text= slct.options[slct.selectedIndex].text;
                    var value = slct.options[slct.selectedIndex].value;
                    document.getElementById('parent').innerHTML=text
                    document.getElementById('parent').href=value
                    document.getElementById('parentID').value=value
    
    
                });
        });
    </script>
    

    over this html:

            <div class="None_background window" id="dialog" style="padding:5px">
    
                 <?php include_partial('module/Partial', array('param'=>value));?>
    
        </div>
    
        <div id="mask">
        </div>
    

    also the fields in the form are named ‘parent’ and ‘parentID’

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

Sidebar

Related Questions

I have a custom web application that integrates with a SharePoint (MOSS 2007) solution.
I have a small web application based on asp.net 2010 that manages invoices. After
I have developed one asp.net web application and now i would like to add
I have to implement the VinPower application. They offer a Java version, a C
I have found that I often have to implement some sort of a scheduler
Let's say I have to implement a piece of T-SQL code that must return
I have a school project in which I have to implement a chat application,
I have a WSDL file defining a service that I have to implement in
I have a web-application in spring where tasks should be assigned to workers (say
I'm trying to find a way to implement file manager functionality in an mvc

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.