i have a problem about auto refresh title page in my web, not the page, but only the title page.
can u help me guys about the script..?
| SitePoint Sponsor |
i have a problem about auto refresh title page in my web, not the page, but only the title page.
can u help me guys about the script..?


Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
i want it automatically refresh, can it do it?

Could you please explain what you mean by automatically refresh as without code you have attempted to use its very difficult to offer any other solutions then what Paul has offered.
Blog/Portfolio | Evolution Xtreme | DFG Design | DFG Hosting | CSS-Tricks | Stack Overflow | Paul Irish
Having lame problems with your code? Let us help by using a jsFiddle
it doesn't work..
<script type="text/javascript">
<!--<tpl:tmpl name="auto_ref">
setInterval(function() {
$.ajax({
url: '{BASE_URL}/main.php',
//data: {name: 'username', password: 'userpass'},
success: function() { document.title = '$var';},
dataType: 'text'
});
}, 1000);
<!--</tpl:tmpl>
</script>

What does $var referrer to in your code?
Code:success: function() { document.title = '$var';},
Blog/Portfolio | Evolution Xtreme | DFG Design | DFG Hosting | CSS-Tricks | Stack Overflow | Paul Irish
Having lame problems with your code? Let us help by using a jsFiddle
$var is variable that i take from database value, just assume "select * from.."..
please help..
Bookmarks