Hi,

I was trying to follow your example and to do the same thing as amphp but for the json part provided in amfphp 1.9.
Unfortunately, I don't succeed in making the services methods "visible" from the json overrided gateway. (firebug send me a "Object not found" after the request).

Have you ever tried something like this? I'll be glad to send you the files I already developed to get some advice.

thx,

ps: I know there is another module specific to json, but for a reason I don't know, I can't make it work with IE, even if it's working perfectly with Firefox.

Comments

JoachimVdH’s picture

Status: Active » Closed (fixed)

on the services project page you can find a link to the json project ( http://drupal.org/project/json_server ), like amfphp it needs services module.

Joachim

Striky2’s picture

Yes, I've tried this module but, as I said, I can't make it work with IE7, even if it's working with Firefox.
On my Firefox, system.connect for instance works perfectly (and firebug traces the calls, everything is just ok but... IE is not).

Btw, if someone has ever had some similar bugs, I'll be happy to know about :)

So, after looking around the json_server js files (too complex js for my understanding) I was looking for another possible solution.
I was wondering if it was possible to use the json.php provided into the amfphp core files, and overriding the gateway like it has been done for amfphp module using the amfphp core files.

thx

JoachimVdH’s picture

I know amfphp has the json feature, but it's not good practice to offer same service from 2 fronts.
Because you'll end up using the same services from json-service as from amfphp-service, the 'complicated' result is inherited.
You can always create the gateway-override yourself and test the outcome. (even send it as a patch to the community)
(oeps, overriding my first sentence)

I'm not familiar with json and i don't have ie7. So i can't help you with the srtange behaviour of ie7.
Since it works for firefox, i asume that the code which consumes the json-data is not ie7 'approved'.
( just saw you found the answer : http://drupal.org/node/235470 )

Joachim