Hi all,

I'm in this case, I want to create a simple script for the
visualization of a simple list of news, that I will be included in a web
page in another site.

<script src="http://site/news.js"; type="text/javascript"></script>

in news.js I load jQuery dinamically and all the ajax request to a php
file.

For the dynamic load I will use this code :

if (!jQuery) {
  var script = document.createElement('script');
  script.type = 'text/javascript';
  script.src = 'http://jquery.com/src/jquery-latest.pack.js';
  document.getElementsByTagName('head')[0].appendChild(script);
}

There's a better method or this is well?

Then, how I must proceed with the writing the rest of the code? The
structure where I will use the ajax request and all the rest?. The right
impostation? I've no idea. Someone have implemented this method?
Suggest, link and/or example are very appreciated.

--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

Reply via email to