How can I use AJAX with Smarty Engine

Discussion in 'PHP' started by lionking, Jul 3, 2009.

  1. #1
    Hello Everybody

    I have a problem with the use of AJAX with Smarty
    I want to update the part of the page using AJAX and I am using Smarty in my script and I've written the standard way to update the part of the page through AJAX, but not working with Smarty

    Is there a way to use Smarty with AJAX without problems
     
    lionking, Jul 3, 2009 IP
  2. zeronese

    zeronese Peon

    Messages:
    83
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try to in clude your javascript (ajax) code in a {literal} tag.
    for example:
    {literal}
    .... ajax
    {/literal}

    you might need to post some code for your page so we can understand your problem better
     
    zeronese, Jul 3, 2009 IP
  3. thomash

    thomash Well-Known Member

    Messages:
    444
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #3
    there someone done it ,you can google it
     
    thomash, Jul 3, 2009 IP