I've recently incorporated Google's Custom Search Engine to a client's site. Everything seems to work just fine but when I search something and the results come up, the top navigational menu disappears. Any idea how to fix this? I sure hope I don't need to redo the menu. If I do, does anyone have an alternative? I would use CSS Suckerfis...
Out of the the three (ICallbackEventHandler, HttpHandler, or XMLHttpRequest Object) Which is the better method to use? Are they essentially the same? Are ICallbackEventHandler and HttpHandler just variations of using the XMLHttpRequestObject?
...
Hi I am currently trying to replace a query string value in a a link's src attribute.
it works fine in firefox but not in ie.
example:
<a id="link" href="#" src="http://somedomain.com?id=123&size=20">link</a>
then on my js it looks kinda like this:
var link = document.getElementById('link');
link.src.replace('size=20'...
I'm trying to download and parse the HTML of a web page. Recently, the source website moved from having all of their information on one page to hiding part of it behind javascript. There's a "Show All" check box that needs activated in order to view the whole page.
Here's the website: Source Website
Essentially I'm looking to automate ...
I'm relatively new to Javascript, and although I know how to use it, I don't really understand the mechanics behind it. Bear with me here.
I need to write a small app that creates a chart (in SVG) based on data I take in as an XML file. I found PlotKit, which does exactly what I need, except that it's written in Javascript, while my cu...
The Google Toolbar's autofill feature has been the bane of my web development existance for the past several years. I have always settled on trying to create a timer control to check for changes since the developers epically failed to fire change events on controls. This has gotten further and further complicated when controls are bur...
At work, I use Gmail's chat, since it's encrypted and logs chats without installing or saving anything to the hard drive. At home, I use Pidgin. When I log into GMail at home, I have to log out of chat, or messages will end up in the wrong place. When I log into GMail at work, I have to log back in to chat.
In other words, when I sta...
I want to develop a website web chat application like yahoo. Only difference is that I want to make it web based not desktop.
I will be implementing it in jsp/php with ajax.
I want to know whether jsp or php will be better for this.
What will be advantages or disadvantages of both.
Which one of the two would you prefer and why?
Will js...
Is there a simple rule-of-thumb to know approximately which browser versions and upward will be compatible with a given DOM level?
...
This is a javascript question. The fact that it mentions this website is irrelevant. This does not belong on meta.
I'm working on a Greasemonkey script to auto-load additional pages of answers onto the first page of answers here at Stackoverflow as you scroll. This is working well. I want to maintain the ability to up-vote/down-vote t...
How to highlight/select the contents of a DIV tag when the user clicks on the DIV...the idea is that all of the text is highlighted/selected so the user doesn't need to manually highlight the text with the mouse and potentially miss a bit of the text?
For example, say we've got a DIV as below:
<div id="selectable">http://example.com/pa...
The code is:
function roundAmount(theDecimal) {
var s = "" + Math.round(theDecimal * 100) / 100
var i = s.indexOf('.')
if (i < 0) {
return s + ".00"
}
var t = s.substring(0, i + 1) + s.substring(i + 1, i + 3)
if (i + 2 == s.length)
t += "0"
return t
}
The line with the erro...
Hey,
I am attempting to scroll the window to a location on my page based on a user's selection. I am getting some strange results. Can anyone suggest a good/better way to go about this?
Here is what I'm working with:
var rel = $(this).attr('rel');
var citation = rel.split("-")[0];
window.scrollTo(0, $('[name = ' + citation + ' ]')....
Isn't this a client side control?
What will happen if the user has disabled javascript?
...
On this map:
http://web.pacific.edu/documents/marketing/campus-map/version%202/stockton-campus-2.0.htm
I have an anchor at the top, and I want the page to jump to the anchor when a link is clicked.
I'm currently using
window.location = '#top';
It works as expected in FF, Opera, and Chrome, but not in IE 7.
I've tried all permuta...
Is there any way to determine in Javascript if an object was created using object-literal notation or using a constructor method?
It seems to me that you just access it's parent object, but if the object you are passing in doesn't have a reference to it's parent, I don't think you can tell this, can you?
...
I want to load a specific - additional - style sheet when scripting is disabled in the browser.
Is there a nice / clean way to test for that or should I just use a script tag and a document.write() to add the style sheet?
...
I'm trying to find all letters and dashes and dollar signs and remove them from a text box.
function numbersOnly()
{
if ($('.sumit').val().indexOf([A-Za-z-$])) {
$('.sumit').val().replace([A-Za-z-$], "");
}
}
That's what I've got and I'm pretty sure it's wrong. I'm not too great with regular expressions, but I'm tryin...
I'm getting a pure binary MP3 stream from an ajax call. No headers, nothing. Just straight MP3 bits. (Actually is that really even a stream at all?)
I'd like to be able to play it in a web page (and, if possible, offer it for downloading).
Is this possible? And if so what's the best way to do it?
If it is not possible, what are some...
Possible Duplicate:
GreaseMonkey Simple Script
So I have this page with the html code and I want greasemonkey to replace it by another HTML code that I have. How can it be done ?
exemple I have
<html>
<body>
<h1>Cajuda</h1>
<p>Oliveira da serra</p>
<p>Oliveira da serra</p>
<p>Oliveira da serra</p>
<p>Oliveira da serra</p>
<...