CodeIgniter Forums
ajax with CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: ajax with CI (/showthread.php?tid=38530)



ajax with CI - El Forum - 02-10-2011

[eluser]philfry[/eluser]
I'm trying to re-write some code with CI. I previously had a php file that was referenced with anytime there was a post. I have been using the xmlextras.js in most of my html pages to basically populate dropdowns based on database queries. I think I will still be able to accomplish this but I'm unsure how to attack it. Also, in my javascript i had the typical

xmlHttp.Open ("GET" "someurl");

Are there any specific tutorials that I should read? I have a model setup and have tested to make sure I can do queries and print this in a view. I had a function in my old php file and I would assume I would need to re-create this in my model. I'm just not sure how to tell javascript to go to that model.

Thanks!