Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Problemas ao usar Jquery no Smarty

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: Portuguese
View previous topic :: View next topic  
Author Message
marcelodelta
Smarty Rookie


Joined: 04 Apr 2009
Posts: 8

PostPosted: Fri May 01, 2009 1:38 pm    Post subject: Problemas ao usar Jquery no Smarty Reply with quote

Pessoal,

Alguém poderia dar uma luz para o meu problema...

Estou tentando implementar um script em jquery no template...

Sei que o smarty interpreta tudo que estiver em { }.

Tentei colocar com {literal}. Mesmo assim o script não roda...

Alguém teria alguma sugestão?

Valeu Pessoal
Marcelo Wanderley
Back to top
View user's profile Send private message
jothirajan
Smarty Pro


Joined: 06 Feb 2009
Posts: 114
Location: India

PostPosted: Fri May 01, 2009 2:25 pm    Post subject: Reply with quote

Caro Marcelo Wanderley

Experimente um presente.


Code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
</body>
</html>
{literal}
<script language="javascript">

$(document).ready(function()
{
   
   $("#username").blur(function()
   {
      //remove all the class add the messagebox classes and start fading

     }
   
}
</script>
{/literal}   
   







Entretanto, colocar o seu código jquery fora da tag HTML, como tal, tenho codificados.

Eu sou bom em Português

Obrigado
Joe
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: Portuguese 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