[HTML_AJAX-devel] HTML_AJAX and $_GET['m']
Joshua Eichorn
josh at bluga.net
Mon Aug 28 09:01:26 PDT 2006
Elizabeth Smith wrote:
> Lukasz Budnik wrote:
>> Hi All,
>>
>> I'm using HTML_AJAX and it's really superb solution, but unfortunately
>> my scripts must take 'm' parameter (framework uses it as:
>> /url/?m=moduleID).
>>
>> HTML_AJAX uses 'm' for method name, and all request become:
>> /url/?m=moduleID&otherstuff=....&c=ajaxaclass&m=ajaxmethod
>>
>> so value of $_GET['m'] in PHP becomes ajaxmethod
>> framework takes m=ajaxmethod as module ID and fatal errors occur
>>
>> I have already over 200 links with m=moduleID on the main site
>> and that's the biggest problem...
>>
>> I've saved the output of /ajax.php?client=all
>> - but it's over 3 000 lines of very sophisticated JavaScript
>>
>> I've been also through the PHP source of HTML_AJAX, I can change the
>> $this->ajax->_getVar('m');
>> to something like:
>> $this->ajax->_getVar('ajaxmethod');
>>
>> 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), I've searched
>> through it to find something related to 'm=' but failed
>>
>> Maybe someone know to change default HTML_AJAX parameter name for
>> method?
>>
>> thanks in advance for any help
>> best regards
>> Lukasz
>>
>> _______________________________________________
>> Html_ajax-devel mailing list
>> Html_ajax-devel at lists.bluga.net
>> http://lists.bluga.net/mailman/listinfo/html_ajax-devel
>>
> Actually, we probably ought to make this a bit easier to configure.
> Perhaps a class property that can be set or overridden by an extending
> class on the php side
> and a javascript variable that can be set by the user (I'm thinking a
> la the use png filter on file extension for Dean Edwards IE7 - that's
> a simple but neat trick for compatibility
> http://dean.edwards.name/IE7/usage/configure.html)
>
> For now Request.js - the completeUrl function is where url rewriting
> gets done - the file included with client=all is built from all the
> smaller files so you'd have to rebuild the file
> or do a search and replace on it - I'm not sure if there's anywhere
> else that's used on the js side - Josh? Any opinions on the subject?
> _______________________________________________
> Html_ajax-devel mailing list
> Html_ajax-devel at lists.bluga.net
> http://lists.bluga.net/mailman/listinfo/html_ajax-devel
I've got no problem making this configurable. It would also be handy to
put this data in the headers optionaly.
-josh
More information about the Html_ajax-devel
mailing list