Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Templatevariablen funktionieren nicht bei ajax.load

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
eazytrader
Smarty Rookie


Joined: 16 Jul 2010
Posts: 33

PostPosted: Tue Mar 06, 2012 2:20 pm    Post subject: Templatevariablen funktionieren nicht bei ajax.load Reply with quote

Hallo,

ich lade ein PHP Script per Ajax in meinem Template:

Code:

<script type="text/javascript">
  function contentloader() {
    $("#div").load("product_info.attributes.php");
  }
</script>

<div id="div"></div>


In der eingebundenen PHP Datei will ich dann das entsprechende Template laden:

Code:
$smarty->display('product_info.attributes.tpl');


Leider scheint das nicht zu funktionieren.
Das Template wird nicht angezeigt. Bzw. das Template schon, aber ich kann die Variablen aus der product_info.attributes.php nicht verwenden. Die PHP Datei ist aber geladen.

Hat jemand eine Idee?

Gruß und Danke
Back to top
View user's profile Send private message
eazytrader
Smarty Rookie


Joined: 16 Jul 2010
Posts: 33

PostPosted: Tue Mar 06, 2012 10:43 pm    Post subject: Reply with quote

EDIT: Habs verstanden und hinbekommen. Danke für den Anstoß.

Gruß
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP