HTML_AJAX and $_GET['m']

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • R

    HTML_AJAX and $_GET['m']

    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:
    /url/?m=moduleID).

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

    /url/?m=moduleID&oth erstuff=....&c= ajaxaclass&m=aj axmethod

    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_Serv er)
    - 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
    method?

    thanks in advance for any help
    best regards R

  • Erwin Moller

    #2
    Re: HTML_AJAX and $_GET['m']

    R wrote:
    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:
    /url/?m=moduleID).
    >
    HTML_AJAX uses 'm' for method name, and all request become:
    >
    /url/?m=moduleID&oth erstuff=....&c= ajaxaclass&m=aj axmethod
    >
    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_Serv er)
    - 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
    method?
    >
    thanks in advance for any help
    best regards R
    Hi,

    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:
    $moduleid=$_GET["m"];
    to
    $moduleid=$_GET["moduleid"];

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

    Regards,
    Erwin Moller


    Comment

    • R

      #3
      Re: HTML_AJAX and $_GET['m']


      Erwin Moller napisal(a):
      R wrote:
      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:
      $moduleid=$_GET["m"];
      to
      $moduleid=$_GET["moduleid"];
      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

      $this->ajax->_getVar('m') ;
      to something like:
      $this->ajax->_getVar('ajaxm ethod');

      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
      R

      Comment

      Working...