I am copying a table cell with javascript.
It works fine, just that it doesn't copy the style.
I wanted to copy like below, but that didn't work.
newCell.style=oldCell.style;
So I figured that for my text-align, I have to copy it like this:
newCell.style.textAlign=oldCell.style.textAlign;
That worked, but whenever I add a new style it...
I have an ActiveX component (which I did not write and have no control over). It has several methods I want to use, which return arrays. Every time I attempt to do something of the sort:
var arrayValue = axObj.methodWhichReturnsArray();
the arrayValue object is undefined. The component provider tells me that I should not be having any...
Hi Guys,
1) I want to redesign a combo box using CSS and (minimal or none if necessary) javascript. I was wondering if there are good tutorials out there you've come across that can help me with it.
2) For Facebook users, you are aware that you can type 1 or more recipients on the address bar and it'll create a "button" around the user...
I'm trying to find a way to print every single Event that is being fired during the process of loading a Google Maps v3 (JavaScript API).
http://code.google.com/apis/maps/documentation/v3/reference.html
Question: Does anyone know of an existing demo that prints the Events, e.g. "bounds_changed" etc, when fired?
Or know how I would cod...
Hi All,
I am building a flash banner, which needs at one stage to expand beyond its 728x90 box. Something similar to the Corei7 ad currently on wired.com but not as drastic. I know ads like that are annoying, but getting evicted in winter is not an option. Viewing source on pages are difficult since they are almost always wrapped up in ...
It seems most everyone does asynchronous requests with XMLHttpRequest but obviously the fact that there is the ability to do synchronous requests indicates there might be a valid reason to do so. So what might that valid reason be?
...
I have images on a webpage that I want to have linked to another website, but in a new window of a certain size. In Dreamweaver, I used Window > Behaviors > onMouseClick, but for some reason, that isn't working. The image isn't recognized as a link.
Is there any other way I can have it open a link in a new window of a set size, and actu...
I need to arbitrarily rewrite Javscript code, client-side, before it's loaded by the browser. I would like to handle script tags as well as referenced .js files. Dynamically generated script tags are not a goal. My client is running a proprietary system, so this only needs to work with IE for now (IE6+). I've read up on MIME-filterin...
Hi All,
I am working on a small application and I basically need a list of 5 items say
Name
Address
City
Country
Zipcode
Whenever the user clicks on anyone of these he needs to be directed to another page and that particular item needs to be highlighted.
I want to do this dynamically. I have an idea that it can be done with javascr...
Hello,
I have a input field in which users specify file size in Mb, so for gb they have to calculate right now.
I want to change the input fields value automatically in calculated Mbs if users type gb after the number.
Example: 1024mb = 1gb
So if a user types 5gb in input field jquery takes the value onchange and updates the fiel...
I've been using JSON to handle AJAX functionality in my rails applications ever since I heard about it, because using RJS/rendering HTML "felt" wrong because it violated MVC. The first AJAX-heavy project I worked on ended up with 20-30 controller actions tied directly to specific UI-behaviors and my view code spread over controller acti...
I need to render a URL for a JavaScript search that I am doing. Unfortunately Url.Action renders not only the action but the current id. This occurs when presently on page utilizing the action with the id.
To illustrate Url.Action("List", "Org"); will first render Org/List from which I can append an org to be listed. However, after the ...
I have a table filled by a repeater, with many of the rows hidden initially. I have an anchor that fires a javascript function to change all the rows in the grid. The function is as follows:
function ExpandAll() {
var elem = document.getElementById("repeaterTable");
var rows = elem.rows;
for (var i = 1; i < ...
Hi There
I am hoping that someone can help me, I am using Javascript and asp
I have this string /folder1/folder2/pagename.asp
I need a regex to strip the /pagename.asp from the string
pagetype.replace(/\/.*?\.asp/ig, '');
The regex above is halfway there but the problem is that it strippes from the beginning / everything between th...
Hi,
I've have some javascript code that transforms XML with XSLT. I now want the user to be able to save that new XML (either by prompting them or throwing the new XML up as a file or something so that the user can then save it. Anybody know how to do that?
var xmldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.async = false;
xml...
Please take a look at the following:
jQuery.fn.jqPos = function(target, settings) {
settings = jQuery.extend({
offset: [ 0, 0 ]
}, settings);
return this.each(function() {
magic($(this), target, settings);
$(window).resize(function(){
magic($(this), target, settings);
});
});
...
I have a div that is being used as a dialog with jQuery's .dialog(). This div has a select box with options. The options the user has already selected are displayed on the main page. They can remove options from the main page and can open the dialog multiple times to add more options.
I populate the select box with all possible options ...
Hi everyone, I'm trying to make post voting something similar to stack overflow vote up and vote down, now I made it work with (but-it-works approach) and yet something doesn't feel right, hopefully someone will suggest some useful tweaks. Here is my jquery code :
var x = $("strong.votes_balance").text();
$("input.vote_down").click(...
With the example below, I'd like to select the contents of the < h3 > tags for each block, and move them inside the 'title' divs (without the h3 tags). Is this possible?
<div id="block1">
<div class="title">
</div>
<div class="content">
<h3>Title 1</h3>
</div>
</div>
<div id="block2">
<div class="title">
</div>
<div c...
Wondering what to do about this. Googling but can't seem to find anything. I am using the Cycle Plugin for JQuery and works great in all browsers but IE of course. Same problem in IE 6, 7, and 8.
Expected identifier, string or number referring to line 13 of my js file. Anyone know what to do here?
js file:
$(document).ready(function(...