Hi all,
Im struggling to find any information on getting meta values.
I have a locale set in the meta on a few sites and would like to use a centralised js file so i need to grab the value from say for example
<meta name="locale" id="locale" content="en_ZA" />
hmmmm....
Many thanks
...
Is there a way to determine the number of available CPU cores in JavaScript, so that you could adjust the number of web workers depending on that?
...
Hi,
I'm using the jQuery GalleryView plugin, and I want to remove the arrow that slides along the thumbnails when the transitions take place.
I can't figure out how to remove this (tried using the 'nav_theme' configuration option but no luck).
Does anybody know how this is done?
...
Hi
I am busy with creating a Google map v3 site. If you have a look on google maps site you see they physically zoom(CSS like deepzoom) the tile just before they load the new tiles.
I want to reproduce this on my side. The problem is i cant find anything in API reference that i can do this with. I thought of creating a imagemaptype an...
I have an embed code that users will use to display content hosted on my website on their own site (e.g. <iframe src="mysite/feed"></iframe>).
I want to use clippy to allow them to copy the embed code to their clipboard but in firefox this results in the iframe actually getting embedded in the page beside the clippy icon.
My site is w...
Hi,
For the below xml i want to render the unescaped text parts on browser from xslt e.g.:
<one>
<text>
</one>
I want the markup rendered on browser to be:
<text>
But when I use the apply templates which looks like below
<xsl:template match="text()" mode="literalHTML">
<xsl:copy-of select=".">
</xsl:copy-of>
</...
I have the code below:
$(document).ready(function() {
var bgimages=new Array()
bgImages[0]="bg.jpg"
bgImages[1]="bg2.jpg"
//sloppy preload images
var pathToImg=new Array()
for (i=0;i<bgImages.length;i++)
{
pathToImg[i]=new Image()
pathToImg[i].src=bgImages[i]
}
var i = 0;
var rotateBg = setInterval(
fu...
I have my jquery:
$('.category-block').mouseover(
function (e) {
$(this).find('.b-expand').show();
});
$('.category-block').mouseout(
function (e) {
$(this).find('.b-expand').hide();
});
And sample html:
<div class="category-block" id="category-1">
<a href="#">Mod</a>...
Hi, this is driving me nutters.
jQuery 1.4.2, windows XP sp3
Here is my test.
Load firefox 3.5+
http://plungjan.name/test/testcors.html
works
Save the file to harddisk and run from there
From my office the external works and the internal does not
What is also interesting is that I cannot run both in one go.
Background:
I do a GE...
Currently I add some functionality to webpages via UserJS in Opera. I was wondering if the webpage designer could see what javascript actions I'm doing in my UserJS on his webpage (e.g. via javascript)?
Is this possible? I think it doesn't because the UserJS gets executed first and isn't really 'added' to the page. I'd like to be sure, ...
somewhat simple problem(to explain) this time:
i have an array of markers that i equip with eventlisteners thusly:
for (i in markersArray) {
google.maps.event.addListener(markersArray[i], 'click', function() {
//stuff it does
google.maps.event.removeListener(?????) //remove self... but HOW?!
});}
as i mention in t...
I'm studying Web Applications at university, and at the moment we have an assignment: build a 'blog' using only CSS, Javascript and XML. We have to store the blog posts in a .xml file, which is what's got me stuck at the moment.
So, essentially I need to be able to write a Javascript function which writes to a server-side file. There ar...
I need to show user's list which should look like in the example below:
Helen Burns Edward
Fairfax Rochester Bertha
Antoinetta Mason Adèle
Varens
Is there a way to achieve this without using javascript? Each row should be one span, i.e. <span>Helen</span><span>Burns</span> is not acceptable.
...
I'm working on some stuff for an in-house CRM. The company's current frontend allows for lots of duplicates. I'm trying to stop end-users from putting in the same person because they searched for 'Bill Johnson' and not 'William Johnson.' So the user will put in some information about their new customer and we'll find the similar names (i...
Hi,
Is it possible to create a marker in SVG using Javascript and then apply it to a newly created line? If so, please can you tell me what is wrong with the code below. I would expect the red and green lines to both have an arrow head but in both Chrome and Firefox 3.6 only the green line does.
<?php
header('Content-type: application...
Hi,
I'm using jQuery to alter things when a user enters text into an input. This works fine with .keydown() or .change() when typing.
I'm unable to capture an event when the user selects from the browser stored inputs for that field. This is the dropdown that appears when typing or on click when the element already has focus and the br...
I an creating a querystring from the supplied arguments to Javascript function.
I am looping over the arguments array and want to have argumentName and its value.
Thans
...
Hi guys, my Javascript switch case isn't working for some reason, and I can't figure it out, I am trying to display a certain input only of a certain option is chosen,
function showHideSchools(obj){
var curSel=obj.options[obj.selectedIndex].value
switch(curSel)
{
case '0-2':
document.getElementById('schools').st...
Hi folks,
I have been using analytics software for a while, and I've been asking myself how can such software copy a webpage completely to then place it in an iframe and overlay it with images and info.
An example:
A major problem I encountered is copying the webpage.
In particular, copying the webpage the user is currently viewi...
Hi,
I am using asp.net 2.0 with c#.
i want a pop up to be displayed when user tries to close the browser and if user click on "no" [i.e. he don't want browser to be closed] then it prevent browser to get closed.
Please help.
Thanks
...