Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Force sites into favourties folder

this may be active-x?

12:16 pm on Jan 6, 2004 (gmt 0)

Full Member

10+ Year Member

joined:May 13, 2003
votes: 0

I need some way of forcing a favourite into the favourties folder on a number of machines, im currently updating the intranet for a travel agent, they have a number of online sources for flights, accmodation and also account information, they have around 50 computers and each have there own favourites on there machines, what i need to know is how i can update there favourites folderwith new websites that the company now uses?

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?


3:20 am on Jan 8, 2004 (gmt 0)

New User

10+ Year Member

joined:Jan 8, 2004
votes: 0

Hmm, sounds like a handy thing to get working! You probably have the code that adds a favourite already, so...

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

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?