Welcome Guest, Not a member yet? Register   Sign In
AJAX Response
#5

[eluser]NateL[/eluser]
Bare with me, this is new grounds for me Smile

Following the example in the CI user guide, my controller processes the image, and then passes the upload data to a view:

$this->load->view('upload_success', $data);

Now, when I upload an image, and then look at my console, it logs my VIEW

console.log(response);

logs this:
Code:
<h3>File uploaded!</h3>
<ul>
   <li>file_name: image00118.jpg</li>
   <li>file_type: image/jpeg</li>
   <li>file_path: /Users/nate/Sites/circms.local/html/uploads/</li>
   <li>full_path: /Users/nate/Sites/circms.local/html/uploads/image00118.jpg</li>
   <li>raw_name: image00118</li>
   <li>orig_name: image001.jpg</li>
   <li>file_ext: .jpg</li>
  <li>file_size: 54.03</li>
  <li>is_image: 1</li>
  <li>image_width: 467</li>
  <li>image_height: 385</li>
  <li>image_type: jpeg</li>
  <li>image_size_str: width="467" height="385"</li>
</ul>

which is the HTML that the view generates when the data is passed to it.

So... From the controller, How do I pass the file_name value back into the AJAX that sent it?

Thanks for your help and patience.. hope that makes some sort of sense Smile


Messages In This Thread
AJAX Response - by El Forum - 02-21-2009, 09:12 PM
AJAX Response - by El Forum - 02-21-2009, 10:06 PM
AJAX Response - by El Forum - 02-21-2009, 10:25 PM
AJAX Response - by El Forum - 02-21-2009, 10:59 PM
AJAX Response - by El Forum - 02-23-2009, 09:50 PM
AJAX Response - by El Forum - 02-24-2009, 05:51 AM
AJAX Response - by El Forum - 02-24-2009, 09:10 AM
AJAX Response - by El Forum - 02-24-2009, 12:22 PM
AJAX Response - by El Forum - 02-24-2009, 12:46 PM
AJAX Response - by El Forum - 02-24-2009, 12:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB