Archived from the Transloadit support forum. Originally posted on October 4, 2010; details may be outdated, see our docs for current behavior. Original thread
I am trying to get my the onResult to return anything for this template: REDACTED
it was working just fine when i only had one thing in my step. But now i have 4 things.
`function showData(step, response){
console.log(response);
} $(document).ready(function() { // Handler for .ready() called.
var data = {wait:true, autoSubmit:false,onResult:showData};
$('#MyForm').transloadit(data);
It looks like i could potentially use this, but my problem still exists.
The moment i have multiple steps. It seems like onSuccess is not being called.
I am using: template: REDACTED
and here is the code:
`
function showData(assembly){
console.log(assembly);
}
$(document).ready(function() {
// Handler for .ready() called.
var data = {wait:true, autoSubmit:false,onSuccess:showData};
$('#MyForm').transloadit(data);
});
</script>
`
If i just have store call it seems to work fine. But not if there is more than one store call.
I can’t actually look into your template easily (for privacy reasons). I could work around that if you give me permission. Anyway, I noticed that your last 3 assemblies were actually failing, which would explain the onSuccess / onResult callbacks not being called. I think you are doing something that causes our cropping code to fail, is that possible?
Anyway, try adding an onError callback an see what you get.
Yeah, your view step is lacking a height parameter. The crop resize method always needs width and height, but I think this isn’t documented right now (nor is our error message very good). Can you try adding a height and see if this fixes your problem? Then I can update the docs and error message.