Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SMARTY] Java i smarty
Dzik
post
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 24.02.2007

Ostrzeżenie: (0%)
-----


Witam, mam problem. Otoz musze w pliku .tpl umiescic javascript otwierajacy nowe okno w okreslonych rozmiarach, ale jak tak robie to smarty sie pluje i wywala blad. W normalnych szablonach nie mialem takiego problemu ale w smarty ;/ Macie jakis sposob na to?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Dzik
post
Post #2





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 24.02.2007

Ostrzeżenie: (0%)
-----


Myslalem, ze skoro mowie, ze w musze w tpl umiescic kod java otwierajacy nowe okno to bedzie to wygladalo tak:

tpl
  1. <script language="JavaScript" type="text/JavaScript">
  2. <!--
  3. function MM_openBrWindow(theURL,winName,features) { //v2.0
  4. window.open(theURL,winName,features);
  5. }
  6. //-->
  7. <table ........
  8. // kod html szablonu ...


no a z php wyswietlam ten tpl $smarty->display('nazwa.tpl');

a error:
Fatal error: Smarty error: [in nazwa.tpl line 4]: syntax error: unrecognized tag: //v2.0 window.open(theURL,winName,features); (Smarty_Compiler.class.php, line 446) in C:\Program Files\xampp\htdocs\CMS\smarty\libs\Smarty.class.php on line 1092
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 6.10.2025 - 04:48