Hi!
I have an <iframe> control on my page and I want to change it's target url (the url of the page displayed in the iframe) by a click on a hyperlink. The problem is that the iframe doesn't update on the click. I'm pretty sure I'm missing something, but I don't know what:
<script type="text/javascript">
var source = document.getElemen...
I'm trying to save an a string to a file in with a javascript in the Bioclipse workbench, by using
ui.save( "filename", "my string" );
...but get an error that ui.save takes only an inputstream as the second parameter.
How can I convert a string to an inputstream in the Bioclipse javascript context?
(Btw, I think Bioclipse uses the Rh...
I have this situation where we have media files stored on a global CDN. Our web app is hosted on it's own server and then when the media assets are needed they are called from the CDN url. Recently we had a page where the user can download file attachments, however some of the file types were opening in the browser instead of downloading...
Hi I have a js script below and I am hoping that the opacity will be very minimal on my page . But it has absolutely no effect what ever the value . Can anyone suggest what I am doing wrong please ?. thanks
dx = document.getElementById('box').style
dx.backgroundColor= '#fff'
dx.visibility = "visible";
dx.width = 800 + "px" ;
dx....
Hi guys,
I want Rails to inject different js files in development and production modes.
Example:
Development:
<script src="/javascripts/jquery.js" type="text/javascript"></script>
<script src="/javascripts/myscripts.js" type="text/javascript"></script>
Production:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jque...
Hi, I got a problem with a script, when I try to load the page in IE7
Link to the website
Expected identifier, string or number zoommap.js, line 126 character 6
This is what is in that line:
}).appendTo(map).click(function(){
Object doesn't support this property or method setupMap.js, line 6 character 1
This is wh...
Hi Guys,
im fairly new to the Google Maps V3 API and i'm running into an issue where all infowindows have the same data, the code im using iterates through an array of marker details and outputs the marker plus an infowindow for each marker. This is my code:
<script type="text/javascript">
(function () {
google.maps.Map.prototype....
Hi,
I have an HTML string that contains text and images, e.g.
<p>...</p>
<img src="..." />
<p>...</p>
I need to get the src attribute of the first image. The image may or may not come after a <p> and there could be more than one image, or no image at all.
Initially, I tried appending the string to the DOM and filtering. But, if I do...
=========================================================================
EDIT:
I'm using node.js, so I don't have access to the DOM, and parsing with an HTML parser is not an option (it's not efficient enough to justify parsing through such a small amount of text)
=======================================================================...
Hi,
I want to capture Tab and Shift-Tab in the onblur event of a dropdownlist in javascript. Is it possible?
Help Please
thanks,
Kishore
...
Are there any differences in performance or load/caching behavior when displaying images in img tags vs divs with image backgrounds?
My example:
I have a site with many overlapping images, some of which I will need to load dynamically with javascript. One issue is that I need to anchor the images to the right of the element, so that...
I can decode the points, I just need to figure out how to loop through the array of points and produce
[
new google.maps.LatLng(39.112456,-84.574779),
new google.maps.LatLng(39.314153,-84.261379),
new google.maps.LatLng(39.197099,-84.667579),
new google.maps.LatLng(39.16836,-84.479381)
];
Code available at http://pastebin.com/Zf6hi4A...
javascript time out function is
settimeout(fun, 3600);
but what if I dont want to run anyother function. can i do settimeout(3600); ?
...
Hi all,
I'm using the FireFox API to write to a binary file from my JavaScript based FireFox extension.
So far I am fully able to write the information to the file in BIFF5 format, and re-size the columns successfully.
The problem I'm running into is no matter what I try, I can not seem to get the XF index (ixfe) in the LABEL record t...
I have a use case where the the number of radio buttons can be 1 or more, what is the best practice to check
i.e
var radioElements = document.forms["formname"].elements["abc"];
for(var i=0; i < radioElements.length; i++) {
if(radioElements[i].checked) {
alert("blah..");
break;
}
}
This works when the DOM has...
I am working on a browser plugin that takes the URL of the current page or any selected link as a parameter and send it to our server.
When characters of the basic latin alphabet are present in the url (like http://en.wikipedia.org/wiki/Vehicle), the plugin works fine. However, when the URL contains characters from another alphabet such ...
Hi currently I'm trying to get following snippet of code to work:
function Entry() {
var pauses = new Array();
}
Entry.prototype = {
AddElement: function(aParameter) {
this.pauses.push(aParameter);
}
}
Unfortunately this code fails with following error in Safari if I try to call AddElement("Test");
TypeError: Result ...
I'm using javascript to dynamically load any of a series of images into a single img tag, based on user interaction:
function reassignImage(newSource)
{
img.src = newSource;
}
This works great, except that I when I inspect it with Chrome developer tools,
I see that even if I reload an image I've already loaded, it makes another htt...
Hello stackers,
I would like to create a dojo grid with expandable/collapsible rows. Each page will have 25 collapsed rows, but each collapsed row can contain any number of items (for example, 100 items). TreeGrid looks like a good option, but the default layout of TreeGrid is not what I need - the current 1.5 implementations show a '...
In one webpage, I have a big image to load and other contents. Sometimes the image takes longer time to load and I would like to track that. Is there any means by which I can get notified using Javascript when browser completely renders the image?
EDIT
I use the following code to load the image.
<table border="0" style="background-im...