1 (edited by mantas.s 2012-07-03 9:49:26 AM)

Topic: alter xajax_myFunc POST url address [Solved]

Hello everyone, how do I alter the post url right before executing my ajax function?

1) I register the function:

 $xajax->register(XAJAX_FUNCTION, array('myFunc', $this, 'customFunction'));

2) I use in javascript a call to launch the function:

xajax_myFunc();

Right before step 2 i need to dynamically alter POST url (add extra parameters to the url), so that insdead of
http://.../index.php i'd have
http://.../index.php?<dynamic content here>, (for example altered url:
http://.../index.php?testSubject=fun )

Solved, found that relatively easy by altering xajax.config.requestURI on run time smile