iframe content zoom in and zoom out jquery 1

iframe content zoom in and zoom out jquery

var anOtherOnZoomFunction = function(info) {
	console.log(info);
};

$.axZm.userFunc = $.fn.axZm.mergeCallBackObj($.axZm.userFunc, {
	onZoom: anOtherOnZoomFunction
});

// or like this when AJAX-ZOOM is already initialized:
$.fn.axZm.addCallback('onZoom', anOtherOnZoomFunction);

Here is what the above code is Doing:
1. We are creating a function which will be called when the user zooms in or out.
2. We are adding this function to the AJAX-ZOOM callback object.
3. We are initializing AJAX-ZOOM.

The function we created is called anOtherOnZoomFunction. It takes one parameter which is an object containing information about the current zoom level.

The function is added to the AJAX-ZOOM callback object by using the $.fn.axZm.mergeCallBackObj function. This function merges the callback object with the new function.

The callback object is then passed to the AJAX-ZOOM initialization function.

The function is also added to the AJAX-ZOOM callback object by using the $.fn.axZm.addCallback function. This function adds the function to the callback object.

The function is called when the user zooms in or out.

The function is called with an object containing information about the current zoom level.

The function prints the object to the console.

The object contains the following information:

Similar Posts