Forum OpenACS Development: Re: HTMLarea and ad_form/form builder

Collapse
Posted by C. R. Oldham on
Sounds like a good idea.  I attempted to implement this, but I think I am stuck in upvar hell. 😊
Collapse
Posted by Randy O'Meara on
CR, [something like] this should work:

in your.tcl:
    set js {
        ...put your javascript code here...
    }

in your.adp:
    <master>
    <property name="header_stuff">
        <if @header_stuff@ defined>
            @header_stuff;noquote@
        </if>
        @js;noquote@
    </property>

Or, you could put your javascript directly in your.adp where @js@ appears. BTW, this is how you would add css <link...> references also.

Randy