using c5 popup's?

Permalink 1 user found helpful
I am building a package that will be using a popup window. Is there a way for us to load content into c5's built-in popup windows?

torchmedia
View Replies:
Remo replied on at Permalink Reply
Remo
if you save your code in the tools directory, you can open a dialog using somethign like this:

jQuery.fn.dialog.open({ 
      width: 750,
      height: 650,
      modal: false,
      href: CCM_TOOLS_PATH + "/files/search_dialog?search=1&fType=1",
      title: "my popup"
   });


The example opens the file manager..
webjedi replied on at Permalink Reply
webjedi
Can I call this pop up when not in edit mode? I am trying to create a modal box for a form.

WJ
Mnkras replied on at Permalink Reply
Mnkras
yes you can but if you want something nice i would look at something like Lightbox or Colorbox etc
webjedi replied on at Permalink Reply
webjedi
I am having a tough time getting ANY jQuery to work.

Recently I tried the jQuery.noConflict() method and replaced all the $ in the code.

I also have tried putting it in the Extra Headers attribute.

So whats the proper way to add jQuery customizations?
Tony replied on at Permalink Reply
Tony
adavis replied on at Permalink Reply
adavis
Hi, I am trying to get tis to work but if I use your example it just opens a pop-up (good!) but then immediately closes it with no error otherwise (bad).

<a href="" onclick="openwindow(); false">Open a popup</a>
<script type="text/javascript" charset="utf-8">
   function openwindow(){
      $.fn.dialog.open({ 
         width: 750,
         height: 650,
         modal: false,
         href: "http://www.google.com/",
         //href: CCM_TOOLS_PATH + "/sitemap_search_selector.php",
         title: "my popup"
      });
   }
</script>




I dont get any errors to the console, so not sure what is happening??