Solved

how do I open shadowbox directly in js with handleOversize=drag as a parameter?

Posted on 2009-04-02
4
710 Views
Last Modified: 2012-05-06
Hi,
I'm trying to get to work the function shadowbox.open with handleOversize=drag as parameters, among others, but I don't get it properly, it just take the default value (resize)
The parameters passed to the function shadowbox.open work without any trouble, but this handleOversize don't
¿Can anyone help?

here is the code:

Shadowbox.loadSkin('classic', '../../../../plantilla/zigurat_base/src/skin');
      Shadowbox.loadLanguage('es', '../../../../plantilla/zigurat_base/src/lang');
      Shadowbox.loadPlayer(['html', 'iframe', 'flv', 'img', 'qt', 'swf', 'wmp'], '../../../../plantilla/zigurat_base/src/player');

      
      window.onload = function(){

            Shadowbox.init();      
      };


var openShadowbox = function(content, player, title){
      Shadowbox.open({            
            content:                  content,
            player:                        player,
            title:                        title,
            handleOversize:            'drag'
      });
};


para abrir la shadowbox:
<a href="javascript:openShadowbox('recursos/inicio.jpg','img','Control estad&iacute;stico del hormig&oacute;n');">Ver ejemplo</a>



Thank you for your time


0
Comment
Question by:senenequis
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
sam2912 earned 500 total points
ID: 24211289
According to the shadowbox usage guide, you cannot pass option parameters in the Shadowbox.open method.
http://www.shadowbox-js.com/usage.html

You have to load the options via this function first:
Shadowbox.init({
    handleOversize: "drag"
});
0
 
LVL 14

Expert Comment

by:sam2912
ID: 24277436
Did it solve the problem for you?
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 37089689
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now