Logo
 
 

XTIPS

USING XT FUNCTIONS IN HTML CODE
The XT functions can be used in html scripts in some unusual ways.
This example will put a date stamp on a textarea input.
-Html Code-
<textarea rows="3" cols="17">
<xt id="tdate" format="Y-m-d H:i" tzone="0"/>
</textarea>
Which produces this.


More about time and date
_____
This example will put your user-agent string in a text input box.
Note the odd nesting and the use of single quotes ' '
this is for xhtml compatibility and because double quotes " " are used in the XT function. (The " " and the nesting are not reproduced in the compiled code as XTgem evaluates the XT function before compiling the html/xhtml then replaces the XT function with it's output.)
-Html code-
<input type="text" name="xtip" value='<xt id="browser" detail="3" />' />
_____
which produces this.

_____
This example puts a counter on a submit button.
-Html code-
<input type="submit" value='Total <xt id="counter"type="4" /> views' />
_____
Which produces this.


_____
This is just an introduction to the idea that xt functions can be used in some strange places and more useful examples are on my other pages.
_____
RANDOM FILE INCLUDES
Xtgem have extended the include function to allow RANDOM includes using html/xhtml
read this
Much use will be made be this on other pages.
Random Partner

AIRTEL FREE ZONE
BACK

©2009 - 2011Theoldman
JOIN XTBOARD
X T B O A R D
THE MOBILE WORLD IS
X T G E M


:: Powered By::
Pramod Khedar
Jalimpura, Jhunjhunu (Raj.)
Emial icon Contact Me
Phone Call Me !
© Copyright: 2008-2017
All Rights Reserved With
Pkhedar.UiWap.Com