[opencms-dev] Difficulty creating a Widget Dialog

Sebastian Himberger sebastian.himberger at gmx.de
Thu May 8 08:39:05 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

i hope i have understood your problem correctly:

There's a JavaScript object called "opener". Using this object you can
reference elements in the window which has opened your pop-up.

Here's a small tutorial i googled up quickly:

~  http://www.webreference.com/js/tutorial1/opener.html

i hope this helps

best regards,
Sebastian

Brett Sheeran schrieb:
| Hi,
|
| Could someone tell me how to code a Widget dialog JSP so that when I
| click on a value, OpenCMS returns that value to the parent edit page
| field please? Details as follows.
|
| I have looked at the existing Widgets and attempted (unsuccessfully)
| to code my own. I created a widget called CmsRfsFileWidget, a "real
| file system" equivalent to (and based on) the CmsVfsFileWidget.
|
| My problem is I am unable to create a "real file system" version of
| tree_files.jsp. As a first step, I would like to list several file
| names  in the JSP and if a user clicks on a name, OpenCMS will copy
| that name to the parent field.
|
| Sounds simple enough, but I cannot see how to adapt a copy of
| tree_files.jsp for that purpose. My problem is, I don't understand how
| the existing tree_files.jsp will write a name to the parent field.
|
| Is it possible to use CmsTree for "real files"? If not, is it possible
| to create JavaScript so that if a name is clicked that value is
| written to the parent field?
|
| Thank you.
|
| Regards Brett
|
| _______________________________________________
| This mail is sent to you from the opencms-dev mailing list
| To change your list options, or to unsubscribe from the list, please visit
| http://lists.opencms.org/mailman/listinfo/opencms-dev

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIIqAHVKBy6qoVEvwRAtvKAJ465rD4aDlfG11ZGKDFznZcm6o1TACdHPyc
9IdKUL+htxakSN0Hl2nz5bA=
=l9AA
-----END PGP SIGNATURE-----



More information about the opencms-dev mailing list