Flash - Extend KmlPlacemark In The Google Earth API?

Jan 20, 2010

I'm trying to extend KmlPlacemark in the Google Earth API. Google uses factory methods to create the objects so I can't do something like this:

KmlPlacemark.prototype.foo = fuction(){...}

I tried to simply add methods to each of the objects after they were created

function foo(){...}
placemarkObj.foo = foo;

but it throws

Error: Trying to add unsupported property on NPObject!

I ended up just making a wrapper for it, but I'd still want to know if there's any other way of doing it.

View 1 Replies


ADVERTISEMENT

JQuery :: Superfish Drop Down Menu Under Google Earth Plugin?

Jul 12, 2011

I have this page, the superfish menu does not show over the google earth plugin but under! This problem is happening in IE8 and Google Chrome. To run the following code run it under localhost (that is the domain registered with the google earth api key)

<!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>

[Code]....

View 7 Replies View Related

JQuery :: Flash Movie Not Playing In IE6, But Working Fine In Firefox & Google Chrome?

Jun 23, 2009

I have used the swfobject.js file & its methods to play a flash movie in my webpage. It works fine when I open the page in firefox & chrome but does not work in IE-6. Below is the code i used:

<script type="text/javascript" src="<%= request.getContextPath() %>/js/
swfobject.js"></script>
<script type="text/javascript">[code]....

View 1 Replies View Related

Arrange A Multiple File Upload Dialog Without Flash - Google-Docs-like - Ex Inside?

Sep 21, 2010

I always wanted to know how to arrange uploading of multiple files without resorting to Flash. I actually even know a great example of such an upload form: [URL] (you need to be logged into Google Docs to see this) It definitely doesn't use Flash, but the source code is so obscure and clogged that i couldn't decipher it so far. In fact, all i need is a possibility to invoke a file load dialog with the ability to select multiple files, and after they are selected, be able to fetch their absolute paths on a local PC. I don't even need to actually upload them afterwards.

View 2 Replies View Related

Geographical - Get The Distance Between Any Two Points Of Latitude And Longitude On The Earth's Surface

Sep 20, 2010

I've found the Harvesine forumla to get the distance between any two points of latitude and longitude on the earth's surface. What I want is a little different - I want that, given a point and a distance, to get the latitude and longitude of a second point. I'm having trouble reversing the forumla. The current formula:

[Code]...

View 2 Replies View Related

Make The Front Page Image Transition In - Like Flash - But Without Flash?

Apr 13, 2009

Doing my own fitness bootcamp site and want to fancy up my front page. My front page loads a picture and I want it to load like flash. What could I do? I have all the Adobe Software, just don't know how to use it.

View 3 Replies View Related

EXTEND ?

Sep 24, 2005

I switched to using this function to create element:

----------------------------------------------------
function elem(name, attrs, style, text) {
var e = document.createElement(name);
if (attrs) {
for (key in attrs) {
if (key == 'class') {
e.className = attrs[key];
} else if (key == 'id') {
e.id = attrs[key];
} else {
e.setAttribute(key, attrs[key]);
}
}
}
if (style) {
for (key in style) {
e.style[key] = style[key];
}
}
if (text) {
e.appendChild(document.createTextNode(text));
}
return e;
}
---------------------------------------------------------

so instead of the "old" way:
var oMyDiv = document.createElement("DIV");
oMyDiv.setAttribute("id","testid");
oMyDiv.className = "testclass";

I use that function :
var oMyDiv = elem('DIV', {'id':'testid', 'class':'testclass'});

The rendered source shows this:
<div extend=" function (object) {return Object.extend.apply(this, [this,
object]); } "
class="testclass" id="testid">

Question: I don't understand the "EXTEND" part......anyways does it look
legit/right?

View 2 Replies View Related

Flash Plugin Detect, Redirect To Non Flash Page?

Jun 24, 2010

I need a simple javascript that I can use in my HOME page.index.html has a flash animationnoflash.html is a page without flash animationKindle does not support Flash and therefore i want to redirect my index.html to noflash.html page.

View 2 Replies View Related

Detecting Flash And Changing The HTML If No Flash Found?

May 9, 2011

I work for a company called Best of the Best (www.botb.com). We use Flash countdown clocks to mark the end of our competitions. The issue we now have is that our clients are using mobile platforms more and more and as bloody Apple wont support flash (not fully anyway) we need the option to detect whether our users have flash and if not then replace the current <OBJECT>Blah Blah Parameters etc</OBJECT> with <DIVCLASS="NON_FLASH_CONTAINER">All other bits in middle</DIV>Is this at all possible?

View 1 Replies View Related

Image/flash Swap Hides All Other Flash Objs?

Oct 17, 2011

I'm trying to put some code together to create an image-swapping system, that when you click on the image it'll hide the image and replace it with a given iframe vimeo/youtube code...The swapping part works fine, however when the iframe loads up, it hides all other flash objects in the page, and I can't figure out why.Here's the JS

