Log in with iqtpi
Joelie   New...

j_service

By Steve Fentriss  (2198 Entries) | 72 days ago
 
Code
tag.
j_service
 
<!---
Basically has three modes of operation:
1. get.service is "style" or "script" - http service.
|
2. get.j_function is a string (not empty) - perform known function (ex. "remove_favorite")
3. default: output j html (with no html wrapping, if get.ajax=1)
--->


<ensure variable="get.service">

<if get.service EQ "style">
<tag.css_headers expires="-1">
<tag.j_style>
<BREAK>
<elseif get.service EQ "script">
<tag.js_headers expires="-1">
<tag.j_script>
<BREAK>
</if>


<ensure variable="get.j">
<ensure variable="get.ajax" value="0">

<if isdefined("get.j_function") AND trim(get.j_function) NEQ "">
<tag.j_functions>
</if>

<tag.j j="#get.j#" naked="#get.ajax#" is_j_service="1">
 
j_service is a subutility routine.
 
 
x
[]