What's new? | Help | Directory | Sign in
Google
modalbox
ModalBox is a JavaScript technique for creating modern (Web 2.0-style) modal dialogues or even wizards (sequences of dialogues) without using conventional popups and page reloads.
  
  
  
  
    
Search
for
Updated Dec 17, 2007 by andrej.okonetschnikow
Labels: Featured, Help
CallBacks  
Callbacks reference

Introduction

This page describes callbacks available for use in ModalBox.

Details

There are couple of callbacks supported by ModalBox. Here they are:

IMPORTANT NOTICE. Each callback is being removed from options of the ModalBox after execution.

Examples


Comment by goo...@primetimesolutions.com, Aug 27, 2007

hi

Comment by sanketrajdeora, Oct 18, 2007

et

Comment by krzysztof.kotlarz, Dec 11, 2007

Hi! Is it or will be possible to launch callbacks when you click on overlay; similar to afterHide method.

I mean; something which you can switch on/off to launch some functions in case of clicking on overlay.

Of course I tried to modify the code and I was able to launch some functions afert clicking on overlay, but I had no influence on working or not working of fuctions which I was calling back.

Thank you for your response. Regards and thanks for good piece of code.

Comment by mr.juvenile, Mar 27, 2008

Is it possible to call a user defined javascript function from inside a call back.

Comment by MolikJain, Apr 04, 2008

Hi,

I want to recieve form post values from one modalbox to another consequent modalbox form.

I used $POST in php, but it is not receiving values.

What to do.

Thanks in advance.

Molik Jain

Comment by Justinasu, Jun 10, 2008

All calbacks don't like to get function names with brackets. Dont define afterHide: your_function_name() of the event will not work. this thing troubled me for a few hours.

Comment by t...@interdirect.co.uk, Jun 25, 2008

afterLoad doesn't seem to work in IE 7? My code is:

Modalbox.show('myURL', {title: 'Click the location on the map where this venue is located.', width: 650, height:550, afterLoad: function() { alert('Content loaded successfully')}});

This is on an onClick event in a href.


Sign in to add a comment