We help IT Professionals succeed at work.
Get Started

dialog box wont open a  second time

Johnny
Johnny asked
on
246 Views
Last Modified: 2014-10-08
i have
$(document).ready(function() {

    $('#example1').bind('click', function(e) {
        e.preventDefault();
        new $.Zebra_Dialog('<strong>Zebra_Dialog</strong>, a small, compact and highly configurable dialog box plugin for jQuery');
    });

    $('#profile').bind('click', function(e) {
        e.preventDefault();
        new $.Zebra_Dialog('<strong>Some dummy content:</strong><br><br>', {
            source: {'ajax': '../j_social/user_profile.php'},
            width: 800,
            show_close_button: false,
            animation_speed_show: 375,
            animation_speed_hide: 375,
            title:  'Profile External content loaded via AJAX'
        });
         return false;
    });



});

Open in new window


im getting an error of
Uncaught TypeError: undefined is not a function 

Open in new window

for line 10 thats the  new $.Zebra_Dialog line
what am i doing wrong?? how do i fix the ability to open a second time please?
note: again the first round works fine. able to open it and close it fine

thank you in advance for any code or help you may provide.
Johnny
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 3 Answers and 14 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE