[eluser]Unknown[/eluser]
[quote author="kanjimaster" date="1334485249"]Two observations:
Firstly, you should use $this->input->get() rather than accessing the global $_GET var directly to get access to CodeIgniter's XSS protection otherwise your shopping cart will be vulnerable.
Secondly, the window.alert that isn't working for you is failing because you're feeding it a numerical index rather than the associative key that you used when you constructed the array.[/quote]
Thanks for the tip on using $this->input->get(), i'll be sure to change that.
I fixed the problem some time ago, it was what you pointed out.
I should be using data.dados[0].id_prod and not data[0].id_prod, so there was an associative key missing in the middle there.
Thanks for your reply.