Open a hidden div in a lightbox with Mootools in Joomla 1.5 -


i using joomla 1.5.22 mootools 1.1. have module form contained in hidden div want open in joomla's built in modal box. problem have when click link form opens in modal box, opens div in module on page.

html:

<div id="modulebox">     <div id="clickmebutton"><a id="formclick" class="modal" href="#hiddenform">click me</a></div>     <div id="hiddenform">      form code goes here     </div> </div> 

javascript:

window.addevent('domready', function() {   $('formclick').addevent('click', function(){     $('hiddenform').setstyle('display','block');   }); }); 

so how form show in modal box?

you can see talking here - http://www.internextion.com/

it's call module. added handler: 'adopt' suggested below, result little different. target div still shows below link, modal window contains link rather target.

i think uses harald's squeezebox - in case, looking @ following scenarios:

  • find target div , clone insert modal box.
  • find target div , adopt modal box.

you seeing first (default) case. achieve second effect, add:

handler: 'adopt'

to instantiation options. more here: http://digitarald.de/project/squeezebox/1-1/showcase/get-elements/


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -