[xwiki-users] Modalbox
Was anyone able to load an url in a Modalbox? How do you do that? Like, for example, when clicking on a button, display "http://www.google.com" in the Modalbox. Is that possible? I tried the following, and it's not displaying anything. What am I doing wrong? {{velocity}} #set($ok = $xwiki.jsfx.use("js/scriptaculous/scriptaculous.js")) #set($ok = $xwiki.jsx.use("XWiki.ModalBox")) #set($ok = $xwiki.ssx.use("XWiki.ModalBox")) {{html}} Google {{/html}} {{/velocity}} -- View this message in context: http://xwiki.475771.n2.nabble.com/Modalbox-tp6242462p6242462.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, On 04/05/2011 05:25 PM, afrey wrote:
Was anyone able to load an url in a Modalbox? How do you do that? Like, for example, when clicking on a button, display "http://www.google.com" in the Modalbox. Is that possible?
Do you mean an iframe or an anchor that opens http://www.google.com? Oana
I tried the following, and it's not displaying anything. What am I doing wrong?
{{velocity}} #set($ok = $xwiki.jsfx.use("js/scriptaculous/scriptaculous.js")) #set($ok = $xwiki.jsx.use("XWiki.ModalBox")) #set($ok = $xwiki.ssx.use("XWiki.ModalBox"))
{{html}} Google {{/html}}
{{/velocity}}
-- View this message in context: http://xwiki.475771.n2.nabble.com/Modalbox-tp6242462p6242462.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Oana, Actually, what I wanted to do was to be able to load into the Modalbox a piece of html code like: and launch the modalbox from a button. So what I tried was: {{velocity}} #set($ok = $xwiki.jsfx.use("js/scriptaculous/scriptaculous.js")) #set($ok = $xwiki.jsx.use("XWiki.ModalBox")) #set($ok = $xwiki.ssx.use("XWiki.ModalBox")) {{html}} ', {width: 800, height:500, title: 'DataGenerator', method: 'post'}); return false;">DataGenerator {{/html}} {{/velocity}} The code presented above is not working. Any suggestions are welcome. Regards, Alina. -- View this message in context: http://xwiki.475771.n2.nabble.com/Modalbox-tp6242462p6243037.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Ok, I figured it out :) Replace the button tag with: DataGenerator -- View this message in context: http://xwiki.475771.n2.nabble.com/Modalbox-tp6242462p6243202.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
afrey -
Elena-Oana Tabaranu