Hi!<br>i'm trying to extend kupu for Plone.<br>I have 2 questions. Maybe somebody could help me. <br>1) I'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 "onclick", "onblur" and so on.<br>
But i have no idea how to call it "onload" event, because the dialog-box div have no tag "body", so i have no place to point actions for "onload" 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'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's too difficult for me.<br>Maybe somebody could point me a direction for the further search.<br>Thank you!<br>