Solved

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

Posted on 2009-04-02
4
734 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
[X]
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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

733 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