Announcement

Collapse
No announcement yet.

netquotevar in external javascript file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    netquotevar in external javascript file

    Hi,

    I am a programmer trying to validate the Actinic templates.

    Is it possible to put netquotevars in external javascript include files?

    If i do this, when the templates are imported back into actinic and the site uploaded the pages built off the template display netquotevar rather than what they would display if the template contained the netquotevar javascript

    Any response would be greatly appreciated

    ta

    #2
    No. They're not interpreted. How I do this is to separate any NETQUOTEVAR's into a small bit of JavaScript that uses same name variables as the included JavaScript file.
    Code:
    <script language="JavaScript" type="text/javascript">
    <!--
    var nqv_basehref = 'NETQUOTEVAR:BASEHREF';
    var cv_author = 'CUSTOMVAR:AUTHOR';
    //-->
    </script>
    
    <SCRIPT LANGUAGE="JavaScript" SRC="bigcodehere.js" TYPE="text/javascript"></SCRIPT>
    and bigcodehere.js can use nqv_basehref, cv_author, etc as required.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X