• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cross-Domain JSON callback


How do I retrieve JSON data from a domain using jQuery?

menu2 |data from objects 1|
menu3 |or object 2 or 3.. |

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.

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/

thanks will give it a shot

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.