I am looking for a JQuery solution to something like the rotating banner located at http://www.bazaarvoice.com.
One where it has a timed scroll but also allows the user to toggle by rolling over tabs. Anyone know of a good, easy to style one?
...
I'm working on creating a Javascript Tab library. Actually, it's already been developed and is working great. But it's due for a rewrite to fix some underlying annoyances and quirks we've found while using it. Anyway, here's the current model.
The current model has a TabSet object, which houses the main functions for the tab library: ad...
For simple javascript debugging I'll use alerts to show variable values and the like. Is there a way to get the current call stack in javascript to be able to display it in an alert?
Thanks.
...
I have a javascript function that I am trying to get to update a label.
If I replace the label with a textbox it works fine, but with the label nothing happens!
An example of a label:
<label id="163" name="163">Some text.</label>
javascript code:
$("#163").val("meep");
...
this is the code
<script type="text/javascript">
[CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
]]>
</script>
I need to put this in the template, but i know i cant put //<![CDATA[ and //]]> in the template. How should I do this?
...
I have a simple form like below that I have added the jQuery validations plugin onto (http://docs.jquery.com/Plugins/Validation). I have this form in a modal popup window so if there are errors and the user closes the window when they open it again the form still has the errors. In my popup close callback I tried calling resetForm() but ...
I am trying to find a function that can fade an element from a specified transparency to a specified transparency. For example from 0 to .7 but everything I can find just fades either from 0 to 1 or 1 to 0. I can't find anything that lets you specify from what to what. My attempts of reverse engineering the functions I have found have al...
Hi,
I'm new to javascript so please excuse if this question is trivial.
I have a dynamic Webpage that includes an iFrame where external html Code is included.
Now I need to dynamically remove an element from this iFrame.
Firebug give's me the following XPath Entry for the Element.
/html/body/div[2]/div[2]/ol/table/tbody/tr/td/a/img
M...
Why the following code Based on Mozilla example does not work? Tried with Firefox 3.5.7 & Chrome.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
</body>
<script>
var req = new XMLHttpRequest();
req.open('GET', 'http://www.mozilla.org/', fa...
I'm working on a proxy server checker and have the following code to start the requests at intervals of roughly 5 seconds using the setTimeout function;
function check() {
var url = document.getElementById('url').value;
var proxys = document.getElementById('proxys').value.replace(/\n/g,',');
...
Would it be useful for single user single PC or would be overkill?
Can i save time and increase productivity with any version control system?
If answer is yes then which free version control system would be best for me and how I can save time with that?
I work from home and office both. both places I've internet access. I want to acce...
I know about iframes from different domains unable to access pretty much anything on the parent level, BUT, all I would need to know is the top-most domain. Here is the scenario:
ABC.com loads an iframe from DEF.com that loads an iframe from XYZ.com. On the level of XYZ.com I need to know that ABC.com is the top most domain.
Any thou...
I need it to use in my firefox extension.
I already tried window.onload event listener, and check if current url == old url, and it's a good idea, but it does'nt work when page loads pdf.
I saw hash changed function too but it works only with ff 3.6; i need it to work at least with ff 3.
So, i need an event listener that check if docum...
I have a simle html div with a variable number of input checkboxes and i whould like to chek which chekbox is cheked and which isn't
HTML code:
<div>
<input type="checkbox" val="1"/>Check One<br/>
<input type="checkbox" val="2" checked="checked"/>Check Two<br/>
</div>
Javascript code:
var $kids = $("div").children("input");
...
is the following safe?
index.html
<div id="loader">loading...</div>
<div onclick="foo()">click me</div>
<div id="change"></div>
<script>
function foo(){
jQuery.ajax({
url: 'get.html',
success: function(txt){
var x = $('#loader').html(txt)
x=...
I have some JavaScript code I need to encrypt, but I want to be sure no one can decrypt it.
What tools can I use to do this?
-- Edit --
I still want to run the code on my site, I just want to make sure no one else can decrypt the code.
...
I'm working on a little library that lets me do some basic key value coding w/ JSON objects. Say I have the following JSON array:
var data = { key1: "value1", key2: { nested1: 1, nested2: "wowza!" } };
And I have the following javascript function:
var setData = function(path, value) {
eval("data." + path + "= value;");
};
And ...
I have many of these loading signs.
<span id="loading" rel="1n" style="display:none;">Loading...</span>
<span id="loading" rel="2a" style="display:none;">Loading...</span>
<span id="loading" rel="3w" style="display:none;">Loading...</span>
Notice the only difference is rel.
How do I write a JQuery script so that I choose which one to...
I use Firebug's console.log() for debugging my website. If I try viewing my website in browsers without Firebug then I get a console is not defined error.
Is there a way to gracefully avoid this error?
I found this potential solution, but it seems a bit cumbersome.
And ideas?
...
Hey all,
I've been developing jQuery plugins for quite some time now, and I like to think I know how to design one well by now. One issue keeps nagging me though, and that is how to deal with private functions in a powerful yet elegant manner.
My plugins generally look something like this:
(function($) {
$.fn.myplugin = function(.....