<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxxx-x']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setCustomVar',1,'z','100',1]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/java...
Could someone tell me how the public and private methods are achiveved in this example code for a simple animation library from dustin Diaz. How are the private methods distinguished from the public one?
http://www.dustindiaz.com/javascript-animate/
...
Hi all, I'm trying to place the following DOM generated iframe into a certain part of the page. In particular I want it to sit inside a div I have name "maps". Right now it's floating all the way to the bottom of the page probably because it's being placed there. Is there a way to find the div called maps and place it right after that di...
I have no idea why this is happening. First off, the code is valid via W3C validator as HTML5 EXCEPT for URL encoding issues (like & should be & amp;) but i don't have control over that and that shouldn't cause this error anyways.
Second, this works in all other browsers.
Third, the "data" element you'll see in the JS below returns the...
Is there any way to disable the "Download This Video" button from RealPlayer. It seems that when users have RealPlayer installed on their machines, it automatically adds a "Download This Video" button to any SWF that loads an FLV.
Edit: My intention isn't to prevent someone from downloading the SWF or FLV, I would just like to remove th...
It seems like, for many javascript widgets, the authors have made a conscious effort to use tiny variable names. For example:
// Instead of...
this.mousePositions = new Array();
// they use...
this.mp = new Array();
My question is this: how important is this in terms of reducing overall javascript file request size? I'm working on rel...
Hi all,
Basically, what I would like is a fixed header, frozen pane, table, such as, http://www.cssplay.co.uk/menu/tablescroll.html. However, his tables have one key weakness. The header will not scroll horizontally with a body.
Here is a sample, based off the link above. However, the header clearly does not scroll left and right ...
I was checking out an online game physics library today and came across the ~~ operator. I know a single ~ is a bitwise NOT, would that make ~~ a NOT of a NOT, which would give back the same value, wouldn't it?
Thanks,
Shane
...
I've a dropdown (multiple select). I choose a few values, they are highlighted correctly, but jQuery doesn't recognize them as selected. this works in firefox and chrome, doesn't work in IE. this is the code
$("#myBox" +" option").each(function()
{
if ($(this).attr("selected") == true)
{
// do something
}
}
...
Hello,
I have been trying to do this all day. At the end i managed to get it working. I know it is not the best way to do.
Can someone please show me a better way. I need 12 altogether. It does not need to be check box either. It can be just a text. I got the idea from com/2006/12/14/using-jquery-to-show-hide-form-elements-based-on-a...
Hello,
I am having a problem with the asp:Menu control.
A menu control 2 levels deep does not play well with internet explorer on https.
I continually get an annoying popup.
I think in order to fix this I need to override a function in an automatically included script file.
change this
function PopOut_Show(panelId, hideScrollers, dat...
I know this subjet isn't new at all but i'm going to be crazy that it doesn't work at all. So I create a "KISS" (Keep It Stupide Simple) sample just to see if it may be something from the original SWF or just a real problem...
HTML is hosted on web site A (actually the Javascript too, but this last one will be moved on web site C) en th...
Hello everyone,
I briefly checked for dupes of this question, since I was certain they would exist, but I couldn't find any!
So, I am going from Java to JavaScript; what can I read that will make sense? (and if I just have to forget everything about Java and start over, that's fine too.)
...
hi, my string data as as follow.
var HmtlStr = "<span>My names is <u>KERBEROS</u>. AGE: 29, my eyes <b>BROWN</b>.</span"
result must be like this which i want;
<span>My names is <u>Kerberos</u>. Age: 29, my eyes <b>Brown</b>.</span
thank you very much for your help, already now.
...
Is there a templating library/system/engine/technique written in javascript that:
Doesn't screw up plain-text (non-html) templates ( like tabs and line breaks )
But also works with HTML
Doesn't have it's own DSL for loops and conditions (uses pure JS)
Can be run server-side without the DOM
...and is open-source licensed?
...
My html page loads a bit slowly because of the jquery that's in it. I want an image that tells the user that it's loading, until the entire page get loaded. How should I go about doing this?
Many thanks in advance.
<script type="text/javascript">
$(document).ready(function(){
//my jquery here....
});
</script>
...
What is a node.js middleware / framework you personally found interesting / useful?
...
I am looking for a node.js framework which is capable of tracing user sessions via cookies/storage on the server side.
Storage has to be in MongoDB
...
Hello,
I'm using an embed flash player in a web page and I want to scale it to browser window.
When I put "height: 100%" in the flash parameters, I get a blank page.
This is the code of the page :
SlideShowPro({
target: "slideshow",
xmlFilePath: "galeries/images.php?album=1",
width: "100%",
height: ...
I'm considering what base URL to use for a REST web service. I have the option of using one of the following formats:
https://domain.com/api
https://api.domain.com
I'd like to make it both easy to use from client-side javascript apps and secure against forged request attacks. Is there a best practice to follow here?
...