Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

retrieving users' bookmarks

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I need to retreive users' bookmarks in my web site. is there any way to do it using javascript?
 
Sheriff
Posts: 67671
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No. Thank goodness.
 
nastaran zanjnai
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67671
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Checkboxes.
 
nastaran zanjnai
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
nastaran zanjnai
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
but clicked links are not necessarily the favorites. the user may click a link to just see what is there.
 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok, how is it possible for IE for instance?
 
Bear Bibeault
Sheriff
Posts: 67671
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is something you'll probably need to get from Microsoft.
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
There were millions of the little blood suckers. But thanks to this tiny ad, I wasn't bitten once.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic