Cross-Domain JSON callback |
[eluser]jmcc1982[/eluser]
Hi How do I retrieve JSON data from a domain using jQuery? menu1 menu2 |data from objects 1| menu3 |or object 2 or 3.. | menu4 menu5 How do I get the content to change in the box on the right depending on the button hit on the left. I tried using a view that has the menu items, then when you select the button the jQuery is called that is then handled by the controller and posted back to the view... But no luck. I know I have to use JSONP for cross domain, but I'm having trouble using a controller function and dynamically displaying the data from an object. Any help would be greatly appreciated.
[eluser]mi6crazyheart[/eluser]
Give a try to phil sturgeon's codeigniter-restserver : https://github.com/philsturgeon/codeigniter-restserver Ref: http://net.tutsplus.com/tutorials/php/wo...igniter-2/
|
Welcome Guest, Not a member yet? Register Sign In |