Forum Moderators: open
each computer has a user logon and they would each have there page set up to add these new favourites is this possible, prefferably automatically?
Dan
Maybe you could create a 2-dimensional array with the details of the sites you want added, then when the main intranet page loads up, onLoad a function that calls the AddFavourite code on each of the elements in the array.
Some things you'll need to find out in order to get this working usefully are:
1. Whether you can AddFavourite to a specified folder
2. Whether you can delete that specified folder
All without prompting user for confirmation.
If all that is possible, then the function you would onLoad would probably look something like this:
function updateAgentFavourites() {
// delete the folder that contains your custom favourites // declare favArray here
// favArray[0][0] = site url
// favArray[0][1] = site title
for favArray_length {
// add the custom favourites to the custom folder
window.external.AddFavourite(favArray[i][0],favArray[i][1]);
}
}
This is all theory, btw. I've never tried it or seen it done before. If you've already tried this and it didn't work, what problems stopped it from working?