473,405 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

HTML_AJAX and $_GET['m']

R
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&otherstuff=....&c=ajaxaclass&m=ajaxmet hod

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
method?

thanks in advance for any help
best regards R

Aug 23 '06 #1
2 1704
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&otherstuff=....&c=ajaxaclass&m=ajaxmet hod

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
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
Aug 23 '06 #2
R

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('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)

best regards
R

Aug 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Thomas Carcaud | last post by:
I read php manual many times but I can't figure out register_globals works. I m using Php 4.3.2 and register_globals on. It seems to have different effects on $_GET and $_SESSION. First with $_GET...
2
by: carramba | last post by:
Hi! Tahnx for taking time and reading! This script should load default page and default stylesheet, but its only loads default page, you have to actualy click on the style link to load style......
7
by: Dan | last post by:
I was trying to troubleshoot a login page that doesn't work - it keeps saying the login/password is missing - when my tracing discovered this peculiar behavior. register_globals is off, so at...
32
by: Nuno Paquete | last post by:
Hi group. I'm using this code to see if is there any parameter for variable "menu": if($_GET == "downloads") .... But this code log errors if there is no parameter passed (this heappens at...
27
by: meltedown | last post by:
urlencode turns # into %23 When I sent it thru $_GET, it dissapears, along with anything that comes after it. for example: urlencode turns HOYDM_EXC_#4_NAT into HOYDM_EXC_%234_NAT When I...
3
by: bhuvragu | last post by:
Hi , I am new to html_ajax which is part of PEAR package. I have created a demo on html_ajax. Demo is when the user types text in a text field, it would display the relevant matching words and...
2
by: keeps21 | last post by:
I have a script that recieves an id number via the address bar when a link is clicked. ie . index.php?id=1 if the link was for the story whose ID is 1. My script checks if a user is logged in,...
8
by: printline | last post by:
Hello I have a problem which i hope someone can help me with. I have a website where customers can login and their current and previous orders. What i need now is for the customers to look...
1
by: sheldonlg | last post by:
I have gotten to the point where it is trying to load the libraries. It fails there because it is trying to locate those javascript files on my home machine. Obviously, there is some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.