Hey Guys,
I've been trying to get this working, and not having 100% success, basically trying to load an image, if the source doesn't exist try a second image until it reaches a default one.
I have been trying the solution based on this question, however I am not using jQuery, so the accepted solution is no use to me, so trying the 2nd...
I’ve got the following Google Map: http://fooo.org/GMaps/
When clicking on the icon, a custom overlay pops up. I want the users to be able to open the browser’s context menu on that overlay to copy the text or to open the links in a new tab.
The default behavior doesn’t allow this, because the underlaying map is eating up the respectiv...
How do I create the following markup using JavaScript's document.createElement function?
<input type="hidden" value="" id="" />
...
Hi all,
I am trying to create a function on javascript to bring the date from my database in format (yyyy-mm-dd) and display it on the page as (dd/mm/yy).
I would appreciate any help.
Thanks.
PD: Let me know if you need more clarification.
...
I have This line
<EMBED NAME=""mySound"" SRC=""DocID2858_voice-message.wav"" LOOP=FALSE AUTOSTART=True HIDDEN=TRUE MASTERSOUND>
It works for ie but doesn't work for rest of browser.
is there any way to make that.
...
Hi all,
Id like to create a small cross-mobile javascript application, which consists of a form and a grid as result. I also want to display some images, with something similar to lightbox. I coded an home maded prototype but id like to add 'touch' effects and support multiple screens easyly.
I looked at JqTouch but its very slow on my...
Can plain Javascript objects have event attached to them? Say something like this:
obj = new Object();
obj.addEventListener('doSomething', foo, true);
I know i can do this with jQuery, but is it possible without any library?
...
Googled about it - found nothing.
I'm talking about CSS :hover, not jQuery .hover().
So, the code:
$('#something a:hover').css({'something': 'thomesing'});
works fine with 1.3, but not with 1.4. How to fix it?
...
Here's our goal: in a website, show a nice menu "à la" iPhone in Flash and when we click on a menu, show a part of the site "under" the Flash menu.
Two options:
create a page with the
Flash menu that has an iFrame and
with Flash, open the menu in that
iFrame;
create one page with a div
on its bottom, with Flash, launch a
JavaScript (...
Hi,
i want to make a real-time feed reader, and i want a solution to make the new items coming without refreshing the page and with a scrolling effect like friendfeed.
you can see what i'm talking about here: http://www.vimeo.com/4029954
I just want a function which i can call with new DIV content and then it create it above the previ...
I'm trying to do something fancy with a blogger blog, and when I'm looking at a particular blog, I'd like to be able to know which one it is.
So, although there might be a better way of doing it, I've got this bit of code set up:
//Get title of current blog
currentTitle = document.getElementById("post-title").innerText;
currentTitle = ...
I'm using a lightbox variant in my website to open a 'page in the page'. It is pretty critical it's tracked properly. I've seen the javascript code here to make a virtual pageview in Analytics:
<a onclick="pageTracker._trackPageview('/folder/file');">
The sales department told me there is another piece of code to track conversions in A...
Hi. I am working now on little project.
In one view i am returning data for google maps API (longitudes and latitudes).
Under the map I have to implement few buttons to add point of interests on the map in this location which is actually showed.
There could be some buttons/types of POI like schools, banks, atms etc.
So, let's go back...
Hi
Is it possible to get a notification (like callback) when a CSS transition has been completed?
-pom-
...
i see a few code project solutions:
but wanted to see if there was a regular implementation in javascript?
...
Hi,
I would like to replace checkboxes with images however all I have come across are jQuery plugins. Is such a feature achievable in a few lines rather than a plugin?
Thanks.
...
This behavior seems to only occur in the latest version of Safari (4.0.4). Using the example below, the page will create an alert box after 60 minutes. If you open the following page, click the link to Google, and hit your browser's back button, nothing will happen. That works as expected.
However, if I open the following page in S...
I have a radio button, containing an inline onclick event:
<input type="radio" class="quantitycheckbox" onclick="alterQuantity(this.form)">
I'm trying to unobtrusively add some more functionality on click, and have this code:
function updateCustomFields( box ) {
// save current onclick event before assigning new one
var currE...
I have a blue-ish colour that I want to use in many places in my app and at the moment I am copying and pasting it between styles in my CSS. Is there a way of defining a constant like the standard colours, 'blue', 'red' etc. that I could share between my CSS, my HTML and my JS?
I'd like to be able to say (somewhere, preferably CSS)
my...
So I am trying to make a custom in place editor in mootools and I want to use a form. Whenever I do try to create a form it just creates <form class="inplaceeditor-form" method="post" action="#"/> How can I make it a form where I can inject other elements?
...