CodeIgniter, jQuery & JSON How To - http://geekhut.org
Uploader Comments (4st3r1sk)
Top Comments
-
@7thAttempt While in most situations I would agree with you .. but considering this video is about [C]ode[I]gniter its pretty safe to assume that CI is short for Code Igniter ;)
All Comments (74)
-
Thanks for the tutorial! I encounter a problem though, I can never get the the alert(data.result) to work. I can put some other alert before $.post and it works fine, but nothing inside $.post works.
-
@tvduncklee Serialize the form in your ajax query
-
@4st3r1sk because, if you don't cleanse the $_POST array, someone could inject SQL by simply ending the SQL statement to be executed, and writing their own in a field to be sent via $_POST. Not a big issue today, im sure you take proper security measures in live projects.
-
Firstly: Excellent video, no round the houses small talk, straight to the point - I'll be watching more and subscribing.
Secondly: I wish people wouldn't type in abbreviations when it comes to technical terminology. Really is no help to other people who might want to research any of the points made in the their comments. "Read the Wikipedia article for CI" So this is what I got: wikipediaDOTorg/wiki/CI ..... Yep really helpful thanks
-
Any thoughts on how to do this with csrf on?
-
I am trying to convert frrom Json to html??
do you have any idea how to start to it ??
-
Whew! Finally. Buddy, you made my day. Those last three minutes I listened to over and over. It was finally so clearly defined and I nailed it. Thanks :)
You programmers are lambs to the slaughter with this $_POST suggestions, etc. Someone will be visiting your servers as root real soon.
k0d3g3ar 1 year ago
@k0d3g3ar Which would you prefer? GET, PUT?? I'm confused how simply using the $_POST variable could compromise a system.
4st3r1sk 1 year ago 8
Great video! Thank you. Quick question: as a newb php/jquery dev, I'm wondering why you put your jquery events in the global.js file? Is that simply for the sake of the demo? I thought globals.js was more for constants and stuff. THANKS!
drpcken 1 year ago
@drpcken You are absolutely correct, strictly for demo purposes. Thanks for the comment!
4st3r1sk 1 year ago
The problem with popular Engines and popular OS frameworks is their popularity. They simply cannot dare to keep up with the progress. They have to stay "compatible"... CI is simply poorly designed framework and it is not going to change any time soon because it is so popular (thus stalled). :-( Sad.
xuldevelopers 1 year ago
@xuldevelopers There are certainly more powerful bleeding edge fmwk's available however I feel CI is much better used as a toolkit, not a convention-up-the-ass framework like ZFor RoR... Read the Wikipedia article for CI... "PHP creator Rasmus Lerdorf spoke at frOSCon in August 2008, noting that he liked CodeIgniter "because it is faster, lighter and the least like a framework.""
4st3r1sk 1 year ago