Sinisakrisan (Talk | contribs) (Created page with "Any profile application can open and use JomSocial popup window. There is 3 simple JavaScript function that you can use. <syntaxhighlight lang="php"> function cWindowShow(wind...") |
(No difference)
|
Revision as of 14:22, 18 January 2013
Any profile application can open and use JomSocial popup window. There is 3 simple JavaScript function 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. It is your responsibility to pass a function, (windowCall) which cWindow will simply execute. In most cases, windowCall would simply be a ajax call, which in turn will try to fill assign 'cWindowContent' id with html data.
Opening a popup window
Example:
var ajaxCall = 'jax.call("community", "plugins,walls,ajaxSaveWall")'; cWindowShow(ajaxCall, 'Compose', 450, 300);