Jquery 'addClass' sometimes fails but css does not
in some cases, this will not work: ("#id").addClass("class"); whereas this will: ("#id").css('color','Blue'); why would it fail and how to add class otherwise? ...
in some cases, this will not work: ("#id").addClass("class"); whereas this will: ("#id").css('color','Blue'); why would it fail and how to add class otherwise? ...
Please see this: http://jsbin.com/igeqa here, i am simply using alert ( tableObj.childNodes.length ); and in FF the output is 5 , while in IE it is 2. Please tell me what is causing this behaviour? ...
is there any free JS library to select custom resize area on photo? ...
is there any solutions to make loop after mooving cursor on page in JS? ...
I have a lot of dijit.TitlePanes stacked up one after another. I wish to handle the onmouseover and onmouseout events for the tile part of the TitlePane. What is the correct way of doing this? Will something like : dojo.connect(titlePane.titleNode, 'onmouseover', function f() {}); work, where titlePane is a reference to some dijit.T...
I'm trying to get Intellisense to correctly work for closure. As a plugin author, I always use a closure to create an isolated environment for my plugin code: (function($) { // code here })(jQuery); But the problem here is that Intellisense doesn't pick up that jQuery is being passed in the execution of the function. Adding $ = jQue...
I searched for javascript byte type variables and I can't find byte type variable??? Thanks. ...
Hi all, I face issue with retrieving (via javascript) width of the div which content is changed (just before reading the widht via offsetWidth) in dynamic way (via changing innerHTML or using createTextNode). Here is some sample code: var con = document.getElementById('avContent'); //content div within page var temp = document.creat...
Hello Is there a simple way to skip all the fx, while still setting the values and calling the events. I figured out to set the fx duration options globally to 0 by doing Fx.prototype.options.duration = 0 but this still doesn't solve my problem because it sill takes some minimal time which ends up in a lot of displaying errors. wha...
Hello, In Palm WebOs I need to convert an image into bytes (like byte array in .Net) to pass it as a parameter to a web service, where I can convert back this bytes data to image and save on server. Please help me to convert image into string variable or any other format to send it to the web service using javascript or jquery in palm we...
I have a javascript file that needs a value from a variable in a php script in which the JS file is being called. <? $sid = session_id(); ?> <html> <head> <script src="javascript.js" type="text/javascript"></script> ... How can i get $sid into the js file for use? ...
I have an array like this: var anArray = [ { name: "scala", type: "a" }, { name: "abc", type: "b" }, { name: "test", type: "a" }, { name: "ruby", type: "c" }, { name: "erlang", type: "a" }, ]; I want to find items based on the item property. I currently do it using jQuery. something like this; Array.protot...
Can I place something like the code below in a html page, and have the coolstuff.js render content to the page? I think i've seen it done...what is this technique called? Any pointers? <form id="form1" runat="server"> <div> <script src="coolstuff.js" param1="Monkeys" param2="Go" param3="Nutz" type="text/javas...
I've got a set of questions that when selected displays another set of radio buttons for the next question (a show / hide system), what i'm having trouble with is that at the end of the questions (only 3, but on one step there's a skipping system) i need to post to a specific url depending on what the user has selected, so the href needs...
How to manage to write an application (JS + PHP) that would let the user resume the broken upload so as not to reload it? N.B. No frameworks are acceptable. ...
Hello all readers. I like to add a button on FCKEditor toolbar that will execute some JQuery code on Click event. Is there any solution ? What I like to do with that is the following: I have create a database driven File System Manager that is build on ExtJS and CakePHP. Now on some other page I have create a form that use the FCKEdi...
How can I prevent users from pressing my web-page buttons before the page is fully loaded? i.e. I have a button that opens a lightbox. The JS for the lightbox is loaded last in the page for quicker response time. So if the user presses the button before the page is fully loaded - he either gets a JS error or the lightbox data is opened ...
Hi. I'm using LiveValidation for input elements. These come in a table retrieved with an AJAX call, and can be multiples of 4, anywhere between 4 and 36. I'm using eval to call the constructor for LiveValidation as the number of input elements can vary after each AJAX call and I couldn't think of another way (I don't have much experien...
is there a possibility to calculate the count of years(considering leapyears also),month between two different dates in the javscript? ...
I have a HTML dropdown control. I want to check that if the text in it is "Select", it must display error message. I am using following code to do this, but it is not working. if (document.getElementById("StudentCountry").value == "Select") { alert("Please select your country."); document.getElementById("Stu...