I am trying to call a custom method of an embedded flash like so:
var flash =
navigation_get_flash_movie_object('main');
if (flash) {
flash.continentOut(id); }
Which works great in Chrome ans Safari, but fails utterly in IE7 & IE8. The browsers throws an error that the object doesn't have such a metho...
Hello,
I have a question (surprisingly ;) ):
How can I return false to a link without breaking the function?
I did this previously without jQuery, back then I set an animation to execute after an interval and returned false. This time I need the function to continue running.
function initNavLinks(){
navLinks = $("div#header a").cli...
helloworld.js
function helloworld() {
alert('hello world');
}
static html:
<!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>
<title></title>
<script src="helloworld.js" type="text/javascript"></...
I have some draggable elements in the DOM, which if dropped become draggable disabled. Now there can be only one element in the droppable at a time. So if the user drags another draggable and drops it, the previous dropped element must get removed from the droppable and the currently dragged element must replace it in the droppable.
How ...
Hello.
I want to use JavaScript to make a simple http get.
I used jQuery to perform my request. My code runs on IE8.0 but not in Chrome (ver 6.0).
My page has the following code: (to simplify, i made a simple request to a html page, but my needs is other)
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<script ty...
I have a tag element in .aspx page:
<a id="loginLink" runat="server" class="loginLink" href="#" onclick="$('registerform').hide(); $('signin').show(); this.style.display='none'; $('back').show(); $('reg-signin-email').focus(); return false">Already signed up? Log in here</a>
and trying to get loginLink.ClientID , but it spits back ...
I'm using pyfacebook on my app but I'm having problems displaying xfbml
For example I have to use iframes to display like buttons or like boxes.
What's strange:
1) On the login page the appears correctly, I just have problems on other pages (once logged in)
2) The FB.init part I use is
<script src="http://static.ak.connect.facebook.c...
Hi there, I'm looking to start and stop a loop with a set delay with a jQuery hover event. I've been trying to do it with "mouseover" and "mouseout" with no luck.
Example (odd psudocode):
Mouseover
Loop
Change text colour
Wait 100ms
Mouseout
Stop loop
I'm sure this is super easy, I just don't quite know how to...
Possible Duplicate:
Running V8 Javascript Engine Standalone
I want to try a standalone JavaScript interpreter, rather than executing in Firefox all the time. I did find spidermonkey by googling, which could be installed on ubuntu, but is there a way to use Google's v8 as a standalone interpreter?
...
Hello
A web site was developed and deployed to client. In some cases, I need to set the flag HttpCookie.HttpOnly = true. Okay - I have done it. Next question:
Is Cookie available after setting flag in JavaScript?
or maybe some restriction when I am using JavaScript?
or do I need to make some changes in existing JavaScript?
...
I really like Google Map Chart, but the maximum size that can be generated is only 420x220 which is small.
Is there any similar service or product? Maybe using Javascript?
[edit]
Don't you think this is small map ?
...
There is a blog post that details how to do this with PHP, but I'm not clear on how to translate this to Ruby on Rails. For the getUrl, saveUrl, and deleteUrl what do I put so that I can hook it up to my AnnotationsController and create, read, and delete Annotation models?
There is also server side code in PHP.
jquery-image-annotate i...
I'm using this PHP/CodeIgniter library for jQuery Highcharts: http://www.crustiz.com/php-jquery/highcharts-library-for-codeigniter/
The way that library does things is that it builds a PHP array of options, then converts it to json using json_encode (see line 273 of that library) which is then used by the jQuery Highcharts plugin. This ...
Hello,
I have an image with set src attribute.
I would like to replace image, but connection with the server is slow and time that it takes to load a new image is not negligible.
Is there possibility to create internal Image object, set kind of "onLoadListener" on it, load an image and then set it to original image src attribute?
...
Hi Everyone,
I have this little function to open/close a popup player:
function popuponclick(popup)
{
my_window = window.open("folder/player-itself.htm", popup, "width=350,height=150");
}
function closepopup()
{
my_window.close();
}
I call the functions from HTML anchors that are on each page of the site (idea is to have the p...
I tested the following code in IE6, IE7 and IE8 with the same result:
<a name="cd"/>a</a>
<script>
try {
cd = new Date;
} catch(e) {
alert(e);
}
</script>
In all cases an error is thrown. However using
var cd = new Date;
seems to solve the problem.
D...
I am trying to change the content inside a DIV from separate links when mouseover. The content is different with each link. I wanted the default content in the DIV to appear with mouseleave. I'm having trouble to figure this out with jquery. Can anyone point me in the right direction or have an example to help.
I figured out how to...
I do a lot of ajax calls on my site and was using jQuery 1.4.2 until I noticed that it was leaking. It was leaking with IE, Firefox, and Chrome. After some investigation I found the IE fix for it. I tried it but it didn't fix it for any of the three browsers. I then found a posting on here where the person compared Yahoo's Javascript...
Hi all,
Is it possible to calculate distance by land transport between two UK postcodes using Google Maps API V3? Has anyone accomplished this?
Thank You
...
Hi,
I've got an issue similar to this one:
http://stackoverflow.com/questions/2986039/ipad-iphone-browser-crashing-when-loading-images-in-javascript
... but I'd like to clarify that my issue is caused by the same memory issue, and if so, what I can do about it.
I understand the proposed workaround of loading "tiny.gif" images for img ...