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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:52:03+00:00 2026-06-16T00:52:03+00:00

Its so simple yet somehow I’ve done something wrong. http://www.geoplugin.com/quickstart#how_to_geo-localize_your_visitors The code in the

  • 0

Its so simple yet somehow I’ve done something wrong.

http://www.geoplugin.com/quickstart#how_to_geo-localize_your_visitors

The code in the above site works fine, it knows exactly where I am yet when I copy over the code to my webpage it doesn’t work.

In the head tag:

<script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>

In a div tag:

<script language="Javascript">document.write("function geoplugin_region() { return '"+ geoplugin_region()+"'; }");</script>

Returns:

function geoplugin_region() { return ”; }

The relevant part being ” in between the quotations a region should be displayed but its not.
(Both my webpage and the geoplugin were opened in internet explorer)

Any ideas?

For testing:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="JavaScript" src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
<title>Untitled Document</title>
</head>

<body>
<script language="Javascript">document.write("function geoplugin_region() { return '"+ geoplugin_region()+"'; }");</script>
</body>
</html>

UPDATE

So when others test the code on their computers it works fine

When I open other people’s pages that contains the geoplugin code it works fine

But if I open a website that is located in my harddrive it doesn’t work (both work and home computers)

Any ideas?

ANSWERED

EI (9) security settings were causing the problem I just had to convert the html to a hta and it works fine (I can’t actually change the security settings for IE here at work so that was not an option)

  • 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-16T00:52:04+00:00Added an answer on June 16, 2026 at 12:52 am

    I upload you sources code as a html file to my server,and it return a true place where I live.

    So,I think the geoplugin may use the XMLHttpRequest technology of AJAX.
    Also,you can click http://hanasite.com/jscon/demo.html to checking.
    Hope it can help you solve you problem. 🙂

    (because of low reputation so I can’t upload a screenshot:()

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

Sidebar

Related Questions

I'm having some problems getting FancyBox to work...I figure its something pretty simple but
I'm at my wits' end... I'm trying to do something simple, yet I can't
Well, I have a simple question, at least I hope its simple. I was
import sys, os X = os.system(ipconfig) print X 0 I know its simple, I'm
Its a simple question, but I'm not aware of the answer and I couldn't
May be its a simple question but it's really driving me crazy. I just
I'm developing a desktop Mac OS X App that saves its very simple data
How to run javascript/Jquery functions on user specific time scenario its so simple when
I have a class CollectionOfThings . As its name suggests its a simple collection
I think its a rather simple question but I couldn't really find an answer

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.