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

  • Home
  • SEARCH
  • 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 6989005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:09:21+00:00 2026-05-27T19:09:21+00:00

I develop a jQuery plugin for projection of 360° images, where the main means

  • 0

I develop a jQuery plugin for projection of 360° images, where the main means of interaction are mouse / touch dragging. The now community faces problems when images are inside an iframe, where it is relatively easy for the mouse pointer to slip out of the iframe “frame” while dragging the image, thus ceasing the frame-locked "mousemove" and "mouseup" events. DOM events simply don’t to bubble up across frames. Frequent unpleasant result is a stuck dragging (running inside jsFiddle‘s iframe-powered UI would be the best example).

To route around it, using $.unique( $(window).add(window.top) ) I bind to either [ window ] or [ window, window.top ] depending on the situation. And it works very well. If all on a same domain.

If the domains differ, Same Origin Policy will step up and prevent binding to the containing page causing security errors eventually failing the script all together.

So assuming the above, my question is: is there a way to listen to outside dragging events from an iframe cross-domain?

Failed attempts:

  • window.top.onmousemove =…
  • window.top.addEventListener("mousemove"…
  • $( window.top ).bind("mousemove"…
  • 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-05-27T19:09:22+00:00Added an answer on May 27, 2026 at 7:09 pm

    If instead of getting the end user to embed an iframe, you can get them to include a js script file, that you can then write the iframe from, and manage events in the realm of the parent document, in parallel to your iframe events. You can then potentially pass things back to the iframe via the server session (ie dynamically add in scripts to the current page which modify the users session, the changes being polled from within the iframe). Thats a completely not ideal situation… but it will get things to work, and gives you access to the parent environment. It gets messy over multiple embeds, but thats extra for experts i think.

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

Sidebar

Related Questions

I need to develop a generic jQuery-based search plugin for the ASP.NET MVC application
Possible Duplicate: javascript (jquery) calendar plugin I am going to develop the weekly calendar
I develop a jQuery plugin which produces HTML output, currently something like <ul> <li><img></img></li>
I'm using jQuery Mobile to develop a mobile website and want to use images
Hello everyone. I am trying to develop a Jquery plugin following the steps I
Are there any tools that can verify whether a jQuery plugin will be compatible
I would like to develop a site using jQuery that will work with all
Which tools and addins are good to develop Jquery mobile tools in VS2010? Tools
I've attempting to develop a jQuery accordion, which is work ing pretty well so
I'm trying to develop image crop using JQuery. I use ajax to upload the

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.