Topic: How to change xajax.config.requestURI

I need change the php file where xajax call recived because i have design restricted and my aplication is made by modules and each modules have a controller especific that i call through xajax.

I'll try to do this:

function ajaxController(){
   
    xajax.config.requestURI = "MyNewPage.php";
    xajax_myFunction();

}

but nothing happend.

How can i do this?

Thanks.

Re: How to change xajax.config.requestURI

The docs show this:

xajax.config.setDefault = function(option, defaultValue) { }

The js code looks like this:

xajax.config.setDefault = function(option, defaultValue) {
    if ('undefined' == typeof xajax.config[option])
        xajax.config[option] = defaultValue;
}

So I guess you would say xajax.config.setDefault('requestURI','MyNewPage.php');

Give it a try and post back if it doesn't work...

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: How to change xajax.config.requestURI

Thanks Ed, i tried that but doesn't work, when i do alert(xajax.config.requestURI); it show me the original php page.

Re: How to change xajax.config.requestURI

I believe this should only send your xajax requests to the new uri.

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.