Hi there
I'm working on a easter egg, where you have to activate some links in the correct order, before the secret is revealed.
I can't get this script to work. I guess I've wrote something wrong, but can't see what it is...
<script>
$(document).ready(function() {
$('#show').hide();
var StepOfThree = 0;
a...
Hey all,
The problem was the text failed to scroll with images.
$(function() {
$('#slideshow').crossSlide({
sleep: 2,
fade: 1
}, [
{ src: '../images/img1.png' },
{ src: '../images/img2.png' },
{ src: '../images/img3.png' },
{ src: '../images/img4.png' }
...
Hi All,
Given:
<div>
<span><a href="#">abc</a></span>
<span><a href="#">def</a></span>
</div>
Is there a way to do a string comparison with toUpperCase() between a given string value and the link text (as shown above in the span collection) and if it doesn't match hide the span? Anyway to incorporate "contains" in the mix?
Thank...
function insert()
{
var linkElement = document.getElementById("BackButton");
var linkElementLnk = document.getElementById("BackButtonlnk");
var loc_array = document.location.href.split('/');
if (loc_array[loc_array.length-3] == "m")
{
linkElementLink.style.display = 'none';
}
else if (loc_array[loc_ar...
I have code like:
document.onmousedown = function(){
alert('test');
}
Now, except the element with ID "box", clicking should call this function, i.e. the equivalent of jQuery's .not() selector.
The jQuery code would be:
$(document).not('#box').mousedown(function(){
alert('test');
});
How can I achieve the same thing witho...
In Firefox the image specified by the poster attribute of the VIDEO tag remains on screen until the play button is pressed. However in the Webkit browsers (Safari and Chrome) the poster is dumped in favor of the first frame from the video as soon as the video metadata is fetched.
I want to avoid having to place the poster on top of the ...
Here is what I am doing currently.
Get data from database in DataTable (max records would be 100 but stored proc will search against more than 500,000 records. I already took care of search optimization in database. I am looking how I can improve the performance as much as I can in step# 2 and step# 3 below.)
Create a generic list (Li...
I'm trying to load the current page into an iframe in a subset of the page via javascript. If I set the src to another page it works fine, but setting the src to location.href (or the current url specifically) renders an empty iframe. Why is this occuring, and how can I correct this?
var my_Frame=document.createElement('iframe');
my_...
So, what happened to the DOM level 1?
For example there are DOM level 0 events like this
window.onload = func;
element.onclick = func;
and there's DOM level 2 (and now even level 3) events
element.addEventListener("click", func, false);
But no mention anywhere about DOM level 1 events? Was it like with Lesuire suit Larry 4 that g...
Does anyone know if the onbeforeunload event is supported on the iPad and/or if there's a different way to use it?
I've tried pretty much everything, and it seems like the onbeforeunload event is never triggered on the iPad (Safari browser).
Specifically, this is what I've tried:
window.onbeforeunload = function(event) { event.return...
HTML:
<input type="text" id="priceperperson1" name="priceperperson1" />
<input type="text" name="personsvalue1" class="countme" readonly="readonly" />
JS:
jQuery(document).ready(function($) {
$('div.pricerow input.countme').each(function(){
var id = this.name.substr(this.name.length-1);
alert($('input#priceperperson'+id));
this.valu...
I have a input box with the attribute
overflow:hidden;
I have also used javascript to stopped text being entered so that it cant overflow however I would like to be able to remove any overflow if the user manages to insert text into an already full textbox.
Is there anyway in javascript to detect when a texbox has hidden overflow?...
I'm trying to write a regular that will check for numbers, spaces, parentheses, + and -
this is what I have so far:
/\d|\s|\-|\)|\(|\+/g
but im getting this error: unmatched ) in regular expression
any suggestions will help.
Thanks
...
I need to get third monday in january. I am trying this is javascript
**@guys who commented: I was trying to implement this.
<script type="text/javascript">
$(document).ready(function() {
$('#holidayDate').datepicker();
var availableTags = ["New years Day", "Martin Luther King Day", "Groundhog Day", "Valentine's Day", "Wash...
As far as I can tell, the template feature in XUL doesn't allow you to load JSON data into your listbox/tree/etc. element. -- it only supports XML and RDF. The closest thing I found to an indication that it might someday support JSON, is the comments on this blog post from 2007, saying that there was a bug filed. But the bug in question ...
<head>
<meta name="description" content="Directory" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script>
<script type="text/javascript" src="https://sitename.com/javascripts/toggle.js" language="javascript"></script>
</head>
this is the error showing in...
I'm looking for a way to input a 'schedule' for a task from a user of a web app I'm working on, and have it be used on multiple pages in my UI.
I was looking for something that would allow me to configure whether was manually triggered, run monthly/weekly/daily/hourly, etc. and then based on the configured frequency show subfields, like...
I am trying to pull data from my populated javascript table. How do I pull the value from a javascript row? I am using
for (var i = 0; i < rowCount; i++) {
var row = table.rows[i];
//This is where I am having trouble
var chkboxIndicator = row.cells[0].childNodes[1];
...
Is there a jQuery function that returns the version of jQuery that is currently loaded?
...
I have the following (simplified) object literal. The icons method uses closure to hide the icons variable, which I'd like to have as an associative array for later lookups.
var MapListings = {
icons: function () {
var allIcons = [] ;
return {
add: function (iconType, iconImage) {
var ico...