form in modal box

Status
Not open for further replies.
Any way to darken the background?
once the css loads ok - you can treat it like a normal form, selecting the template and adding editing the css to change the bg colour
 
Where does the js go?
On the page that you redirect to. You could simply redirect to a blank html page with that js code in it. As, if it works, it should just close down the window once the iframe redirect content has loaded.

Also am I replacing 'yourwindowid' with anything?
Yes the window id that you assign when you created the window.
So say your load the window with this html:

Code:
<[URL='http://december.com/html/4/element/a.html']a[/URL] href="http://fabrikar.com" 
 class="myFabWin" 
 rel="{'id':'prophoto-window','title':'my link rocks','loadMethod':'iframe'}">
        My Link
</[URL='http://december.com/html/4/element/a.html']a[/URL]>

then the id is 'prophoto-window' which you close with:

Code:
<script type="text/javascript">
parent.Fabrik.getWindow('prophoto-window').close();
</script>

ah ok yes not clear I thought you were talking about the form's background colour :) - so you need to create an overlay - Unfortunately we don't do that in our window class as we can potentially have multiple windows open at any one time.

An alternative would be I guess to dump what you have so far and use Joomla's built in modal window which does support an overlay. I used them on a project today and found this site a good explaination of their use http://www.spiralscripts.co.uk/Joomla-Tips/using-modal-windows-with-joomla.html
 
An alternative would be I guess to dump what you have so far and use Joomla's built in modal window which does support an overlay. I used them on a project today and found this site a good explaination of their use http://www.spiralscripts.co.uk/Joomla-Tips/using-modal-windows-with-joomla.html
I ended up going this route since it gives me everything I wanted. I used your tips for a redirect to a plain html page (via the form redirect plugin) and added this js to auto close the modal box. Thanks, this works out great.

Code:
<script type="text/javascript">
window.setTimeout('closeme();', 300);
function closeme()
{
parent.SqueezeBox.close();
}
</script>
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top