aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes retrieving users' bookmarks Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "retrieving users Watch "retrieving users New topic
Author

retrieving users' bookmarks

nastaran zanjnai
Ranch Hand

Joined: Apr 15, 2011
Posts: 43
Hi

I need to retreive users' bookmarks in my web site. is there any way to do it using javascript?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56233
    
  13

No. Thank goodness.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
nastaran zanjnai
Ranch Hand

Joined: Apr 15, 2011
Posts: 43
I know the security issues, but it is a bit different. there are multiple links in my website that users should select some of them. I need to know which links they have selected. I thought it is good to ask them to bookmark their favorite links and then I retrieve them. is there any other way for this purpose but bookmarking?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56233
    
  13

Checkboxes.
nastaran zanjnai
Ranch Hand

Joined: Apr 15, 2011
Posts: 43
the web page shows the results of a search created by a search engine. I know how to make check boxes but I don't know how to create them in a webpage which is generated by a search engine.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
You can write a redirector servlet that records which of the links was clicked, and then redirects to the actual URL. So a link would not look like this:

http://www.some-other-server.com/some-dir/some-page.html

but instead be:

http://www.your-server.com/redirector?url=http://www.some-other-server.com/some-dir/some-page.html

(note that you need to URL-encode the target URL)


Android appsImageJ pluginsJava web charts
nastaran zanjnai
Ranch Hand

Joined: Apr 15, 2011
Posts: 43
but clicked links are not necessarily the favorites. the user may click a link to just see what is there.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
So you want to track which pages your users visit even when they don't go there through your site? That sounds like a privacy issue.
nastaran zanjnai
Ranch Hand

Joined: Apr 15, 2011
Posts: 43
no, I just want to know which of the links that are suggested to users, as a result of a search engine in my web site, are users' favorites. but my point is that users may click on one of the suggested links just to see the content and that link could not necessarily be their favorite.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
You can let users upvote (or "+1") suggested links, like Google recently introduced. That gets in the way of the natural flow, though: if users like a link, they may not go back to the search results page, and thus don't get a chance to "+1" the link. They only go back to the page for more results if they didn't like the link they clicked on. Sort of a Catch-22.
nastaran zanjnai
Ranch Hand

Joined: Apr 15, 2011
Posts: 43
it is not a bad idea, but what if users want to select multiple suggested links as their favorites? in this case they have to go back to the page of search results several times.
Hauke Ingmar Schmidt
Rancher

Joined: Nov 18, 2008
Posts: 371
Do you want to write a browser extension? Then it is possible, but the API is certainly different from browser to browser. And the user has to install it, obviously.
nastaran zanjnai
Ranch Hand

Joined: Apr 15, 2011
Posts: 43
ok, how is it possible for IE for instance?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56233
    
  13

That is something you'll probably need to get from Microsoft.
Hauke Ingmar Schmidt
Rancher

Joined: Nov 18, 2008
Posts: 371
What I suggested is the only technical solution to do this. Unless you are writing an intranet application this will not be a practical solution; except when you want to write a browser extension that highlights every link on every page that is bookmarked (sounds... slow). But then this would not be the right forum for this - especially not for the Internet Explorer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retrieving users' bookmarks
 
Similar Threads
Bookmarks with HWPF
favicon
Documenting Open Source Library (JQuery)
bookmarks in rad
Where can I find the objectives to WLS certification?