Welcome Guest, Not a member yet? Register   Sign In
Have spent all day (again) trying to do simple stuff in CI ...
#11

[eluser]Sven Delle[/eluser]
Yeah, got that far.

But I'm STILL struggling to use this whole thing with an ajax call from whitin a div. I simply don't believe it's possible.

I simply want to send the resulting image back to the specific DIV from where it was called. But ALL I'm able of doing is return stuff to the IFRAME. I do not need the iframe visuals - it's only there for 'tech' reasons.

I've got two divs. From the right one I call the upload doodle. And I simply want to replace the whole content of that div with whatever I return from the upload.

I've still not been able to solve this for weeks now. Web tech sucks!

So what I basically need is something like this:

Code:
function doUpload() {
//WHEN UPLOAD SUCCEEDED, DO THIS
$('#admin_content').html('Getting data ...');
var data = {};
$('#admin_content').load(params, data, function(str) {
// Display uploaded image in the div for further manipulation (e.i. thumbnail cropping)
});
}

I basically can't figure out HOW to replace the content of the div (containing the form and the iframe) after the upload has succeeded!?


Messages In This Thread
Have spent all day (again) trying to do simple stuff in CI ... - by El Forum - 05-25-2012, 01:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB