Adding Googlemaps Breaks Tab Opening?

Aug 22, 2009

For years I have been using external_link.js, a file that I found at sitepoint, in one of Kevin Yank's articles I believe, to open new pages in a new tab when a link contained rel="external"

I just added the googlemaps api to a site to display maps, and none of the old menu links open in new tabs anymore! Has anyone else had this problem or have any idea why it has happened? Same function name in both javascripts?

View 1 Replies


ADVERTISEMENT

Adding Markers To Googlemaps?

Apr 8, 2009

I'm trying to get addresses from an XML doc and use them to populate a google map with markers. My problems are (A) markers don't show up when I first load the page, but if I return to the page they magically appear, angles sing and all is right with the world, and (B) Markers just flat out refuse to populate when using Firefox. My code is pretty simple and I'm just not understanding where I'm going wrong:seemlingly the offending code:

functin addMarkers(){
htt.open('get', 'phoneBook.xml', true);
http.send(null);

[code]....

View 7 Replies View Related

Adding Event Listener As Attribute Breaks?

Nov 21, 2011

I am testing some code that finds and element and attempts to add an event handler attribute to it as 'onclick' (test case in Firefox 3.5.9)

/*
The actual code is:
window.onload = function()
{
//<irrelevant code>
var test = document.getElementById('tstEl');

[Code]...

I am trying to do this because Element.addEventListener or Element.attachEvent won't allow for arguments to be passed to the event handler code/function. What is going on here? The only line referenced, line35, in the document text containing javascript code is irrelevant to the problem.

View 6 Replies View Related

JQuery :: Adding Line Breaks Which Can Be Similar To Nl2br() In PHP?

Jun 22, 2009

I wonder if jquery or javascript has the function adding line breaks which can be similar to nl2br() in PHP? This is the info i want to grab from a database, PHP will add line breaks (<br/>) when it is passed into nl2br(),

[Code]...

View 4 Replies View Related

JQuery :: Adding A "stop" To A "mouseout" Event But Breaks The Setup And Nothing Fades In When Hovering

Mar 1, 2011

I threw together my own piece of basic jQuery code to have a fadeIn and a fadeOut when I'm hovering a list item, this all works wonderfully apart from one small detail. When I rapidly move over the list item a couple of times in a row, the events start queueing up and the fades keep happening until the queue is done. How do I prevent this from happening? I tried adding a "stop" to a "mouseout" event, but that breaks the setup and nothing fades in when hovering.

<script type="text/javascript">
$(document).ready(function(){
$('li.headlink').hover(function(){
$('ul', this).fadeIn("slow");
}, function(){
$('ul', this).fadeOut("slow");
});
});
</script>

Additionally, it would be neat to have the fadeIn stop when the mouse moves out of the list item before the animation is done, and then go straight through a fadeOut from where the fadeIn stopped (so if the fadeIn was at 60% or so, the fadeOut kicks in and starts from 60% to 0%, instead of 100% to 0%). But this isn't important, just a nice extra feature.

View 1 Replies View Related

JS Passing Into PHP - Googlemaps?

Oct 16, 2010

I'm trying to create a simple GoogleMaps site, to insert data into a SQL database for retreival later.I can pass all the information apart from the longitude and latitude values, and they just appear as '0' in my database.

Quote:

if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.enableGoogleBar();

[code].....

View 3 Replies View Related

GoogleMaps Integration In Birt?

Oct 19, 2009

I would like to integrate google maps into Birt (which is a business intelligence framework with html reports). What I succeeded so far is to build an iframe which is calling an html which contains the googlemaps page, this looks like this:the iframe (which is part of my html report):

Code HTML4Strict:

<iframe src ="text.html" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>

and the text.html which contains the google maps page:

Code HTML4Strict:

<html xmlns="h t t p : // w w w . w3 . org/ 1999/xhtml">
<head>
<script src="h t t p : // ma ps. google . com/ maps?file=api&v=1&key=ABQIAA...." type="text/javascript">
</script>

[code]....

This works so far, but this is not dynamic. What I need is some way to pass the coordinates to the GPoint(x, y) object. The iframe is inside of Birt and I can insert some code there, the values would be represented as following: <VALUE-OF>row["X"]</VALUE-OF>, <VALUE-OF>row["Y"]</VALUE-OF>.

My problem is now how to pass this values to the GPoint object in text.html. Is it possible to build a function which receives this parameters or is it possible to put the text.html code inside of the iframe (what i tried so far didn't work, as I said, my javascript/html knowledge is limited).

View 1 Replies View Related

Googlemaps Icon Not Transparent / Fix It?

Sep 15, 2010

You'll see a google map there, created with this jQuery plugin. Although I've used the plugin on several occasions without any trouble, this time the map's .png icon/marker cannot be made transparent.

I've tried several things (removing my reset.css file, adding a js png- transparency fix, fiddling with the plugin options) but nothing works...

View 2 Replies View Related

Prototype Geoposition With GoogleMaps Polyline?

Mar 13, 2011

i have a project for school to create a web app that's using geolocation to recive the LatLong coordinates and draw a path in google maps using polylines. There are more features that we are going to implement but this is the one i need help with.What i need is to push into the array of the polyline the coordinates i get from geotraker.Use Chrome Browser, the other ones are not supported buy the geotraker.Try this in chrome and see if ur getting the coordinates The zipped files

View 1 Replies View Related

GoogleMaps - Display Numerical Values (%) That Indicate The Traffic?

Feb 25, 2011

what i would like is to achieve what has been implemented here : [URL] the problem is that, although i have the numerical values (%) that indicate the traffic that passes through a link available as data, how to display them onto the google map?

View 1 Replies View Related

JQuery :: Googlemaps: Sidebar: Linking Externally To Menu Items?

Oct 24, 2010

Another quick question re. the JQuery sidebar I have on my Google map. I would like to link to individual markers from different websites or via email, so would like to convert for example, the 'javascript:myclick(7)' link on the menu to an external URL that will click to the marker and info box containing the video. Is this possible?I have tried something like [URL].. but that doesn't seem to work. Does someone know of anotherwayto do this?[URL]...

View 4 Replies View Related

Alert Box Breaks

Nov 6, 2003

How do you create a line break in an alert box with JavaScript?

View 2 Replies View Related

JQuery :: BlockUI Breaks Under 1.4.1

Mar 24, 2010

Have a asp.net mvc project using jquery-ui-1.7.2. and BlockUI. When I changed jQuery version from 1.3.2 to 1.4.1, the CSS pertaining to the block ceased to render. The functions fired (verified by in-line alerts) and firebug had no complaints. Moved back to 1.3.2 and the blocker rendered perfectly.

View 2 Replies View Related

How To Format Code And Add Breaks

Nov 12, 2009

I can't figure out how to properly format the code below. I am looking to add breaks after where it says below. Also to change the color if possible.
function isPPC() {
if (navigator.appVersion.indexOf("PPC") != -1) return true;
else return false;
}
if(isPPC()) {
document.write('<b>Send <A CLASS="contact" HREF="mailto:?subject=ADD A BREAK AFTER THIS ' + document.title + '?body= ADD A BREAK AFTER THIS ' + '" onMouseOver="window.status='Send your friends e-mail about this page'; return true" TITLE="Send your friends e-mail about this page">this page</A> to a friend</b>');
}
else { document.write('<b>Send <A CLASS="contact" HREF="mailto:?body=ADD A BREAK AFTER THIS ' + document.title + ' ADD A BREAK AFTER THIS ' + '" onMouseOver="window.status='Send your friends e-mail about this page'; return true" TITLE="Send your friends e-mail about this page">this page</A> to a friend</b>');
}

View 6 Replies View Related

For-Loop Breaks Code / Why Is So?

Jul 7, 2011

I have the following code ...

The whole idea is that if a certain div object comes to focus, something else disappears (using JQuery). For some reason the code in the comments is working fine, but the for loop breaks everything down. Why?)

View 1 Replies View Related

Parsing Line Breaks

Feb 1, 2007

I'm making a vaery specialized form to output html code to copy and paste. So far so good and I'm happy with the out come. I know it's a tad bloated but I actually wrote a little bit of it from what I've learned so I'm learning and that's the point.

So what happens is that I present my user with a form where they can slap in all the info and the out come is a copy and paste procedure after that.

In the "content" section, I'm sure there will be a few paragraphs of text being entered sometime, and most likely copied and pasted in. What I would like to happen is the script recognize carrige returns and enter in <br><br> in place of them. This is a wordpress issue so im not sure if closing a p and opening one is going to work right. Code:

View 10 Replies View Related

Page Breaks In IE But Not With Firefox

Sep 3, 2009

[URL]
-If you click on the green "Virtual Tour" button in the middle of the page...it gives a error
-This is working fine in Firefox

There's s function if you view source :
function win_up(winurl, winname,w,h) {
if (winname == null) winname = "calcs_win";
if (w == null) w = 500;
if (h == null) h = 500;
window.open(winurl, winname,"status,scrollbars,resizable,width=" + w + ",height=" + h);
}

View 7 Replies View Related

Div Ignoring Line Breaks

Jun 28, 2010

I am passing data from a textarea to a div with javascript. The problem is the div is ignoring line breaks.

document.getElementById('layer1').innerHTML = document.getElementById('reply').value.replace("
", "<br /><br />");
e.g... i entered this in the textarea
test1
test5
test6

the result was in the div

test1
test5 test6

the div is completely ignoring the line breaks.?

View 4 Replies View Related

Removing Line Breaks ...

Mar 1, 2004

How would I go about removing line breaks from a textarea? I know that different OS's have different types of line breaks (
,
, or

), so I need for this to work 100%.

I'm trying to use the replace() method for the string object, but it doesn't seem to be working. =/

View 12 Replies View Related

Replacing Line Breaks

Jul 12, 2002

Just a quick Q, how would I change line breaks in html to <br>'s?

View 5 Replies View Related

Javascript Breaks When Images Added

Jul 20, 2005

This javascript is meant for learning language vocabulary, specifically
colours on this example. However, when I use images in the mtWord array,
it breaks when checking for correct answers. It works fine with text in
those spaces. Code:

View 2 Replies View Related

JQuery :: Code Breaks Without An Alert()?

Jul 27, 2009

This one is throwing me. I have a small piece of code that I am using to call a function in dynamic drive's accordion menu script. As long as I leave the alert() line in, it works. Comment it out and the call to expandone() doesn't go through. I must be missing something obvious, no? Here's the relevant part of the code (it is fired from $(document).ready() ):

[Code]...

View 2 Replies View Related

Line Breaks In Custom RSS Feed?

May 2, 2010

I pulled together a custom RSS twitter feed that uses javascript; however, when I tell the code to "callback" 3 posts, they all run together without line breaks. What is the best way to have breaks between the posts?

This page shows the html code (in the right sidebar): [URL]

The javascript looks like this:

[Code]....

View 3 Replies View Related

JQuery :: Append Breaks The Lightbox?

Jan 12, 2011

I am using jquery append to add a div(a fairly long html string) to my content wrapper. But when appending it the lightbox function breaks. The site is at: [URL].The first box with the info filled in is an div that is in the html and the lightbox works. The second box is the one inserted with append and the lightbox is broke. The class attributes seem intact and I cannot figure out why it is broken.

View 1 Replies View Related

IE9 Breaks Dynamic Select Boxes?

Jun 20, 2011

I have the below JS code to change up a select box based on what is selected in another select box. IE9 broke this somehow. It still works in other browsers as well as IE8 and IE7.

When you select something in select box A, it properly populates select box B. However when you go back and change select box A again the script stops working completely.

[Code]...

View 2 Replies View Related

JQuery :: Form .submit() Breaks When Using Ajax

Jan 12, 2012

dt_save is a <form>, the submit trigger works as usual but when doing an Ajax request the code interrupts without any error. I put in 2 alert's just to check, only the first alert box appears when submitting the form. Also I can't find my request in Firebug's Network window (Firefox addon).

$('#dt_save').submit(function(){ alert('json request'); $.ajax({ type: "POST", url: "json.php?action=extendable_select_insert", dataType: "json", data: "into=empfaengerliste&col=empfaenger&value=" + encodeURIComponent(document.getElementByID("data[empfaenger]_t").value), success: function(data) {} }); alert('done'); });

PS: Of course the requested PHP-File exists!

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved