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 7826167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:17:20+00:00 2026-06-02T09:17:20+00:00

I created a JQuery plugin to display a map (xy) that is draggable. On

  • 0

I created a JQuery plugin to display a map (xy) that is draggable.

On Firefox it works flawless but on any other browsers there is a bug.

Bug:
Normaly the map should be displayed when the site loads.
But on all browser except firefox there is only a black screen until you drag the map, then
it works.

I have no clue how i can fix that.

Example: http://jsfiddle.net/X42Wf/

I hope you understand what i mean, if not look at the example (not with firefox), run it and then drag the black output.

  • 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-02T09:17:21+00:00Added an answer on June 2, 2026 at 9:17 am

    The innerDiv.css('left') is set to auto on initialization (means before a first drag). So in the getVisibleTiles function, mapX equals to NaN so the double for loop is not executed

    You just have to edit this:

    jQuery('<div/>', {
        id: 'GameMap',
        height: o.InnerDivHeight,
        width: o.InnerDivWidth
    }).appendTo(obj);
    

    with this:

    jQuery('<div/>', {
        id: 'GameMap',
        height: o.InnerDivHeight,
        width: o.InnerDivWidth,
        css: {
            left: 0,
            top: 0
        }
    }).appendTo(obj);
    

    Also, if you want to avoid side effects on IE, you should remove trailing comma at the end of objects declaration, like in those 2 examples:

    jQuery('<div/>', {
        id: tileName,
        style: "some CSS string", // <----- remove this comma or it will break on IE
    }).appendTo(innerDiv).text(tileName);
    
    jQuery('<div/>', {
        id: 'GameMap',
        height: o.InnerDivHeight,
        width: o.InnerDivWidth, // <----- this one too
    }).appendTo(obj);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a method for jquery's validator plugin, that works like the remote rule.
I'm using the plugin http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ to create tooltips with JQuery but I can't created
A while back I created a lightbox plugin using jQuery that would load a
I created jQuery sorter plugin like below to filter by classes. But now I
I have this jQuery ajax navigation tabs plugin that I created using some help
I created a jQuery plugin that manage the input content (max chars, preg match,...).
I've created a simple form and I'm using the Datatables jQuery plugin to display
I have created a jQuery plugin that grabs a JSON feed (in this case
I have created a jquery plugin to expand/collapse ul,li something like a accordion menu
I am new to jQuery plugin creation and created a plugin for my project

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.