Hi all!!
First i want to thanks your speedy help on my last problem. Now I have
another question. I have one window with nice wizard, i create it by the
following code:
function openAjaxPopup(link,title,width,height) {
var win = new Window({
id: "pacientes",
className: "alphacube",
showProgress: true,
parent: document.body,
title: title,
url: link,
width: width,
height: height,
resizable: false,
closable: true,
minimizable: false,
maximizable: false,
draggable: false,
userData: null,
showEffect: (Window.hasEffectLib ? Effect.Appear :
Element.show),
hideEffect: (Window.hasEffectLib ? Effect.Fade :
Element.hide),
showEffectOptions: {},
hideEffectOptions: {},
effectOptions: null,
parent: $('placeholder'),
onload: Prototype.emptyFunction,
opacity: 1,
recenterAuto: true,
wiredDrag: false,
closeCallback: null,
destroyOnClose: false,
gridX: 1,
gridY: 1,
})
win.showCenter(true);
}
When the wizard finishes i create a button that calls this funcion:
function closeAjaxPopup() {
parent.Windows.getFocusedWindow().close()
return true;
}
My problem is that i need to call some AJAX function (coded below), that
sends some info to div in document BODY, and i dont know how to refer it,
here is the ajax funtcion i need to call:
function asignarPaciente(){
var url = '../include/busqueda_conditions.php';
var pars = Form.serialize('nuevo_paciente');
var myAjax = new Ajax.Updater(
{success: 'placeholder'},
url,
{
method: 'post',
parameters: pars,
evalScripts: true,
onFailure: reportError
});}
The form serialize is the form appears in prototype window, my idea is make
a button that calls first asignarPaciente() function and later
closeAjaxPopup(), then the window will be closed and the DOCUMENT BODY, DIV
will be refreshed.
Hope you can help me,
Thanks a lot!!
--
Feliu Quetglas Canals
Balear de Chequeos S.L.
Telf.: 971 76 75 75 - Mov.: 669 25 27 43
email: [EMAIL PROTECTED]
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com