javascript

Algortihm to determine weak/good/strong password

Open source javascript algorithm to feedback user on the quality of the password he is choosing. ...

How do I preserve radio button and check box value without using cookies after the browser refresh?

I have three radio buttons and 4 check boxes. I want to preserve the radio button and check box values after the browser refresh. I do not want to use cookies (due to some other reason). Could anyone please help me? ...

how to stop # links that call javascript functions from jumping to top of page

How do you I stop my links like this: <a href="#" onClick="submitComment()"> From jumping to the top of the page after the click? ...

How to override the "always show" attribute of a flash plugin in my wannabe-hidden div?

I have a flash object that I am trying to show and hide along with the rest of my hidden div. Without the flash object, the hidden div works great. When the page loads, this style keeps the div hidden: <style> div {display:none;} p {display:none;} div p {display:none;} </style> But when I add the flash object it always appears. <div ...

what is the meaning of "$" sign in javascript

In the flowing javascript code there is one $(window). What does it mean??? $(window).bind('load', function() { $('img.protect').protectImage(); }); ...

How can adjusted font size be carried over to pages subsequently visited?

Hello, I use the below script to allow visitors to my page to increase / decrease the font size (or restore the font size to its default setting). Does anybody know how I could get each page to retain the increased/decreased font size of the previous page? Currently, when a visitor adjusts the font size and goes to another page the fo...

javascript menu like mtv

Hey people I'm seeking an js menu like the link below. http://www.mtv.com/mtv2/ jQuery would be a plus! ...

How can I apply a background-color to several elements on hover?

I have a few lists that are displayed as inline-blocks, creating the illusion of rows. Unlike tables, I cannot format rows straightforwardly. I want to apply a background color to each < li > in the row when one is hovered over. Is this possible through CSS and names/IDs? Thanks. Mike CLARIFICATION: After reading the answers, I reali...

Recommended reading material for getting started with webOS/Mojo SDK development?

I am starting to delve into the world of webOS and the Mojo SDK and having a great time so far, but I find myself having to constantly take a detour and read up on different subjects such as JSON, JavaScript, etc. I realize now that instead of diving in head first I probably should have done some reading on the core technologies behind ...

JavaScript method to write to Microsoft Visual Web Developer Debugger?

I generally test my web apps with Firefox and use Firebug. I love Firebug. But when I'm testing JavaScript code in IE I use the debugger in Microsoft's Visual Web Developer 2008 Express Edition. I would love to have an equivalent to Firebug's console.log methods which would allow me to log messages to Visual Web Developer. Any way to log...

Animating two divs at same time onload, jquery help

I am trying to make a sort of "scales" look, where two divs will slowly animate up and down like being weighed on a scale. I could use some help with the functions though please, I can not get two to animate simultaneously on page load, and I need them to go up, then back down, then up, etc... Make sense? Here is what I have so far, I a...

javascript - blank space validation

function validation(reg) { str = document.reg; if (str.name.value == "") { alert("Enter your name"); str.name.focus(); return false; } Validation will working fine if input is empty. Problem User can enter a blank space on the first. Also user can enter space only on the name. How to prevent it...

Syntax error in CSET library

I am using CSET, a library for Unicode character classes for Javascript. It loads fine in Firefox, IE8, and Opera, but fails in Google Chrome and Safari 4 with a syntax error. Strangely enough, the syntax errors are different. From cset_production.js: Safari SyntaxError: Parse error (line 255) CSET=function(){ // ... var g=this ret...

How to set the last-clicked anchor to be a different color from all other links?

a:link {color:#FF0000} /* unvisited link */ a:visited {color:#00FF00} /* visited link */ a:hover {color:#FF00FF} /* mouse over link */ a:active {color:#0000FF} /* selected link */ The pseudo-classes (link, visited, hover, active) don't do exactly what I want which is to highlight the last-clicked link on a page to be a different color ...

How is scrollTop in JQuery supposed to function?

I'm confused about scrollTop(). jQuery docs say it should be displaying a number that represents the scrollTop offset for a given element, but as it does in my own script, on their demo it returns "0". Setting the scrollTop manually works great, as does using the $(window).scrollTop() command. Does scrollTop() ONLY return values asso...

Why to download a ENTIRE JavaScript framework when we do not need all features of them? What could we suggest? (JavaScript)

Hi, I like Google Web Tookit API approach. It use Java language behind the scenes that compiles ONLY JavaScript code WHOSE TARGET BROWSER NEEDS. It happens some developers would like to use that feature in pure JavaScript language. Anwser: WHAT COULD WE SUGGEST in order to fullfill this requirement ? I suggest to use JavaScript comme...

Calling ActionResult method of a controller from JS.URGENT..

Hi All, I am now to MVC F/W. I developed an application where i need to Open a new URL (WHich comes from other server) I developed and it worked in my Local Machine ... But when i try to run on DEV Machine it alwsys asks userID and Password. Is it anything related to Credientals of the URL Opened. (I am able to open it when ...

Is there a rule of thumb for when to use event delegation vs event handling in JQuery?

I'm confused about when you should use event delegation as opposed to out-of-the-box JQuery event handling. I'm always tempted to use an event handler because it's so easy in JQuery: For example: $("button#submit").click(function () { $(this).css("disabled", "true"); }); Event delegation is not really that much more compl...

How to achieve this zooming and unzooming functionlaity

Hi, I'm hoping someone can point me in the right direction with regards to achieving this effect from Mozilla Firefox, when clicking on a video thumbnail as I would also like to achieve this with photos as well, i.e, See:> http://en-gb.www.mozilla.com/en-GB/firefox/3.5.1/whatsnew/ and click on the thumbnail play button. Thanks. Tony....

Cross Domain JavaScript, parent location setting in embedding iframe case

Hi, There is a solution called "Fragment Id Messaging" to solve cross domain communication by setting parent.location with extra texts followed by "#" from child iframe, it works. However, if the parent itself is embedded as an iframe in another page, parent.location setting seems denied by browsers... Is this true? If yes, is there a w...