Hi,
I need to develop a plugin that would display a dialog with some XAJAX interaction (text box, depending on input (needs to be processed on the server), change some text). Now I've got my plugin integrated, customized, but I can't get XAJAX to work with it. Two solutions I've tried are:
1) put my plugin into "myplugin.php", and try setting up XAJAX in it
now the display shows up, but keeps on loading forever (those blinking dots appear).
2) XAJAX generates javascript function which invoke the desired PHP functions.I tried calling those functions from the dialog using something along the lines of
which had two problems
a) the function always only seemed to be invoked AFTER the dialog was closed
b) I couldn't figure out a way to access the dialog from within the "top" window context to be able to display the results of the query in the dialog box.
would anyone be able to point out what I'm doing wrong? I've been stalling for over a day now and quite run out of ideas.. I'm no JS expert, wondering off my usual specialization here. Alternative solutions welcome.
I need to develop a plugin that would display a dialog with some XAJAX interaction (text box, depending on input (needs to be processed on the server), change some text). Now I've got my plugin integrated, customized, but I can't get XAJAX to work with it. Two solutions I've tried are:
1) put my plugin into "myplugin.php", and try setting up XAJAX in it
<?php require_once("misc/xajax/xajax_core/xajax.inc.php"); $xajax->setFlag('debug',true); $xajax->configure('javascript URI','misc/xajax'); $xajax->processRequest(); ?>
now the display shows up, but keeps on loading forever (those blinking dots appear).
2) XAJAX generates javascript function which invoke the desired PHP functions.I tried calling those functions from the dialog using something along the lines of
window.top.myfunction()
which had two problems
a) the function always only seemed to be invoked AFTER the dialog was closed
b) I couldn't figure out a way to access the dialog from within the "top" window context to be able to display the results of the query in the dialog box.
would anyone be able to point out what I'm doing wrong? I've been stalling for over a day now and quite run out of ideas.. I'm no JS expert, wondering off my usual specialization here. Alternative solutions welcome.