Popup Window

Any profile application can open and use a JomSocial popup window. There are three (3) simple JavaScript functions that you can use.

function cWindowShow(windowCall, winTitle, winWidth, winHeight);
function cWindowActions(action);
function cWindowHide();

cWindowShow does not know how to fill up the window. You must pass a function to it, windowCall, which cWindow will simply execute. In most cases, windowCall would simply be an Ajax call, which in turn, will try to fill cWindowContent id with HTML data.

Opening a Popup Window


var ajaxCall = 'jax.call("community", "plugins,walls,ajaxSaveWall")';
cWindowShow(ajaxCall, 'Compose', 450, 300);