Results 1 to 7 of 7

Thread: drag-droppable image-link on OS X

  1. #1
    Join Date
    Jan 2007

    drag-droppable image-link on OS X


    We have a link on our site with the instructions, Drag the following link to your desktop or favorites bar for quick access to X. The link is basically structured like so:

    HTML Code:
    <a href='/somepage'>
      <img src='/images/quick-access-logo.png' />
    This works perfectly fine in Windows. You drag the link to the desktop, and it places a shortcut, pointing to http://mysite.com/somepage on the desktop. In Safari and Chrome (have not tested FF), it simply saves quick-access-logo.png to the desktop.

    Any thoughts on how to make this function correctly in OS X?

    My current thought is to make the image a background. But, I'd like to avoid going down that road if there's some attribute or indication that'll make this just work!

    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  2. #2
    Join Date
    Aug 2006
    the issue is that some browsers assume that you are trying to save a copy of the image by default, try using a background image, or better yet asking the user to right click and copy shortcut or add to favorites/bookmarks from the right-click menu
    Last edited by bsmbahamas; 06-22-2012 at 02:54 PM.

  3. #3
    Join Date
    Jan 2007
    Thanks for the feedback.
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  4. #4
    Join Date
    Jan 2007
    For this shortcut, it would also be ideal if we can specify (or "suggest") the image to use for the icon.

    Anyone know whether [and how] this can be done?

    It doesn't appear to be using the favicon, which is assigned to the shortcut when dragged to the favorites bar. And when the image was located inside the anchor tag, OS X browsers exhibited the issue in the OP. Maybe there's a trick with background images, special attributes, or link tags?
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  5. #5
    Join Date
    Aug 2006
    as far as i know, as long as you copy the link to your desktop using right-click, or just drag it over, it should use your favicon as long as your favicon normally works when you book mark your site otherwise. so if your favicon appears normally when you bookmark it should also work when you drag and drop or copy-shortcut/paste-shortcut, in my experience though sometimes it works and sometimes it doesn't, even with big sites like google and youtube and yahoo, it sometime works and sometimes don't

  6. #6
    Join Date
    Jan 2007
    Thanks for the feedback again -- no dice though. I've found several sources that correlate with what you're saying, some including charts to indicate which browsers will do what with the favicon. Unfortunately, these charts appear to be outdated. I can't, for the life of me, get any browser on either system to use the favicon for the desktop shortcut. (Works in the browser's links bar and favorites menu.)

    If there's some subtlety I may be missing, hopefully someone can point it out.

    My employer is very picky and detail-oriented. I've even gone so far as to creating an inline, data-uri shortcut "file" on the fly. In the scenarios I've attempted so far, I can get the shortcut file to drag-drop successfully (on windows), but designated icon still fails to show. (Maybe the image can be embedded in the shortcut file?)

    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  7. #7
    Join Date
    Aug 2006
    i know right? blame the browser makers and o/s makers i guess.

    i'm stuck at work using IE7 and the shorcut to this page has an image shortcut:

    the actual code in the shortcut is:


    so it appears that the iconfile line may be the way, but i'm not sure how to embed that into the link, if you can find a solution please post it, otherwise you may need to explain to your boss that pixel perfection and stuff like this is hard to do(at least the first time you need to do it), and explain that the browsers all do their own thing and some can't do it at all - provided you can show him something to support this case

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.18002 seconds
  • Memory Usage 2,909KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (72):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • bbcode_parse_start
  • postbit_imicons
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates