I need to devise a test for web developers.
This test should screen both good grasp of the DOM and manipulating it and
Good skills in designing scalable and efficient DB and server side code, And to salt it a bit with web specific problems (like translating from one encoding to another, clean input-security).
And best of all, cram it int...
After an AJAX request, sometimes my application may return an empty object, like:
var a = ({});
How can I check if that's the case?
...
Duplicate:
How to find event listeners on a DOM node?
How to debug Javascript/jQuery event bindings with FireBug (or similar tool)
I am using Firebug to inspect HTML codes and CSS. I need to find what are the events and the handlers associated to an element.
Using the Inspect button, I can see all the CSS, but can't ...
Basically I want to be able to wrap any command in a $.holdTillFinished() method that will not allow execution to continue until the specified method/jquery animation is finished executing.
I suspect that this may be difficult or even impossible in javascript, but I'm hoping someone will know.
I don't want to hear about how I can pass ...
I don't want my website's user to use backspace to go to the previous page,
but I still want to keep the use of backspace,
just like deleting wrong typing.
How can I do?
Thanks a lot.
...
HI,
I have and aspx form in which i am referring a JavaScript file. I am using the window.onload method to initialize an object. How can I get the form object inside the function in JavaScript file.
...
Is there any way to change the value of a DOM textNode in web browser?
I specifically want to see if I can change the existing node, rather than creating a new one.
To clarify, I need to do this with Javascript. All text in the browser is stored in #textNodes which are children of other HTML nodes, but cannot have childr nodes of their...
I am working on screen scraping, and want to retrieve the source code a particular page.
How can achieve this with javascript? Please help me.
...
In Internet Explorer 7 some properties (mouse coordinates) are treated as physical while others are logical (offset). This essentially required Web developers to be aware of or calculate the zoom state. In IE8 release all properties are logical.
...
I am using Ajax and hash for navigation.
Is there a way to check if the window.location.hash changed like this?
http://example.com/blah#123
to
http://example.com/blah#456
It works if i check it when the document loads.
But If I have #hash based navigation it doesnt work when I press the back Button on the browser (so I jump from blah#4...
You can sample pixel color data on a canvas image with getImageData(). If I layer a transparent canvas element over a background image or flash movie, can I sample a color from that via the canvas tag?
...
how would i get the File extension of the file in a variable?
like if I have a file as 1.txt I need the txt part of it.
...
I'm trying to select elements with multiple conditions, for example I'm doing the following at the moment:
$('#myspan').find('input:visible').each(myfunc);
Although I know you can do things like $('#myspan input:visible') but it didn't work for me. I need to check for inputs within the span #myspan which are visible and are checked. ...
How can I detect a Scrollbar presence ( using Javascript ) in HTML iFrame ?
I have already tried :
var vHeight = 0;
if (document.all) {
if (document.documentElement) {
vHeight = document.documentElement.clientHeight;
} else {
vHeight = document.body.clientHeight
}
} else {
vHeight...
How can I access events added with attachEvent() / addEventListener() in JavaScript?
Use case: debug events using FireBug's console.
...
Hi everyone
i am using iframes in html.loading different html pages into iframes.in that html pages i have image. whenever i load the image into iframes i getting flickering.
can we stop that flickering by using Iframes
How to do ?
Thanks & Regards
Ravi Kumar
...
I have found two excellent jquery plugins for generating a slider for a web form, which degrade nicely in browsers that do not support javascript have styles turned off etc.
The first is the Jquery.UI version : http://ui.jquery.com/demos/slider/#steps
The second is a select element to slider : http://www.filamentgroup.com/lab/update_jq...
Hello
I'm trying to match C style comments form a file, but only if the comment don't start with a certain labels introduced by @
For example from
/* some comment to match */
/* another comment.
this should match also */
/*@special shouldn't match*/
Is this possible using regular expressions only?
I'm trying this using JavaScript i...
I have a PHP page that needs to make a call to a external web service. This Web service call takes a bunch of sensitive data from a html form on the PHP page, e.g. SSN, and returns info related to that person.
The problem is that the web service call should be made as soon as the customer fills in the SSN field and the field loses focus...
I'm looking for a JavaScript library that can create round corners on div tags with a transparent background, such that the background colour/image of the parent element is visible at the rounded corners. For an example of rounded corners without a transparent background, have a look at the left menu on this page. Notice that the backgro...