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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:48:13+00:00 2026-05-25T14:48:13+00:00

I have: <script> jQuery(document).ready(function(){ $(#mydiv).click(function(){ $(#content).load(html/page.php); }); }); </script> And inside of an image

  • 0

I have:

<script>
jQuery(document).ready(function(){
    $("#mydiv").click(function(){

       $("#content").load("html/page.php");

    });
});

</script>

And inside of an image map:

<div id="mydiv"><area shape="rect" coords="318,122,413,221" href="#"/></div>

Another version of the line before:

<area shape="rect" coords="318,122,413,221" href="#" id="mydiv"/>

These (both versions of the image map line) work in all my browsers but in Safari (5.0.5). When in Safari I click but nothing happens. A regular link works so there’s nothing wrong with the image map.

I’ve tried deleting the # in href, and then it works for Safari but not for the rest. If I delete the whole href=”#” what happens is that I go back to not working in Safari and working for the rest

Anyone have an idea on what to do for the click to work in all browsers?

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-05-25T14:48:13+00:00Added an answer on May 25, 2026 at 2:48 pm

    It won’t fix your problem, but you might want to change jQuery(document).ready(function(){ to $(function(){. It does exactly the same thing.

    Regarding your problem, have you tried stepping through with the debugger? This will help you find out if the click handler is being triggered.

    If it’s the contents of the href attribute causing problems, you could try putting “/” in rather than “#”? Obviously, this will give different behaviour when JavaScript is disabled. What do you want to happen when JS is disabled?

    Also, area must have an ancestor map element. Does it?

    It might help if you bind the click handler to the area itself, rather than its parent.

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

Sidebar

Related Questions

I have placed the below code inside of the tag. <script type=text/javascript> jQuery(document).ready(function(){ jQuery('head').append('<script
I have the following jquery function > <script type=text/javascript> > > $(document).ready(function() { >
I have a working script like this: jQuery(document).ready(function(){ $('.video-thumb img').bind('mouseover',function(){ var new = $(this).attr('src').replace(/default.jpg/,'1.jpg');
I have a jqGrid script like that: jQuery(document).ready(function() { var startDate = $(#startDate).Val(); jQuery(#sandgrid).jqGrid({
I have a strange problem. I have a jQuery document.ready function executing some script
I have a working version of tooltip (jQuery Tools - http://flowplayer.org/tools/demos/tooltip/index.html ) , jQuery(document).ready(function()
i have a jquery script, which posts my form. here it is: $(document).ready(function(){ $(form#submit).submit(function()
I have the following Jquery script: $(document).ready(function () { // When the submit button
I have a jquery-ajax function that sends data to a php script and the
I have created a dynamic list picker script using Jquery 1.3 and PHP that

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.