Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Bug: function.popup_init.php

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
brainman
Smarty n00b


Joined: 09 Jul 2003
Posts: 1

PostPosted: Wed Jul 09, 2003 11:36 pm    Post subject: Bug: function.popup_init.php Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP