Welcome Guest, Not a member yet? Register   Sign In
Using Ajax
#1

[eluser]archielles[/eluser]
Im newbie to CI, at start, I already face version issue with PHP 5.3 (deprecated and dash things).

Anyway, normally I will have html main page with import script (xhr.js etc), button onClick=addCart(param1, param2) and div area to appear for ajax later.

After click, it will trigger and call addCart() function in my javascript file.

My javascript file has xhr post send request with call back function, and receive server response (.responseText) from php (anything that is echoed will be passed to .responseText).

My session session variable array and loop are done at that php.

Normally I take only string (including html string) and pass it via getElementById() innerHTML to div in my html main page.

My jobs now to change all this to MVC style using CI.

I have watched the tutorial and I can basically only use simple controller and view to display simple html page.

Please give me a guidance on this.


Messages In This Thread
Using Ajax - by El Forum - 08-21-2009, 12:20 AM
Using Ajax - by El Forum - 08-21-2009, 12:43 AM
Using Ajax - by El Forum - 08-21-2009, 01:19 AM
Using Ajax - by El Forum - 08-21-2009, 01:30 AM
Using Ajax - by El Forum - 08-21-2009, 02:16 AM
Using Ajax - by El Forum - 08-21-2009, 02:31 AM
Using Ajax - by El Forum - 08-22-2009, 08:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB