[daisy] extension help
Derek Coffman
Derek.Coffman at noaa.gov
Fri Jan 11 11:30:19 CST 2008
Hi all,
First of all, apologies if this is more of a cocoon question...
I am using daisy as an instrument database and I'm trying to write an
extension to allow users to input new instruments. What I'd like to do
is have a form that allows the user to select things like type,
manufacturer, model, etc from lists that are built from queries. That
part I think I've got figured out pretty well. In the case where a
particular entry does not exist, I'd like to let the user clink on a
"new <whatever>..." link which then takes them to another set of forms.
Once they are done creating the new item, I'd like to send them back to
the original form. In some cases, I think I'd like to use a continuation
to get me back to the partially completed form. In others, I can just
pass the calling forms path and recall it when I'm done.
So, my questions:
1) how do I pass parameters to another function?
After many iterations, I am trying to go simple and use SendPage to call
another function in my javascript code:
var path = <path to calling function>
SendPage(<uri of destination function>, {returnPath: path});
1a) Do I need to specify the returnPath parameter in the sitemap to
access it in the destination function?
This seems like it should be simple and I'm guessing I'm missing
something obvious but I've gone through the cocoon site without figuring
out.
Or, maybe I'm approaching this all wrong. Any advice or pointers to
examples would be greatly appreciated.
Thanks,
Derek
--
_________________________________________________________
Derek Coffman derek.coffman at noaa.gov
NOAA/PMEL phone: 206-526-6574
7600 Sand Point Way NE 206-526-6790
Seattle, WA 98115 fax: 206-526-6744
http://saga.pmel.noaa.gov
_________________________________________________________
More information about the daisy
mailing list