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.

EE code in jquery/javascript

August 29, 2011 6:58am

Subscribe [1]
  • #1 / Aug 29, 2011 6:58am

    SarahBenfield

    2 posts

    Hi all,

    I’m trying to add some EE code into HTML that’s been uotput to the page via jQuewry. I’ve added $config[‘protect_javascript’] = ‘n’; to my config file.

    Here’s what I’ve got so far

    $('#confirmation').html("<h4>Message Submitted Successfully!</h4><p>")<br />
    .append("Thank you for completing our contact form. We will be in touch shortly.")<br />
    .append("Click here to <a href="http://{path=services/index}">see some of the services</a> we offer.");

    As you can see, I simply want to link people back to my services page.

    Any ideas?

    Thanks.

  • #2 / Aug 29, 2011 1:32pm

    Marcus Neto

    1005 posts

    Hi SarahBenfield,

    Welcome to the forums! I would think you would want

    $config[‘protect_javascript’] = ‘y’;

    no?

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

ExpressionEngine News!

#eecms, #events, #releases