C5 JQuery UI Dialogue window does not auto open unless logged in??
Permalink
Hi there, I'm trying to make a simple modal window pop-up after my home page has loaded using this code from the jQuery UI site demo.
Problem is that the modal window will only pop up if I'm logged in to my site? Any ideas why?
I've searched documentation and tried using the examples from herehttp://andrewembler.com/posts/javascript-jquery-and-concrete5/...
but still can only get the modal window to pop up when logged in!
Here's my code...
<script type="text/javascript">
$(window).load(function() {
$( "#dialog-modal" ).dialog({
height: 140,
modal: true
});
});
</script>
<div class="demo">
<div id="dialog-modal" title="Basic modal dialog">
<p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
</div>
</div><!-- End demo -->
Problem is that the modal window will only pop up if I'm logged in to my site? Any ideas why?
I've searched documentation and tried using the examples from herehttp://andrewembler.com/posts/javascript-jquery-and-concrete5/...
but still can only get the modal window to pop up when logged in!
Here's my code...
<script type="text/javascript">
$(window).load(function() {
$( "#dialog-modal" ).dialog({
height: 140,
modal: true
});
});
</script>
<div class="demo">
<div id="dialog-modal" title="Basic modal dialog">
<p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
</div>
</div><!-- End demo -->
![pvernaglia](/files/avatars/15959.jpg)
The jQuery pop up is not installed unless you are logged in. I use fancybox when I want pop ups on the front end. You can install it in your theme or use an add on like:http://www.concrete5.org/marketplace/addons/pug-gallery-and-popup-u...
Ahh right ok - I'll try fancybox. Seems funny that I can't use jquery pop up unless logged in.
Thanks John, jQuery UI scripts now work with your add on.