Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 03-16-2005, 08:57 PM Accessing favorites
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
Trades: 0
Does anyone know how to access the users favorites list through javascript, assuming he wants to..? Let's assume a HTA file (so security is not a problem), and that yes the user wants to do it.

All google tells me is how to ADD a favorite, but not how to access them. ImportExportFavorites seems to be a feature no longer supported by MS.

I could write an application that the user could download, then send those favorites to the server, but that wouldn't work on a MAC. I could also ask the user to export his favorites, then upload the exported file and parse it, but I think that could be too complicated for most people.

Ideas?

JM
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
 
Register now for full access!
Old 03-17-2005, 12:10 AM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
I'm almost sure that it isn't possible. You'll probably be able to do it through ActiveX, though.
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 03-17-2005, 09:28 AM
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
Trades: 0
Well it is possible if I just read the directory at c:\windows\favorites. But then I need to figure out where that directory is on all machines in all browsers. Mac? FireFox? Yuk...
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
Old 03-20-2005, 04:41 PM
Extreme Talker

Posts: 160
Trades: 0
Just to add......

You can't use client-side JavaScript to read directories.
Reading bookmarks/favorites is a privacy issue so will not be supported in client-side JavaScript.
ElectricSheep is offline
Reply With Quote
View Public Profile
 
Old 03-21-2005, 04:33 AM
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
Trades: 0
Hmm, well ok, let me confirm:

It IS possible to make directories, add files, execute DOS programs from client side Javascript. The issue is to make HTA applications instead of a htm pages.

So I could indeed read the WINDOWS / WINNT direcotory and read the favorites, but I don't really want to do that. It doesn't sound very "standard".

I guess nobody knows the "correct" way to do this... Hmm...maybe I need to find a programmer forum..

I shall return with the answer.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
Old 03-21-2005, 04:56 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Can you post the code you have so far?
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 03-21-2005, 09:43 AM
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
Trades: 0
I dont have any code so far. I am just researching the accepted way to do it. I am thinking there is no general accepted way to do it and I need to write custom read functions for each browser. I just figure if the guy has Netscape installed, go to his netscape folder, figure out the fileformat that and export it, if he has explorer, go to favorites and export those.

That is not how I want to do it, I would prefer to know if there is a universally accepted way to do it, without having to write hacks for each browser. But I think there may not be a universal way to do it.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
Old 03-21-2005, 11:30 AM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
What you are doing is illegal and as of IE6 not turned on by default. It used to be you could use vulnerabilities in IE to run vb code. Nowadays it comes disabled. If users want to bookmark your site then they will. You don't need to force it on them and especially not invade their privacy.

Sorry but $respect-- for trying to screw with other people's stuff

-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 03-21-2005, 01:40 PM
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
Trades: 0
I think there is some misunderstanding here. In the first line of this subject, I wrote it:

The user WANTS to send me his favorites. There is a button: "Send us your favorites". He clicks on the button. It downloads an EXE, (or HTA), he clicks YES to run it.

It runs and exports his favorites. Just like the user wanted to.

I am looking for the best way to allow the user to do this. Not illegally, but rather he WANTS to do it.

JM
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
Old 03-21-2005, 03:12 PM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
Ahhhhh..... my apologies. I misunderstood. I don't know how to go about this then.

Again sorry. Hope someone can help.
-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 03-21-2005, 03:32 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Wouldn't it be easier to provide your users with instructions on how to export their bookmarks/favorites themselves, and then allow them to upload the exported file to your server? That way there's no security issues involved with running code on the clients machine.
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 03-21-2005, 04:17 PM
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
Trades: 0
That was what I started thinking, but when I did it myself, I found it to be kind of complicated. If I could get the user to click on a button to download an EXE or HTA, and have it "magically" done it would be better.

I am leaning toward HTA files, since they are machine independant, and browser independant (well sort of). So I won't have to make an EXE for each machine / browser.

I think in the end it will exactly end up as an export and upload scenerio.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
Reply     « Reply to Accessing favorites
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41845 seconds with 12 queries