Welcome Guest, Not a member yet? Register   Sign In
Processing an image before the form submits
#10

[eluser]NateL[/eluser]
[quote author="Arjen van Bochoven" date="1233699963"]@NateL

Did you check if your CI controller gets called by AJAX? You can use the log_message() function for this:

Code:
log_message('level', 'message')
[/quote]
Hey, yeah I have a controller called "product" with a function called "addImage()"

Code:
action: '<?=base_url()?>admin/product/addImage',
So, when I click on "upload", it pops up a dialog box for me to choose an image, which I do. So that much is working.

In the demo script provided on the Ajax Upload site, their script points to something like 'upload.php', whereas mine is calling the controller product. I'm sending the $_POST information to "addImages" function.

Now, I could probably trouble shoot this a little easier if i could output the data that addImage() is receiving. When I do a form submission, I usually do print_r($_POST) and that will display what is being received. that works...but since it's AJAX, I can't tell what is and isn't working.

For log_message(), does that need to be in my addImage() ?

Thanks Smile


Messages In This Thread
Processing an image before the form submits - by El Forum - 01-28-2009, 07:33 PM
Processing an image before the form submits - by El Forum - 01-28-2009, 07:46 PM
Processing an image before the form submits - by El Forum - 01-28-2009, 07:58 PM
Processing an image before the form submits - by El Forum - 02-03-2009, 12:45 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 05:15 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 06:12 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 06:13 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 09:43 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 10:26 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 10:35 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 11:00 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 11:33 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 11:45 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 11:49 AM
Processing an image before the form submits - by El Forum - 02-03-2009, 12:04 PM
Processing an image before the form submits - by El Forum - 02-03-2009, 01:22 PM
Processing an image before the form submits - by El Forum - 11-13-2009, 09:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB