Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2009-04-02
4
729 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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)

809 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