[xwiki-users] Dynamic Content
Hello everyone, I was trying to create a page in xwiki with the following functionality: The user could select an option in a dropdown list, and depending on this selection, the text below the drop down list would change accordingly to the option selected in the drop down list. Does anyone have any idea on how could I do this? Thanks in advance! BR, Roney Castro
Hi Roney, http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro Hope this helps, Marius CASTRO roney wrote:
Hello everyone, I was trying to create a page in xwiki with the following functionality: The user could select an option in a dropdown list, and depending on this selection, the text below the drop down list would change accordingly to the option selected in the drop down list. Does anyone have any idea on how could I do this? Thanks in advance! BR, Roney Castro
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Roney, You can try using a JavaScript Skin Extension to observe the user's "change" event (you should choose the event according to your needs, I usually use "click" because it is supported by all major browsers) and update the innerHTML of a div below the dropdown list. Hope this helps: http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin Oana CASTRO roney wrote:
Hello everyone, I was trying to create a page in xwiki with the following functionality: The user could select an option in a dropdown list, and depending on this selection, the text below the drop down list would change accordingly to the option selected in the drop down list. Does anyone have any idea on how could I do this? Thanks in advance! BR, Roney Castro
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
CASTRO roney -
Marius Dumitru Florea -
Oana Tabaranu