|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
brainman Smarty n00b
Joined: 09 Jul 2003 Posts: 1
|
Posted: Wed Jul 09, 2003 11:36 pm Post subject: Bug: function.popup_init.php |
|
|
The version of popup_init that follows the distribution has a minor bug regarding where the <div> tags are placed in the document.
In the example that comes with Smarty the Code: | {popup_init src="/javascripts/overlib.js"} | is placed in the <head> section of the document, making the finished document look like:
Code: | <HTML>
<HEAD>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<script type="text/javascript" language="JavaScript" src="/javascripts/overlib.js"></script> |
This is however not the bug. The bug is, that Code: | <script type="text/javascript" language="JavaScript" src="/javascripts/overlib.js"></script> | needs to be placed in the <head> section, but the Code: | <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> | needs to be placed right after the <body> tag.
The function does not take this into account. :) |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|