Hi!<br>i&#39;m trying to extend kupu for Plone.<br>I have 2 questions. Maybe somebody could help me. <br>1) I&#39;ve created a custom button and I have a tool for it.<br>The tool shows a dialog-box that contains a form.<br>
The form includes a field which value should be equal to current data when that dialog-box is loaded.<br>I have written a js-function that generates current data. I have no problem with calling this function on such events as &quot;onclick&quot;, &quot;onblur&quot; and so on.<br>
But i have no idea how to call it &quot;onload&quot; event, because the dialog-box div have no tag &quot;body&quot;, so i have no place to point actions for &quot;onload&quot; event.<br>Any help will be appeciated.<br>2) The above mentioned diialog box contains a form with a search button and a div above it.<br>
When the search button is presses and the form is submitted i need to send form data to a py-file that should handle it and return the result to the div above the form.<br>When the search button is presses and the form is submitted  form data should be sent to a .py-file that makes a request to a database, <br>
handles received data and returns result to the div above the form.<br>(an example how to make it with a php-file will greate for me too).<br>I simply can&#39;t understand what methods (js-functions?) should i use to send data to file and return result without reloading the page. <br>
I tried to find it out it learning the image-manager code, but it&#39;s too difficult for me.<br>Maybe somebody could point me a direction for the further search.<br>Thank you!<br>