I have an input field that was written with onfocus="this.value='' , but recently decided to change it to onfocus="this.select() . The trouble is that when I went to change it, it still clears! I searched my entire javascript library, html, everything looking for what could be causing that. Nothing is being called of the likes.
I tried ...
Setting npm up as the root user is straighforward and workds. Except you have to run npm commands as root (not recommended). So I thought I'd try setting it up as a non-root user.
According to npm documentation, a non-root user without root access can set up npm by:
creating a .npmrc file with root, binroot, and manroot pointing to...
I have to set dropdownlost to read only. I can set enabled =false. But I cannot set font color to regular dropdown text. It will show like blur. The samething I did textbox.readonly=false. There we can see font same as regular text, no change.
The same way I want read only for dropdownlist. Is there any way we can do with CSS or javasc...
I am facing problem while resizing an image in the Popup brwoser window.
Image present in popup gets resized when the user resizes the browser window for the first time only, afterwards when the window resizes (dblclicking the titlebar, or using the resize handles) the image dimension remains equal to the last resized dimension.
My co...
What is a safe and reliable way to select the link below? I am having trouble to ensure I include the "Select" text in the selector to ensure I do not select another link:
<span class="pickerWrapper">....<a href="...">Select</a></span>
...
I wonder if me.com is coded with javascript+css+html only?
No RIA language like Flash, Java right?
...
I was puzzled when I saw jQuery "Snap to element". Does anyone know how can I implement it without jQuery, with just raw javascript.
Thanks
...
Are these all the languages/solutions you could use in frontend?
javascript+html+css
flash
java
silverlight (c#, ruby, python etc)
And what is a plugin for Safari and Firefox written in? Is it low-level languages like C++?
...
I'm starting a new project converting physics simulations(created in Adobe Director)
to a more current platform namely html5 canvas or SVG. I would like to avoid Flash for a few reasons. I'm looking for recommendations and reasons why either canvas or SVG would fit this project best. I have read that SVG is better for interactivity which...
I'm trying to style up a form within the Wishlist Member plugin in Wordpress and there isn't a template where I can physically go into and add classes, id's, etc. So I was wondering if there was a way to style up an <input type="submit"> with no class or id without affecting the <input type="text"> fields using javascript maybe. Thanks.
...
Sometimes I see web based software that is designed using some slick javascript windows which try to emulate the Windows desktop experience (draggable windows and a start menu).
Are there any free frameworks like this available?
...
Ive written some code so that i can drag an object, but eventually i wish to place this on a particular object and then call some functions.
How do i add a listener to the destination object, when i dont know which actual object will be dropped onto it?
...
I've adapted the Crockford object() function so that I can pass in some parameters and autorun an init function in the new object:
function object(o) {
function F() {}
F.prototype = o;
var params = Array.prototype.slice.call(arguments,1);
var obj = new F();
if(params.length) {
obj.init.apply(obj,params);
}
...
I'm dynamically loading content into a div when the user clicks a link using this code:
function ahah(url, target) {
document.getElementById(target).innerHTML = 'Opening form...';
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
}
...
As the title states I need some help on how to link this Jquery script for a show / hide effect to a radio button selection.
HTML
<tr>
<td><input type="radio" name="es_custom_reg" value="Y" /></td>
<td>Yes</td>
<td><input type="radio" name="es_custom_reg" value="N" /></td>
<td>No</td>
</tr>
Javascript
<script src="scripts/jquery.js"...
For some reason jQuery.addClass has stoped working. I have no idea why.
Other stuff works though.
// Change row background color on click
jQuery('#rowList tr').live("click", function() {
alert(jQuery(this).attr('title')); // Just here for testing. This works
alert(jQuery(this).css('border','solid 1px red')); // Just here for...
How do I make for this onFocus to occur just 1 time (not as now that is blocking the windows with dialogs)?
<html>
<form name="myForm">
<input type="button"
value="Big Button"
name="myButton"
onFocus="alert('Focus event occured')">
</form>
</html>
update:
sorry, when I say "a s...
Hey all. I've been been trying to figure this out for a while now.
I create a jQuery object of checkboxes and store it in a variable:
$group1 = $('#checkbox1,#checkbox2,#checkbox3,#checkbox4');
The user cannot continue unless all checkboxes in that group are checked.
I've been using an if statement combined with .is(':checked') to f...
Hello,
I have a global JSON variable where I store some parameters and then each time I run the function I want to be able to modify them but just locally inside that function.
So every time I run the function I want a fresh copy of the global variable inside the local one.
The problem is that I copy the global variable to a local one...
I'm building a Mashup application which will generate output in EMML. The application is JavaScript based having an interface like Yahoo Pipes. Once the Mashup is designed in the editor, it needs to convert the same HTML markup to correct EMML markup.
I need to know if there is any Javascript framework or plugin available which convert...