Chathura Prabuddha wrote:
Hai..
I'm trying to integrate the date picker to poll application date fields. I would like to know is there a way that to set the object property name (like $pobj.pollOpen) as the 'relative' in the javascript. ex: <script type="text/javascript"> var dpicker = new DatePicker({ relative : 'how to set the object parameter',
relative: '${pobj.className}_${pobj.number}_pollOpen',
language: "$context.language" }); </script>
Also I want to know that can we use the date picker inside the #info macro. ex:#info("The poll is open from $pobj.pollOpen to $pobj.pollClose.")
Yes, it should be possible. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs Hi, I have the same question. I want to set the DatePicker result to a Class. here my code #set($class = $doc.getObject("XWiki.AtelierClass").xWikiClass) #set($date1 = $class.get("DateAtelier1")) 1.1.1 Dates ## here I want to use the DatePicker in the Inline Form $doc.display($date1.getName()) How can i use this <input type="text" name="mydate" id="mydate_id" /> <script type="text/javascript"> var pPicker = new DatePicker({ relative : 'mydate_id', language: "$context.language", keepFieldEmpty: 'true'}); </script> Cheers -- View this message in context: http://n2.nabble.com/Need-Help-to-Integrate-Date-Picker-to-Poll-Application-... Sent from the XWiki- Dev mailing list archive at Nabble.com.