Code:
function swapvideo(w,h,url) {
document.getElementById('video_pholder').style.display='none';

[code]....

View 1 Replies View Related

How To Extend HTMLObject

Sep 4, 2007

I would like to extend any HTMLObject with additional functions, such as the following:

HTMLCollection.prototype.getElementByID = function(s_name)
{
alert(s_name);

return null;
}
Unfortunately this doesn't work. However, this one does:
Code:
Array.prototype.getElementsByName = function(s_name)
{
alert(s_name);

return null;
}

Is there a way to do what I'm looking for, perhaps using other techniques?

View 7 Replies View Related

Extend Behavior To Congruent Div

Jul 23, 2005

I've got a div, and it has an onMouseOver handler attached to it which makes a second div visible. The second div shares part of one side with the first, but not all.

The first div also has an onMouseOut handler which, you guessed it, makes the second div invisible.

However, if the user rolls out of the first div and into the second, I'd like to keep the second div visible. Any ideas how to accomplish this?

View 5 Replies View Related

Extend Page Instead Of Paginating?

Apr 10, 2011

basically the way I have it now, it's like most other sites, in terms of paginating. You click 2, 3, 4, for the next pages.

However, I don't really like that. I like the way how twitter has it, so you can click more, and the page then extends, showing more tweets.

How can I apply this to my site (which for the most part, is like a photo gallery, by the way)?

View 3 Replies View Related

Is It Not Well To Extend Object.prototype Derictly?

Aug 12, 2007

As I know,it's not well to extend Object.prototype derictly.
In the Prototype(JS Framewoke),there is no extend Object.prototype.
It only add some static method for Object class.I want to konw the reason.

View 2 Replies View Related

JQuery :: Trying To Extend Plugin Parameters

Oct 7, 2010

I am using the datepicker plug in, and am trying to extend it to not allow sundays to be selected. Now the problem I have is I am no javascript savy... so not sure the correct way to format this.

Here is my code for the plug in:
<script type="text/javascript">
$(function() {
// Tabs
$('#datepicker1').datepicker({
beforeShowDay: function(date) {
return [(date.getDay() > 1), ""];
} minDate: 0,
maxDate: "+12M +0D",
dateFormat: 'dd-mm-yy'
});});
</script>

The above is not working, It is not showing the calendar, so I know something is up somewhere here? The reason it has datepicker1 is on the page it is dynamic and can have multiple occurences of the calendar but with numbers after each.

View 1 Replies View Related

JQuery :: Add Attributes / Extend Element?

Aug 13, 2009

When you need for a certain element (say a text input box) to remember some data, what is the best way to do this? Can you extend the input box object with jquery? Right now i've been storing it in the rel tag $('#testInput').attr('rel','extrainfo') it just seems like there should be a better way to do this.

View 2 Replies View Related

JQuery :: Extend Or Merge - Username / Mod

Sep 14, 2011

Currently I'm trying to do the following:
{
config : {
user : "name",
mod : true
}}

That is JSON nr 1, now I got the following
{
config : {
mod : false
}}

What I need as a result is:
{
config : {
user : "name",
mod : false
}}

If I do a $.extend(json1, json2) then I will lose my user name.
If I do a $.merge(json1, json2) I will keep my username, but my mod will not be overwritten.

View 2 Replies View Related

Extend The Constructor For The Date Object?

Jul 9, 2010

How to extend the constructor for the date object of the javasccript so that whenever a call is made to the constructor, I want to perform a particular action? Basically how to define wrappers for default javascript methods or objects like Date() so that I can perform some action and then invoke the original method? So basically if I have something like var a = new Date(); I want it to (say) alert the value of the date everything Date() is called and then execute the default date constructor.

View 3 Replies View Related

JQuery :: How To Overload / Extend Core Method

Mar 30, 2010

How can I overload or extend (or intercept) jQuery's .html() method so that it works its default way unless the object has a certain class?

View 2 Replies View Related

JQuery :: Extend() When Source Object Contains Functions?

Oct 8, 2009

Run this code :

var empty = {};
var defaults = { validate: false, limit: 5, name: "foo", buttons :
{}};

[code]....

View 1 Replies View Related

Extend A Script With Extra Vars To Check?

Aug 14, 2009

This is a code for checking numbers A1 -> B1, when there is a match, the code will be green, otherwise black. how I can extend this script, that more then one array is checked?

<script type = "text/javascript">
var a1 = ["2","5", "11","16","23","45", "46"];
var b1 = ["2","3","8","12","23", "37", "41", "45", "48"]

[code]....

View 11 Replies View Related

JQuery :: Deep Copy $.extend() An Object Containing Selectors

Aug 17, 2010

What happens if you do the following? - That is deep copy a jQuery selector.

[Code]...

I'm concerned whether the myObj.selector object will deep copy the whole of jQuery as part of the process. My initial tests did not show any obvious speed hit, but it is rather a basic test right now.

View 4 Replies View Related

Jquery :: Extend The _alsoResize Function Of The Resizable Plugin?

Dec 4, 2009

How to extend the _alsoResize function of the resizable plugin?

View 1 Replies View Related

Flash/no Flash Detection Script?

Mar 11, 2010

I have created no flash pages and flash pages, but instead of creating a portal at the front of the site that leads you to a flash site and a no flash site id like to do it so the page detects flash or not, and redirects to whichever URL.

Is this possible, or do multiple browsers cause problems ?

View 2 Replies View Related

Links Extend Past Text And Toggle Description Without Photo?

Jan 27, 2011

I have a bit of javascript that is supposed to change picture and its accompanying text when you hover over a bit of link text in another area of the page. This is working, however, the text is toggling without the picture due to an invisible area next to each link. I am not sure if it's an issue with applying my javascript to another bit of code or what.

Here is the code that I have that flips the text:
<script type="text/javascript">
function tabOver(which)

[code]....

View 1 Replies View Related

Google Maps Adding A Second Google Map To A Page

Apr 7, 2011

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.

View 1 Replies View Related







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