[kupu-dev] custom how to interact with server from kupu-tool
Дима Суворов
suvdim at gmail.com
Wed Apr 1 19:32:55 CEST 2009
Hi!
i'm trying to extend kupu for Plone.
I have 2 questions. Maybe somebody could help me.
1) I've created a custom button and I have a tool for it.
The tool shows a dialog-box that contains a form.
The form includes a field which value should be equal to current data when
that dialog-box is loaded.
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.
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.
Any help will be appeciated.
2) The above mentioned diialog box contains a form with a search button and
a div above it.
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.
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,
handles received data and returns result to the div above the form.
(an example how to make it with a php-file will greate for me too).
I simply can't understand what methods (js-functions?) should i use to send
data to file and return result without reloading the page.
I tried to find it out it learning the image-manager code, but it's too
difficult for me.
Maybe somebody could point me a direction for the further search.
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/kupu-dev/attachments/20090401/458762cd/attachment.htm
More information about the kupu-dev
mailing list