Solved

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

Posted on 2009-04-02
4
705 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
Comment Utility
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
Comment Utility
Did it solve the problem for you?
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now