Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
I want to add a floating div over a page or floating modal, keeping the page active

I am building an ember application. I want to add a floating div over a page or floating modal, keeping the page active.

I have added the above code in the didInsertElement hook of the modal component. i get an error draggable is not a function. Let me know if i can float a div on the page with or without using modal

<div id="floatModal" class="modal fade">
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true" {{action 'close'}}>&times;</button>
             <h4 class="modal-title">{{title}}</h4>
        </div>
        <div class="modal-body">
           {{yield}}
        </div>
    </div>
    <!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->

@$('.modal-dialog').draggable({
        handle: '.modal-header'
})
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

make sure you have included all JavaScript and css references

  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!