|
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 |
marcelodelta Smarty Rookie
Joined: 04 Apr 2009 Posts: 8
|
Posted: Fri May 01, 2009 1:38 pm Post subject: Problemas ao usar Jquery no Smarty |
|
|
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 |
|
jothirajan Smarty Pro
Joined: 06 Feb 2009 Posts: 114 Location: India
|
Posted: Fri May 01, 2009 2:25 pm Post subject: |
|
|
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 |
|
|
|
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
|