View previous topic :: View next topic |
Author |
Message |
andreycosmin Smarty Rookie
Joined: 05 Feb 2013 Posts: 8
|
Posted: Tue Feb 05, 2013 1:31 pm Post subject: Please Help Refresh portion site |
|
|
I have this .tpl file
Code: |
{include file="header.tpl"}
{include file="sidebar.tpl"}
<div id="items" class="main">
<h2>{$translations.titles.companies}</h2>
<form action="" class="box search" method="get" accept-charset="utf-8">
<fieldset class="content">
<ul>
<li class="semi"><label for="country">{$translations.labels.country}</label>
<select name="country" id="country">
<option value="0">{$translations.labels.any}</option>
{html_options options=$options.countries selected=$params.country}
</select></li>
<li class="semi"><label for="city">{$translations.labels.city}</label>
<input type="text" class="text autocomplete city" name="city" value="{$params.city}" id="location_start" /></li>
<li><label for="keywords">{$translations.labels.keywords}</label>
<input type="text" class="text autocomplete company" size="40" name="keywords" value="{$params.company}" id="keywords" />
</ul>
{include file="search-tabs.tpl"}
</fieldset>
</form>
{include file="user-access.tpl"}
------------------------------------------------------------------------//// I want refresh this portion
{include file="companies-list.tpl"}
----------------------------------------------------------------------//// end
{include file="footer.tpl"}
|
Please help .... I want to refresh this file after 20 seconds |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Feb 05, 2013 2:19 pm Post subject: |
|
|
Put in the <head></head> of your document:
Code: | <meta http-equiv="refresh" content="20"> |
|
|
Back to top |
|
andreycosmin Smarty Rookie
Joined: 05 Feb 2013 Posts: 8
|
Posted: Tue Feb 05, 2013 2:34 pm Post subject: |
|
|
mohrt wrote: | Put in the <head></head> of your document:
Code: | <meta http-equiv="refresh" content="20"> |
|
i don't want to refresh all page i want to refresh this part using js
Code: | {include file="companies-list.tpl"} |
|
|
Back to top |
|
andreycosmin Smarty Rookie
Joined: 05 Feb 2013 Posts: 8
|
Posted: Wed Feb 06, 2013 12:22 am Post subject: No one helped me |
|
|
No one helped me |
|
Back to top |
|
douglassdavis Smarty Junkie
Joined: 21 Jan 2008 Posts: 541
|
Posted: Wed Feb 06, 2013 12:51 am Post subject: Re: No one helped me |
|
|
andreycosmin wrote: | No one helped me |
That's more of an ajax, jquery question, not a smarty one. |
|
Back to top |
|
andreycosmin Smarty Rookie
Joined: 05 Feb 2013 Posts: 8
|
Posted: Wed Feb 06, 2013 7:57 am Post subject: Re: No one helped me |
|
|
douglassdavis wrote: | andreycosmin wrote: | No one helped me |
That's more of an ajax, jquery question, not a smarty one. |
yes but code is inderted in smarty template |
|
Back to top |
|
andreycosmin Smarty Rookie
Joined: 05 Feb 2013 Posts: 8
|
Posted: Wed Feb 06, 2013 9:09 am Post subject: Who can help me :( |
|
|
Who can help me |
|
Back to top |
|
douglassdavis Smarty Junkie
Joined: 21 Jan 2008 Posts: 541
|
|
Back to top |
|
|