HTML_AJAX and $_GET['m']

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi All,

I'm using HTML_AJAX and it's really superb solution, but unfortunetly
my scripts must take 'm' parameter (framework uses it as:

HTML_AJAX uses 'm' for method name, and all request become:


so value of $_GET['m'] in PHP becomes ajaxmethod
framework takes m=ajaxmethod as module ID and fatal errors occure

I've saved the output of /ajax.php?client=all (HTML_AJAX_Server)
 - but it's over 3 000 lines of very sophisticated JavaScript

I've searched through it to find something related to 'm=' but failed

Maybe someone know to change default HTML_AJAX parameter name for

thanks in advance for any help
best regards R

Re: HTML_AJAX and $_GET['m']

R wrote:

Quoted text here. Click to load it


I don't know HTML_AJAX, but if it is very sophisticated and difficult to  
understand, why not change m=23 to muduleid=23, and change the name in the  
receiving serverside script form m to moduleid?
Probably only 1 point where it says something like:

But I don't know any of the packages you use, so maybe that is difficult  
too. :-)

Erwin Moller

Re: HTML_AJAX and $_GET['m']

Erwin Moller napisal(a):
Quoted text here. Click to load it

Well I have already over 200 links with m=moduleID on the main site

with users sites it would be something like 1 000 links with the 'm'
parameter ;)

and that's the bigest problem...

I've been also through the PHP source of HTML_AJAX, I can change the

to something like:

but I'm not that familiar with JavaScript to deal with the JavaScript
part of HTML_AJAX extension
I simply can not find the line in witch serverUrl is created and AJAX
parameters added ( c for class,  
m for method and so on)

best regards

Site Timeline