I don't seem to be able to overwrite class methods correctly, using the following code ...
function core() {
console.log( "CORE CONSTRUCTOR CALLED" );
}
core.prototype.output = function() {
return 'CORE';
}
function sub1() {
console.log( "SUB 1 CONSTRUCTOR CALLED" );
this.core();
}
sub1.prototype = core.prototype;
sub...
I have a cookie "A" set at a domain at bc.test.com(all urls are changed to protect company info).
I also have a cookie "B" set at a domain of .test.com.
I also have a Javascript file hosted at bc.test.com/_include.
Now, in my host file, I have setting to point bc.test.com to a development server.
But now, when I try reading cookie "A...
I have a a png image of a home. whenever users place mouse on that image i have to display text "home" in some popup box and when mouseout the popup should be gone. Could anyone help me how to implement in javascript or there any functions in jquery for the required effect?
...
I have a table inside of a div (it's overflow, so the browser renders a scrollbar). Using JavaScript, how do I move the scrollbar handle along the track to a position that corresponds to the location of a row in the table?
+--------------------------------------+
|100 | |
|101 ...
I have several vertically stacks divs and I want to have a div appear when I click a button within each of these divs. The div that I want to appear will be the exact same for each appearance with the exception of an id associating it with the outer div. How do I do this in Javascript?
I assume I should use the createElement() within J...
I have a set of LI elements with overflow propety set to hidden by the
jCarouselLite plugin. What I would like to do
is to scroll the jCarouselLite'd element in order to scroll to the
LI element I want, since I have it configured to
show only 3 elements.
Looking at the html code generated by the plugin, I can see:
<ul ..>
<li ..s...
I want to create an in-window pop up that darkens the entire window with a semi-transparent black overlay and there is a popup in the middle that warns the user about something. I have seen something like this on att web site
http://www.att.com/wireless/iphone/?wtSlotClick=1-003G93!CIWM01-3-1&rel=nofollow
and if you click on the o...
Hi,
I'm in the process of generating API docs for an in-house web app that's undergoing some expansion. It's a DHTML project, with a mix of both some OO and mostly procedural PHP, and purely procedural Javascript. At the moment, it's pretty much all documented for the appropriate doc generators (phpdocumentor and jsdoc), but the two wer...
Hi Guys,
My page has a submit button on it (server-side button).
Here's my code for the click event:
protected void SubmitButton_Click(object sender, EventArgs e)
{
db.SaveSomething();
Page.ClientScript.RegisterStartupScript("someScriptWhichReliesOnServerData");
Response.Redirect("SomeOtherPage.aspx");
}
Now, the problem...
I have a list and each item has a button. When I click the button I want a div to appear within the list item. The contents of this appearing div will be the same for each list item. How do I dynamically generate these divs using Javascript?
I've investigated the createElement() function but have yet to grasp its use or find a good e...
Hi guys,
Wasn't really sure how to ask the question, but my situation is this...
I have a table with one row, which contains a few input boxes. When a user presses the add new, I have managed to add another row to the table. First I make a new variable called oldtable, and then split it at each <tr>.. and save that to the array rows. I...
I've got a single, main nav bar in it's own file, nav_bar.shtml, which every other page includes. This menu bar is a jQuery menu bar (ApyCom is the name of the company that sells these nav bars). How an item on the nav bar determines if it's active or not (and thus highlighting it so the user knows) is through the class="current" on th...
I'd like to execute a function from the top of the stack. That is, any variables defined with "var" should be defined in the global sense. Is this possible? fn.call(window) doesn't work.
<script>
var foo = "I am top level foo.";
var fn = function(){
var foo = "Setting foo from in a function";
}
fn.call(window); //doesn...
When I bullet something in word, copy it, then paste it into TinyMCE the bold+underline+sizing works but bullet's don't show up. I have the latest version from their website - on which the copy+pasting of bullets work.
Anyone heard of this?
...
Hi
I need to be able to work out what page is hosting my silverlight app. I can get the url of the iframe using System.Windows.Browser.HtmlPage.Document.DocumentUri.AbsolutePath, but I want to get the URL of the web page hosting the iframe. System.Windows.Browser.HtmlPage.Document.DocumentElement.Parent is null.
Thanks!
...
My question is, how can i use .removechild() in javascript without having the elements ID?
The reason I don''t have its ID, is because the td was only added using append child, which as far as i know, does not allow adding an ID as well, but i may be wrong?
I used :
var myRow = document.createElement("tr");
to make the child in my f...
I'm trying to assign a variable from a html text input value and then have that variable used in a function that uses the jquery ":contains" selector to hide divs that don't match the variable...here is the code I have...
<head>
<script language="JavaScript" type="Text/JavaScript" src="jquery.js"></script>
<script language="JavaScript" ...
I want to use the Google Line chart in a way that there should be multiple lines being plotted, having multiple Data Points on each line. And when i click any data point then a small popup opens 0n that point which shows the further details regarding that point..
...
I am currently using jquery corner for making a div round cornered. But the problem I am facing is that when the background of that rounded div is a gradient, it is showing some odd colors in the corners.
I want to know any other better way for including round corners for div
EDIT 1:
$(".nav").corner("20");
This code im using for th...
Hi there
I tried to use windows.location.hash="test.asp#page#section13" and in all browsers it works ok but in IE6 the link in URI is replaced by test.asp#pagesection13.
So it seems IE6 doesn't support multiple anchors. Any way around it (except rewriting everything)?
Yours
Jerry
...