English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Trying to use Ajax but can't get the Refresh Script Reload the since my style is based in js and css.

2006-07-25 02:56:30 · 3 answers · asked by bernardino_lopez 1 in Computers & Internet Programming & Design

3 answers

Hi, usually it is not recommended to reload the head. What you have in the head as you mentioned is the CSS /JS / META / TITLE / etc... So using reload AJAX is better have it in a div within the body section.

But with simple javascript you could change the title, change the stylesheet. The others ARENOT changable unless you have a brandnew request to that page.


Let me know if you need help.
Take care

2006-07-25 03:11:19 · answer #1 · answered by ? 6 · 0 0

It actually can reload JavaScript functions. I've done it. But I don't understand your question. Here is a script I've found that reloads a JavaScript function:




window.setInterval(function() { functionName() }, 30000);

2006-07-25 10:04:07 · answer #2 · answered by rob 3 · 0 0

ajax can load any part of the page that needs to be loaded - as long as its in the body.

it cant reload your javascript functions if that's what you're trying to do - but if you're server side scripting, then yes you can dynamically output a head

2006-07-25 10:00:40 · answer #3 · answered by payamazadi 2 · 0 0

fedest.com, questions and answers