I have been having trouble getting my banner image on my blog to be clickable. If my site has an image named "banner.jpg", is it possible to make a generic javascript function that makes all images with that particular name on the page be clickable with a hard coded link?
I would like to be able to drop in a short code snippet into th...
Hi
Quick questions that probably a piece of cake for someone in the know to asnwer.
I have a simple asp.net website that uses JSON for a bunch of stuff (and JSON.stringify)
All good in firefox etc, yet, in IE6 I run into an error with JSON being undefined.
Is there a way I can include a JSON implementation without breaking what I have...
I had an idea for a WebOS, but it requires detecting drawn shapes. Ie: I want a user to be able to draw an image, then draw a big box around the whole image. Then the user can drag that box by the grabbing the border, and moving the whole image around. This requires that I be able to detect when such a box has been drawn, and turn it int...
Hi all:
I'm using JsTestDriver and a bit of Jack (only when needed). Does anyone know how to verify that a javascript function has been called during unit testing?
E.g.
function MainFunction()
{
var someElement = ''; // or = some other type
anotherFunction(someElement);
}
And in the test code:
Test.prototype.test_mainFunct...
Hi,
I am using the bassistance jquery plugin validation.
I have a drop down list with 2 values.
If the first value is selected by the user a valid datefield needs to be populated and if the second option is selected then a textbox needs to be filled with some text.
If nothing is selected then it need to return a validation on this as...
On my web page, I a table inside a DIV that is scrollable.
When I scroll down, I want to highlight the center most viewable row in my table.
How would I do that?
I found the following script that is close to what I desire --> www.rgagnon.com/jsdetails/js-0093.html
But this works only on the MouseOver event. I want this to work on not...
Apparently, this is harder to find than I thought it would be. And it even is so simple...
Is there a function equivalent to PHP's htmlspecialchars built into Javascript? I know it's fairly easy to implement that yourself, but using a built-in function, if available, is just nicer.
For those unfamiliar with PHP, htmlspecialchars transl...
I have an advent/christmas calendar. Everyday is another picture with one more door opened. To make these regions clickable I used CSS and IDs like this:
CSS:
ul#doorregions {
list-style: none;
background: url(<?php echo($pictureoftheday); ?>) no-repeat 0 0;
position: relative;
width: 950px;
height: 575px;
margin: 0;
pa...
i am confused by the concept of on-demand loading
I saw this blog post and was wondering if I could do the same with php using the ff. approach:
check current url
serve css or js based on current url
which may be done like this in Kohana
if (uri::segment(1) == 'search') // check current url
echo html::stylesheet('search.css'); // s...
Hello all,
I have a javascript function that, in most cases, needs to do something with a jQuery object that I pass it. There is a single exception where the function will not need a jQuery object, but because I've written it to accept a string (the command) and a jQuery object, I need something to pass it when I call it. My function is...
Is there a ready-made way (maybe in one of the frameworks) to detect whether a form has changed compared to its original values?
The onchange event won't do, because it fires regardless of actual change (I could for example tick a checkbox on, and off again, with two onchange events).
The last resort would be to store each element's o...
I want to give the user the ability to select multiple elements (which happen to be about a paragraph each). The problem is that a standard select multiple in html is (as far as I can tell) a single line per choice. This is a problem as the layout gets very screwy if I let the line go long. Also, if I just truncate the line, the main ...
Is there a way to disable IE's UI (e.g. the File Menu) when showing a custom dialog/window? What I'm after is similar to what happens when you alert() something: the browser UI cannot be interacted with behind the alert box.
...
I'm kind of falling in love with Node.js not because you write app code in javascript but because of its performance.
I really don't care a lot about how beautiful a server side language might be but how much requests per second it can handle.
So anyway I'm looking forward to experiment building an entire webapp using Node.js (and goi...
Possible Duplicate:
Disable IE menu while displaying a custom dialog
alert Function is executed, you can not click on the menu of Internet Explorer.
I would like to implement these features.
please , give me hint.
and sorry, i can't speak english well..
...
how to check time difference from two textboxs in javascript.
...
I have many many lines of HTML content that I need to insert into a document using JavaScript. What the best way to do this? I don't want to have it broken out line by line in the source code, and not all stuffed together in a string.
...
5 star rating plugin? AJAX.
...
I have a dilemma, I have a classifieds website, and whenever an ad is clicked a php page shows up displaying all details.
Here I want the pictures to display also, but the thing is, I want the user to click on whatever thumbnail and the thumbnail will get resized to its real size.
The coding for this is no prob.
The problem is, how sh...
Why place all of your Javascript code in one file? Is it possible and is it make sense to split into smaller logical file units?
...