Can't Add Dreamweaver Behaviors To Member Template

Discussion in 'Templates customization' started by Chelsea, Apr 5, 2004.

  1. Chelsea

    Chelsea Guest

    Hi!

    I have customized your member.html (template) to reflect the look of our site. What we are actually using the member page for is a member's only area that includes information about our company, benefits for the members, etc. I would like to be able to use a couple of the dreamweaver behaviors (ie. open browser window), but when I add them in and upload the page I get the following error:

    Fatal error: Smarty: [in member.html line 4]: syntax error: invalid attribute name - 'window.open(theURL,winName,features);' in /home/onlinegiftaus/html/amember/smarty/Smarty_Compiler.class.php on line 1387

    Any ideas on why this would be happening...and also if it is possible to add in javascript would be great!

    Thanks in advance!!

    Chelsea
  2. cell

    cell Guest

    Javascript issue

    alex,

    I also have the same problem when I embedded a third party tracking snippet into my page.

    I tried putting {literals}{/literals} as tags and end tags for the snippet but its either I get the same fatal error or the snippet tracking does not reflect on the tracking services.

    thanks in advance :)
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    try to put
    {literal}
    ...
    {/literal}

    around inserted javascript code.
  4. Chelsea

    Chelsea Guest

    Thanks that worked!

    Chelsea

Share This Page