cvs: smarty /docs/en/designers/language-custom-functions language-function-popup-init.xml
[email protected] ("Peter 'Mash' Morgan") Sat, 19 Aug 2006 01:38:46 -0000
| Newsgroups | php.smarty.cvs |
|---|---|
| Message-ID | <cvspete_morgan1155951526@cvsserver> |
pete_morgan Sat Aug 19 01:38:46 2006 UTC
Modified files:
/smarty/docs/en/designers/language-custom-functions
language-function-popup-init.xml
Log:
avoid dupes and added remote paths
http://cvs.php.net/viewvc.cgi/smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml?r1=1.6&r2=1.7&diff_format=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml:1.6 smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml:1.7
--- smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml:1.6 Mon Mar 13 23:13:38 2006
+++ smarty/docs/en/designers/language-custom-functions/language-function-popup-init.xml Sat Aug 19 01:38:46 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<sect1 id="language.function.popup.init">
<title>{popup_init}</title>
<para>
@@ -7,13 +7,13 @@
is an integration of
<ulink url="&url.overLib;">overLib</ulink>, a library used for popup
windows. These are used for context sensitive information, such as
- help windows or tooltips. {popup_init} must be called once at the
- top of any page you plan on using the
- <link linkend="language.function.popup">{popup}</link> function.
+ help windows or tooltips. {popup_init} must be called <emphasis>only once</emphasis>, preferably within the <head> tag
+ within any page you plan on using the
+ <link linkend="language.function.popup">{popup}</link> function. The path is relative to the executing script or a fully qualified domain path (ie not the relative to the template).
</para>
<para>
<ulink url="&url.overLib;">overLib</ulink>
- was written by Erik Bosrup, and the homepage/download is located at
+ is written and maintained by Erik Bosrup, and the homepage/download is located at
<ulink url="&url.overLib;">&url.overLib;</ulink>.
</para>
@@ -24,10 +24,21 @@
<head>
{* popup_init must be called once at the top of the page *}
{popup_init src='javascripts/overlib/overlib.js'}
+
+{* fully qualified url example *}
+{popup_init src='http://myserver.org/my_js_libs/overlib/overlib.js'}
+</head>
+
+// the first example will output
+<head>
+<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
+<script type="text/javascript" language="JavaScript" src="javascripts/overlib/overlib.js"></script>
</head>
]]>
- </programlisting>
+</programlisting>
</example>
+
+
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
@@ -48,4 +59,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->