Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8209613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:47:09+00:00 2026-06-07T09:47:09+00:00

I was using zclip copy to clipboard function successfully until I started using twitter

  • 0

I was using zclip copy to clipboard function successfully until I started using twitter bootstrap css framework.
Now I can’t seem to use zclip anymore, does anybody have a solution for that?

Some test results:

Here is how I use zclip:

    $('.test').zclip({
        path:"{{ asset('bundles/yopyourownpoet/flash/ZeroClipboard.swf') }}",
        copy: 'test',
        afterCopy:function(){
            alert('The poem has been copied to the clipboard.');
        },
    });

This works fine with the following html:

<div class='test'>test</div>

But whenever I try to use an image, it doesn’t work anymore, the flash thing won’t appear:

<div class='test'><img src="{{ asset('bundles/yopyourownpoet/images/Star.png') }}" alt="Star" height="100" width="100" /></div>

This was working great before I started using bootstrap…
Any hint for using zclip & bootstrap, and have the flash thing over an image?
Thanks a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:47:10+00:00Added an answer on June 7, 2026 at 9:47 am

    Well, after a lot of tries, I finally have it working. I had to revert to zeroclipboard and not use zclip anymore.
    Here is the code that’s working:

        <div id="d_clip_container" style="position:relative; bottom: 25px; display: inline;">
            <img id='d_clip_button' style="position:relative; top: 25px;" src="{{ asset('bundles/yopyourownpoet/images/CopyPoemPage8.png') }}" alt="Copy Poem" height="71" width="300" />
        </div>
    

    –

        ZeroClipboard.setMoviePath("{{ asset('bundles/yopyourownpoet/flash/ZeroClipboard.swf') }}");
        var clip = new ZeroClipboard.Client();
        clip.setText( 'text to copy' );
        clip.glue( 'd_clip_button', 'd_clip_container' );
        clip.setHandCursor( true );
    

    Note that I had to use a trick, bottom 25px on the container and top 25px on the image, so that the flash thing is superposed with the image.

    This is working good, except that the cursor isn’t always changed to pointer when hovering the image.

    I think this solution is a bit shady though, so if anybody has a better solution please share it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using jquery.zclip and Symfony2 framework to copy text to the client's clipboard. It
Im trying to copy data to clipboard using zclip jquery. problem that im facing
I'm using http://www.steamdev.com/zclip/#usage to copy some text to the clipboard and that code is
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the
Using Delphi 2010. I am looking for (possibly) a function or procedure which can
I'm using Jquery plugin ZClip or ZeroClipboard which copies content to the clipboard via
Using twitter bootstrap (2), I have a simple page with a nav bar, and
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using jQuery, one can easily find out whether a particular element is visible using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.