I have a raphael.js shape which I am plotting circle's on top of. I only want a circle to appear if the circle does not go off the boundary of the shape it is being plotted on to.
To make this more clear, here is an example of what I do not want to happen:
I want the circles outside of the grey area not to appear. How would I detect ...
I have an iframe which content is a php-file, and that php-file displays some mysql records.
The more records, the larger the iframe height should get, otherwise it wont show all of the information in the iframe.
Here is a code I have for dynamically setting the iframe height, from the iframes content (the php file):
var x = document....
I am creating quite a bit of XML with JavaScript which is then processed by variuos components. I would like to send this XML to some file and prompt the user to save it on their disk (all this happens in the browser at the client, no server interaction whatsoever). Is this at all possible? Google is not a lot of help here :(
...
I'd like to set vendor styles with Javascript, something like this:
elem.style.mozBorderRadius = '5px';
Is this possible? If so, how?
...
i need to slide a div down and then up on an event, how can i do this in java script
...
I need to copy a form information with all types of elements and send it with AJAX.
Tried these:
1. cloneNode on the form.
- Doesn't work with IE, only copies text stuff properly.
cloneNode on each element.
Doesn't work with IE, only copies text stuff properly.
Making new textareas for each element, and copying the value in.
Does...
I want to change hidden input value on div click, so i do following:
$('#gallery').click(function(){
if ($('input[name=isgallery]').attr('value') == '0') {
$('input[name=isgallery]').attr('value', '1')
}
else {
$('input[name=isgallery]').attr('value', '0')
}
$('#filterform...
Hi,
How to alert variable name, not a value of variable?
var color = 'red';
alert(color); // Will alert 'red'
alert(/* magic */); // Will alert 'color'
...
I'm playing around with html5 and some javascript to make a minor sketchpad. Whenever I click down on the canvas in chrome, the cursor becomes a text cursor. I have tried putting cursor: hand in the css, but that doesn't seem to work. This has got to be an easy thing, but I look it up and can't find it anywhere
...
Hello,
I would like to pass to a jQuery function a regular function, instead of the usual anonymous function, but I'm not sure how such a thing could be done.
Instead of this:
function setVersion(feature) {
$.post("some.php", { abc:"abc" },
function(data){
// do something here
}, "json");
}
I would like to...
I am looking for an example of a dojo enhanced grid that contains a context menu on either a cell or row menu where the cell or row data is accessed. I have managed to create an enhanced grid with a row context menu. I can create a function that captures the event of clicking on the row menu item. However, I am not sure how to access ...
Is it possible to have event delegation using the HTML5 data attributes in MooTools?
The HTML structure I have is:
<div id="parent">
<div>not selectable</div>
<div data-selectable="true">selectable</div>
<div>not selectable either.</div>
<div data-selectable="true">also selectable</div>
</div>...
I have 3 images on top of each other. The first one is a normal .jpg image, the second a greyscale version and the 3rd is some kind of effect i add with a transparent .png
Now what i want is that, if i move the mouse over those images, the greyscale image is hidden or replaced by another image and afterwards visible again.
The problem ...
Hello!
Do you know any method to optimize this HTML Code to IE6 or 7 (or 8) without adding any HTML elements, or the IE is skipping all the HTML5 elements?
If i just want to format elements with CSS, - i dont want to use other features - is the document.createElement("nav") DOM element create enough to scam IE and make a plain HTML doc...
I'm creating a web application on Google AppEngine where I want the user to be notified a quickly as possible after certain events occour. The problem is similar to say a chat server in that I need something happening on one connection (someone is writing a message in a chat room) to propagate to a number of other connections (other peop...
Is there any possibility to make a link or a button to close the current page? Like I have this:
<div id="arrows">
<a href="It works"><div id="arrow_left"></div></a>
<a href="It works too"><div id="arrow_right"></div></a>
<a href="??? =("><div id="arrow_close"></div></a>
</div>
And this if it's necessary th...
Hi,
I have a small front end to a webshop. All customers that go through my website and buy an item from the webshop I get back 5% of the amount. I need to find a way af tracking the customers i forward from my webshop to the other webshop. And then get the webshop to reply to me when the purchase has been made. In my webshop i have made...
I use Tinymce with BBcodes plugin so the tags used in the editor are [B] [U] [I] [quote] [color].
If you are familiar with TinyMce there is a great option to filter all unwanted tags when pasting to the editor.
Unfortunately i think this is not working for BBcodes mode, what i want is to remove any <TAGS> Or Other Unwanted BBcodes such...
instead of using getParameterByName('Field', PostData) (PostData == $('form').serialize();)
I would like to write PostData.Field, how can i do that with javascript?
...
I was under the impression that the content_scripts were executed right on the page, but it now seems as though there's some sandboxing going on.
I'm working on an extension to log all XHR traffic of a site (for debugging and other development purposes), and in the console, the following sniff code works:
var o = window.XMLHttpRequest...