<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hello List,<div><br></div><div>I am currently implementing an ImageChooser Component, where I like users to upload an image by submtiting the form containing the fileUpload using an iframe like this:</div>
<div><br></div><div><br></div><div><span style="white-space: pre; "></span><span style="white-space: pre; ">                </span>html form id: (self formId);  attributeAt: #target put: (self frameName); multipart; method: #post; with: [</div>
<div><div><span style="white-space: pre; ">                        </span>html fileUpload</div><div><span style="white-space: pre; ">                                </span>id: self uploadInputId;</div><div><span style="white-space: pre; ">                                </span>accept: &#39;png jpg jpeg gif&#39;;</div>
<div><span style="white-space: pre; ">                                </span>on: #image of: self.</div><div><span style="white-space: pre; ">                        </span>html div with: [<span style="white-space: pre; ">        </span></div><div><span style="white-space: pre; ">                                </span>html anchor</div>
<div><span style="white-space: pre; ">                                        </span>onClick: (html javascript factory form id: self formId; submit);</div><div><span style="white-space: pre; ">                                        </span>with: &#39;Upload Image&#39;.</div><div><span style="white-space: pre; ">                        </span>].</div>
<div><span style="white-space: pre; ">                </span>].</div><div><span style="white-space: pre; ">                </span>html iframe name: self frameName; style: &#39;display: none; widht: 0; height: 0; border: 0;&#39;.</div><div><br></div>
<div>This works – but it loads the entire page into the iframe, again. I would rather just load an html stub containing a javascript which indicates if the upload was successful or not and executes in the context of the original html. I tried to return a response during the setting of my component&#39;s image instance-variable but this does not work.</div>
<div><br></div><div>Has anybody an Idea?</div><div><br></div><font color="#888888"><div>RD</div></font></div></span>