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

#1
[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.

#2
[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/

#3
[eluser]jmcc1982[/eluser]
thanks will give it a shot


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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