I'm using this script to display an address on a Google Map and if there's more than one plausible point, then a "Did you mean" function is run. It woks fine:
<script type="text/javascript">
//<![CDATA[
if (GBrowserIsCompatible()) {
var map;
var geo;
var reasons=[];
function load() {
map = new GMap(document.getElementById("map_canvas"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(20,0),2); .....
It works perfectly, but once a marker has been put on the map, I would like to display a balloon tip with the address and maybe some additional info. Just like in this [URL] example from Google. I guess I'm supposed to use this line:
marker.openInfoWindowHtml(address);
But I don't know where to put it.
I am using this script to put various address on a map. It works perfectly, but addresses are always displayed in one line in the info window, like e.g. "1600 Amphitheatre Pky, Mountain View, CA, USA". Is it possible to format the address in any way, so that they are displayed with proper line breaks?
I know I can use the status line to display a message 'on mouse over'. However, I would prefer to have the message displayed near the cursor location, but couldn't figure out how.
When you click on "Get Directions" in the browser window, it opens up a new window and loads up google maps, which is perfect...BUT...The destination address is listed as coordinates.
I have seen this before, where the destination address is an address and then it says @"coordinates".
is it possible to track whether user is typing in the browser's address bar or aside google search box ( which appears in most of the browsers besides address bar)? if yes, I would like to know HOW? references are welcome.
I had a beautiful script written by @rnd me that looks like this:
Code: <body> <input id='inp' /> <select id='sug' /> <script type='text/javascript'> function el(tid) {return document.getElementById(tid);} function addScript(u){ var head=document.getElementsByTagName('head')[0], [Code]....
This script made it possible to show Google suggestion while typing in an input field. The Google suggestions are retrieved over here: [URL] The problem is that all of the sudden it stopped working! For apparently no reason because Google is still 'providing' the suggestions online. So I have two questions: Why is it stopped working? Did Google restrict the suggestions to third parties?
i want to add the link address when clicked on the link in web page to the outlook express address book when the outlook window populates. i tried to put
<a href="mailto:enquiry@mydomain.com" > click here </a>
but it only add address to the To section of outlook window, i want it should store the address in the address book.. of outlook express..
I have been looking for a solution for a long time. I have embedded a SWF app in html page using SWFObject. Now I need to give the Flash app the address where it is currently embedded, since the same SWF file is embedded in more than one locations! So the Flash app is supposed to pull the right content according to its current position
I'm not sure where I have translated this incorrectly. I have one google map embedded on my page which works fine. But I wanted to add a second one. I thought the easiest way to do this would be to have a second page which is called later on with all the details on it for the second map. However although I think (this I presume is where I went wrong) I have replicated the instructions correctly the place holder for the second map just remains blank.
This is the code for my called page with the instructions for the second map:
And this is the script of the main page, just in case I would be better off keeping them both in one place.
<head>
I've cut out the script that doesn't relate to this so I hope I haven't missed anything important.
I want to know how can i make javascript that i can use by run into in address bar.. I just need such javascript that run through address bar. My purpose is How can i check all check box in webpage that do not include all check or uncheck button? Best common example for check all or uncheck all is
Is this possible??? I am working on a server which does not have Server Side Includes. Is there anyway to get a clients IP address using JavaScript without SSI?
I know you can use javascript in the address bar to display alert messages and misc. stuff like that. But when I try and control some forms it loadsa a new page for the loaded example...
Instead of using javascript:alert('hi'), suppose I store alert('hi') in x.js and put it on host.com/x.js. Is there a way to execute host.com/x.js directly from the address bar using javascript:?
I have a simple little code script and I'd like either the onClick function (or the entire code itself, whichever is easiest) to only load once every 24 hours for each IP address. So "123.1.22.333" should only get the effect of this code once every 24 hours regardless if they revisit my site 5 times a day let's say.
I am trying to split an IP address into it's 4 octets using a RegExp and assigning the result to an array but it is not working. Here is my function so far:
<script type="text/javascript"> function lastoctet(ipaddress){ var ipoctets = new Array();
Instead of using javascript:alert('hi'), suppose I store alert('hi') in x.js and put it on host.com/x.js. Is it possible to execute host.com/x.js directly from the address bar using javascript
Can any one hlep me in disabling address bar in IE7.0 using javascript. In IE 6.0 if you give locaiton = no, it will disable the address bar.It was not working with IE 7.0.