|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
mjimmy Smarty Rookie
Joined: 07 Dec 2011 Posts: 8
|
Posted: Wed Dec 21, 2011 9:25 am Post subject: Weiterleitung mit Smarty und javascript |
|
|
Hallo ich möchte folgende Weiterleitung nutzen,
aber es funktioniert nicht:
{literal}
<script language=javascript>
window.location.href = "http://blubb.com/test.php?url=lizenz2&
Device={$sd.0.Stationsname}&
CRC={$sd.0.CRC}&
LicPart1={$lizenz_i.0}&
LicPart2={$lizenz_i.1}&
LicPart3={$lizenz_i.2}&
Devicenr={$deviceid}";
</script>
{/literal}
Wie kann ich denn eine WEiterleitung nutzen, wenn ich Parameter übergeben möchte. |
|
Back to top |
|
mjimmy Smarty Rookie
Joined: 07 Dec 2011 Posts: 8
|
Posted: Wed Dec 21, 2011 9:35 am Post subject: |
|
|
hat sich erledigt, offenbar muss ich literal wegnehmen
und dann ohne Zeilenumbrüche den LInk schreiben. |
|
Back to top |
|
ovnn Smarty Regular
Joined: 14 Apr 2010 Posts: 82 Location: Germany
|
Posted: Wed Dec 21, 2011 11:23 am Post subject: |
|
|
klar zwischen den literals wird alles so ausgegeben wie es im code steht.
Du brauchst die literal beim JS nur wenn du dort mit { oder } arbeitest. |
|
Back to top |
|
|
|
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
|