Hi all:
I have a question in regards to unit testing jQuery's document.ready function().
Currently I have 2 scenarios in my code:
function myFunction()
{
$(document).ready(function() { ... });
}
And:
$(document).ready(function()
{
// some really long setup code here
});
I tried to write a unit test for the first scenario,...
Hi All I have a pretty straight forward function
enableModule : function(moduleName){
var module = $('div#'+moduleName);
console.log('enabling '+moduleName);
console.time('animate');
module.animate({'opacity' : '1.0'}, 300, function(){console.timeEnd('animate');});
module.find('.disabled_sheild')....
Is it possible to use jQuery selectors/dom manipulation server-side using node.js?
...
For some weird reason i'm getting my confirm box coming up twice. here is my code:
$(".DeleteComment").live("click", function(){
var CommentID = $(this).attr("rel");
var confirm
if (!confirm('Are you sure you want to permanently delete this comment?')){
return false;
}else{
$(this).html("loading").css("colo...
I've put up the standalone page at http://stevenxu.ca/uploads/layouttest.php.
The page experiences a peculiar failure when running in IE7 (strictly IE8 in Compatibility View). A similar error occurs in IE6 when I use XP mode (along with a few other errors), but I'm not too worried about IE6 compatibility.
Namely, the input box is left-...
I am trying to create a multi page listing form (using AJAX - jquery) for a real estate site. The basic premise is that a user should be able to create a listing in step 1 of the form. In step 2 of the form, the user should now be able to upload images/video. In step 3 of the form, the user would add any additional information related to...
Suppose a list of options is available,how to update the <select> with new ones?
...
I want to add certain classes to the various levels of my websites nav header. So I'll have something in the end like
$('#navCol > ul > li > ul > li > ul').addClass('lvl2');
// Each ‘li > ul’ past the first ‘ul’ indicates another sub-level.
to add the lvl2 class to the second level, etc. Having said that, not only does it apply sa...
I have a jquery change function where hidden fields are set to their respective values upon satisfying some conditions. I also have an extra button to check if the hidden fields' values are changed. When I submitted the form(through pressing the Enter key), I got the must-see values for my hidden fields in Firefox, Safari and Chrome bu...
I have tried various different jQuery autogrow/expand text area plugins, and they all work good and well on the demo page but for some reason whenever I implement them into my existing site, they act very strange, this is what is happening:
It works great, if you're manually typing in text and hitting enter after every line, however, i...
Hello,
I've created a simple jQuery slider for my website, and I was wondering if it's possible to assign a URL for each pane.
For example /index.html#about will slide to the about tab by default.
Many thanks for your help and responses.
...
Hi,
i am pretty sure, that i've seen such a feature on a website somewhere in the web.
i want to give the user a form, where he can input some data and attach the current clipboard content (very likely a screenshot) to the form and then submit it as an image file.
after all, i don't want the user to go through all the hassle: take a ...
I have made a jQuery based widget which is configured a bit like this:
jQuery("#foo").widget("service", {
output : "test_output_field",
parameters : {'format' : 'json',
'limit' : 20,
'services' : {'service1' : {},
'service2' : {'language' : 'en', 'type' : 'solid', 'parent' : 'father'},
'service3' : {...
I'm a designer doing a commemoration project for Red Cross Australia's 2004 Tsunami clean up efforts. The project is a timeline to commemorate all the work that has been done for the last few years.
Note: As a first time user I wasn't allowed to include more than 1 link, so I'm sorry for all the urls I have pasted in.
I'm using two jqu...
Hi,
$('form td .hint p') this jquery selector returns back a list [p,p,p,p,p,p].
I would like to know what's the best way to loop through each of those, check their css values, and do something if the css value = something I want.
I have this function to show and hide a tooltip, but I only want one tooltip to be shown at a time. While ...
I am using jquery validation for required field vaidation.
$("#registerform").validate();
This fires for the controls which are hidden too.
For ex.: When the user selects Others option in How you find us? in register form, its required to fill the textbox for others option.
But this fires even when the control is hidden.
How to do ...
Hi all
I'm running an AJAX request from a JavaScript-powered (+jQuery) webpage every 5 seconds for a set of JSON data. I left my application on overnight, and by morning my computer had completely frozen. I narrowed it down to my web browser and now, using Google Chrome's Resource Tracker, I can see that each request contributes a new m...
I want to launch a jquery thickbox onload instead of click. for this I use the code below.
<script language="javascript">
tb_show("HAI","#TB_inline?height=240&width=405&inlineId=hiddenModalContent&modal=true",null);
</script>
Actual link is
<a href="#TB_inline?height=240&width=405&inlineId=hiddenModalContent&...
Hey folks,
I have a listbox containing "all" the items and a second listbox that will contain "selected" items. I want to have it so that double-clicking an item in the "all" listbox adds that item to the "included" listbox.
Currently i have :
$(document).ready(function()
{
$('#AllAirlines option').dblclick(AddAirline);
}
functio...
I know the "XMLHttpRequest" object supports a method "open" which has an optional parameter of a username and password. I just found out that these parameters can be supplier for requests requiring container-based authentication.
This is the method signature:
open(method, url, async, username, password)
Can someone help me out with t...