Hi quite some problems doing an ajax call.
I wanna check if a pagetitle exists!
js function checkout(){ ... elem1.value is the value of a input field naw_title is the id of the input field
var test=sajax_do_call( "wfAjaxCheckPageTitle", [ elem1.value ], naw_title);
I registered ajax reaction
$wgAjaxExportList[] = 'wfAjaxCheckPageTitle';
function wfAjaxCheckPageTitle( $title ) { global $wgOut; return 'test' ; }
So if the title exists i wanna send back a errormessage, else nothing
regards mic
On 12/09/2007, Michael Heyder Info@hafenvolleyballer.de wrote:
Hi quite some problems doing an ajax call.
I wanna check if a pagetitle exists!
js function checkout(){ ... elem1.value is the value of a input field naw_title is the id of the input field
var test=sajax_do_call( "wfAjaxCheckPageTitle", [ elem1.value ], naw_title);
This doesn't look correct to me - the third parameter ought to be a valid callback which accepts an object parameter that happens to be the original request object, with status, responseText, etc. filled in.
I registered ajax reaction
$wgAjaxExportList[] = 'wfAjaxCheckPageTitle';
function wfAjaxCheckPageTitle( $title ) { global $wgOut;
return 'test' ;
}
So if the title exists i wanna send back a errormessage, else nothing
Rob Church
mediawiki-l@lists.wikimedia.org