ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Reference Javascript

October 11, 2007 3:21pm

Subscribe [0]
  • #16 / Oct 11, 2007 5:16pm

    adamwiggall

    178 posts

    Lisa

    On that note. If that line (yours) was being called in an embeded template, would it still work? Or would you want to use my happy coincidence?

  • #17 / Oct 11, 2007 5:24pm

    Lisa Wess

    20502 posts

    I am not following your question, Adam?  You can embed javascript from anywhere in an HTML page, though there are usually specific reasons to include it in the <head></head>.

  • #18 / Oct 11, 2007 5:34pm

    adamwiggall

    178 posts

    Lisa

    I use an embed for the head of a document, setting up the doctype, css ref, *script ref, title etc…

    When I call the css I have a template group (assigned to a variable) which I follow with the name of the css template. I don’t however have the js file in a template group, so I am presuming that to use =/script/script.js, when the embed is parsed it can find /script/script.js without any further path information.

    I’m not on about embedding javascript, rather I am talking about the call to the js file from an embedded template.

    Adam

  • #19 / Oct 11, 2007 5:38pm

    Lisa Wess

    20502 posts

    As long as you use an absolute path (ie: the full domain, or starting with /) then it won’t matter from where you call it.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases