Question from a newbie

128 views
Skip to first unread message

Lorenzo Denami

unread,
Aug 7, 2012, 8:40:57 AM8/7/12
to json...@googlegroups.com
Hello Dears,
I have to design a simple application for smartphones using PhoneGap. I need to build a server in php and use its functionality with JavaScript (client side). I have to implement a communication via json rpc. I tried different libraries both server and client side, but I had many difficulties to make them work well. Can anyone tell me a mini tutorial (hello world style) that do interoperate php and javascript via json rpc? thanks

Lorenzo Denami

Gaetano Giunta

unread,
Aug 7, 2012, 5:26:42 PM8/7/12
to json...@googlegroups.com
If you use the jsonrpc library from phpxmlrpc.sf.net, you have the same api available both in php and js. It can probably help in your case.

Bye
Gaetano

James Cooper

unread,
Aug 8, 2012, 11:18:10 AM8/8/12
to json...@googlegroups.com
Hi there,

Barrister RPC has PHP and Javascript bindings.  Code examples here:


The "node" examples for NodeJS are almost identical to using JS in the browser.  A much more detailed JS example with browser specific code is here:


cheers

-- James


Lorenzo Denami

--
You received this message because you are subscribed to the Google Groups "JSON-RPC" group.
To view this discussion on the web visit https://groups.google.com/d/msg/json-rpc/-/jMS3HyOLLiAJ.
To post to this group, send email to json...@googlegroups.com.
To unsubscribe from this group, send email to json-rpc+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/json-rpc?hl=en.




--

James Cooper
http://blog.bitmechanic.com/
Reply all
Reply to author
Forward
0 new messages