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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:26:16+00:00 2026-05-30T11:26:16+00:00

I would like to explain my situation. I am writing a website and one

  • 0

I would like to explain my situation.

I am writing a website and one of the webpage is using the google map.

The web site is a cms website and it is using ektron

So, I have to use ektron google map coz it provides some features that the customers want.

Ektron is simply using google map and use ajax to combine with its own logic.

I dun know the details but whenever I tried to change the properties of that ektron map, I need to click search or zoom in or zoom out or move the map.

Only after I do that, the properties changed are effected. If not, they don’t.

So, I think of the shortcut and programatically cick the search button of ektron map.

Then again, I am adding the control programatically to a panel.

I can’t write document.ready coz I found out that works before the map is loaded.

So, I wrote this code to make the map works.

<script type="text/javascript">
    $(window).load(function () {
        $("#__GetAddr").click();
    });
</script>

It works. __GetAddr is the search button ID and I click it after everything loads.

But the problem started when I use it with chrome.

I found out that $(window).load() is not working in chrome, safari and opera.

I googled it for a while but can’t find any solid answer.

Is there any clear alternative way for that to work in those 3 browsers while it still works for IE7,8,9 and Firefox.

Thanks a lot.

Hi all, I have a solution.

I dun think it’s the best solution. but it works.

<script type="text/javascript">
    if (navigator.appName == "Microsoft Internet Explorer") {
        $(window).load(function () { $("#__GetAddr").click(); });
    }
    else {
        window.addEventListener('load', function () { $("#__GetAddr").click();                  }, false);
    }
</script>

I would appreciate to have a better one. 😛

  • 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-30T11:26:18+00:00Added an answer on May 30, 2026 at 11:26 am
    <script type="text/javascript">
        if (navigator.appName == "Microsoft Internet Explorer") {
            $(window).load(function () { $("#__GetAddr").click(); });
        } else {
            window.addEventListener('load', function () { $("#__GetAddr").click();                  }, false);
        }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all, i would like to explain my condition right now. I'm using
I would like to access a MySQL database using PHP. Can someone please explain
The title really really doesn't explain things. My situation is that I would like
I am migrating a website to a drupal CMS. I would like to know
I would like someone to explain me what _forward is exactly doing, I cannot
Would like to get a list of advantages and disadvantages of using Stored Procedures.
Let me explain my situation: I'm using a MVC framework (CodeIgniter), so every request
first I'd like to explain the situation/requirements that lead to the question: In our
I would like to know what is better to use in my situation and
Would like to create a strong password in C++. Any suggestions? I assume it

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.